diff --git a/sample/doc/assets/behavior.js b/sample/doc/assets/behavior.js
index 2e339d9..ec4deaa 100644
--- a/sample/doc/assets/behavior.js
+++ b/sample/doc/assets/behavior.js
@@ -490,53 +490,7 @@ f.event={add:function(a,c,d,e,g){var h,i,j,k,l,m,n,o,p,q,r,s;if(!(a.nodeType===3
"pageTitle": "invoice/UpdateInvoice",
"title": "UpdateInvoice"
},
- "depth": 2,
- "outline": [
- {
- "type": "heading",
- "data": {
- "level": 1,
- "title": "Update Invoice Sample",
- "slug": "update-invoice-sample"
- },
- "depth": 1,
- "children": [
- {
- "type": "heading",
- "data": {
- "level": 3,
- "title": "Update Invoice",
- "slug": "update-invoice"
- },
- "depth": 3
- }, {
- "type": "heading",
- "data": {
- "level": 3,
- "title": "NOTE: These are the work-around added to the",
- "slug": "note-these-are-the-work-around-added-to-the"
- },
- "depth": 3
- }, {
- "type": "heading",
- "data": {
- "level": 3,
- "title": "Update Invoice",
- "slug": "update-invoice"
- },
- "depth": 3
- }, {
- "type": "heading",
- "data": {
- "level": 3,
- "title": "Retrieve Invoice",
- "slug": "retrieve-invoice"
- },
- "depth": 3
- }
- ]
- }
- ]
+ "depth": 2
}
]
}, {
diff --git a/sample/doc/billing/CreateBillingAgreementWithCreditCard.html b/sample/doc/billing/CreateBillingAgreementWithCreditCard.html
index 8db7105..69cf112 100644
--- a/sample/doc/billing/CreateBillingAgreementWithCreditCard.html
+++ b/sample/doc/billing/CreateBillingAgreementWithCreditCard.html
@@ -6,12 +6,12 @@ define Plan information to create an agreement. Make sure the plan you are using
$createdPlan = require 'UpdatePlan.php';
use PayPal\Api\Agreement;
-use PayPal\Api\Plan;
-use PayPal\Api\Payer;
-use PayPal\Api\ShippingAddress;
-use PayPal\Api\PayerInfo;
use PayPal\Api\CreditCard;
use PayPal\Api\FundingInstrument;
+use PayPal\Api\Payer;
+use PayPal\Api\PayerInfo;
+use PayPal\Api\Plan;
+use PayPal\Api\ShippingAddress;
/* Create a new instance of Agreement object
{
diff --git a/sample/doc/billing/CreateBillingAgreementWithPayPal.html b/sample/doc/billing/CreateBillingAgreementWithPayPal.html
index 82ece0c..5d63ee0 100644
--- a/sample/doc/billing/CreateBillingAgreementWithPayPal.html
+++ b/sample/doc/billing/CreateBillingAgreementWithPayPal.html
@@ -6,8 +6,8 @@ define Plan information to create an agreement. Make sure the plan you are using
$createdPlan = require 'UpdatePlan.php';
use PayPal\Api\Agreement;
-use PayPal\Api\Plan;
use PayPal\Api\Payer;
+use PayPal\Api\Plan;
use PayPal\Api\ShippingAddress;
/* Create a new instance of Agreement object
diff --git a/sample/doc/billing/CreatePlan.html b/sample/doc/billing/CreatePlan.html
index 69b9ec8..e16f062 100644
--- a/sample/doc/billing/CreatePlan.html
+++ b/sample/doc/billing/CreatePlan.html
@@ -2,11 +2,11 @@
This sample code demonstrate how you can create a billing plan, as documented here at:
https://developer.paypal.com/webapps/developer/docs/api/#create-a-plan
API used: /v1/payments/billing-plans Create a new instance of Plan object Fill up the basic information that is required for the plan The possible values for such setters are mentioned in the setter method documentation.
diff --git a/sample/doc/billing/UpdateBillingAgreement.html b/sample/doc/billing/UpdateBillingAgreement.html
index ff42c07..b994665 100644
--- a/sample/doc/billing/UpdateBillingAgreement.html
+++ b/sample/doc/billing/UpdateBillingAgreement.html
@@ -5,8 +5,8 @@ API used: /v1/payments/billing-agreements/Basic Information
+use PayPal\Api\MerchantPreferences;
+use PayPal\Api\PaymentDefinition;
+use PayPal\Api\Plan;Basic Information
Payment definitions for this billing plan.
Retrieving the Plan object from Create Plan Sample to demonstrate the List
Retrieving the Plan object from Create Plan Sample to demonstrate the List
This would send a notification to both merchant as well diff --git a/sample/doc/invoice/CreateInvoice.html b/sample/doc/invoice/CreateInvoice.html index 4329dd0..d86432d 100644 --- a/sample/doc/invoice/CreateInvoice.html +++ b/sample/doc/invoice/CreateInvoice.html @@ -1,17 +1,17 @@
This sample code demonstrate how you can create an invoice.
Fill in all the information that is diff --git a/sample/doc/invoice/DeleteInvoice.html b/sample/doc/invoice/DeleteInvoice.html index a5f72d7..7e0d6c2 100644 --- a/sample/doc/invoice/DeleteInvoice.html +++ b/sample/doc/invoice/DeleteInvoice.html @@ -4,7 +4,6 @@ an invoice.
Delete invoice object by calling the diff --git a/sample/doc/invoice/RetrieveQRCode.html b/sample/doc/invoice/RetrieveQRCode.html index f1e982b..fb824d7 100644 --- a/sample/doc/invoice/RetrieveQRCode.html +++ b/sample/doc/invoice/RetrieveQRCode.html @@ -3,7 +3,6 @@ $invoice = require 'SendInvoice.php'; use PayPal\Api\Invoice; -use PayPal\Api\Notification; try {
Retrieve QR Code of Sent Invoice by calling the diff --git a/sample/doc/lipp/GetUserInfo.html b/sample/doc/lipp/GetUserInfo.html index a7b717a..86b5ba1 100644 --- a/sample/doc/lipp/GetUserInfo.html +++ b/sample/doc/lipp/GetUserInfo.html @@ -1,7 +1,7 @@
To obtain User Info, you have to follow three steps in general. +use PayPal\Api\OpenIdTokeninfo; +use PayPal\Api\OpenIdUserinfo;
To obtain User Info, you have to follow three steps in general. First, you need to obtain user's consent to retrieve the information you want. This is explained in the example "ObtainUserConsent.php".
Once you get the user's consent, the end result would be long lived refresh token. This refresh token should be stored in a permanent storage for later use.
Lastly, when you need to retrieve the user information, you need to generate the short lived access token @@ -16,11 +16,6 @@ to retreive the information. The short lived access token can be retrieved using $params = array('access_token' => $tokenInfo->getAccessToken()); $userInfo = OpenIdUserinfo::getUserinfo($params, $apiContext); -} catch (Exception $ex) { - // NOTE: PLEASE DO NOT USE RESULTPRINTER CLASS IN YOUR ORIGINAL CODE. FOR SAMPLE ONLY - ResultPrinter::printError("User Information", "User Info", null, $params, $ex); +} catch (Exception $ex) {
NOTE: PLEASE DO NOT USE RESULTPRINTER CLASS IN YOUR ORIGINAL CODE. FOR SAMPLE ONLY
NOTE: PLEASE DO NOT USE RESULTPRINTER CLASS IN YOUR ORIGINAL CODE. FOR SAMPLE ONLY
'start_time'=>'2014-12-06T11:00:00Z', 'end_time'=>'2014-12-12T11:00:00Z'
You can capture and process a previously created authorization
by invoking the $authorization->capture method
with a valid ApiContext (See bootstrap.php for more on ApiContext)
The biggest difference between creating a payment, and authorizing a payment is to set the intent of payment +use PayPal\Api\Payment; +use PayPal\Api\Transaction;
The biggest difference between creating a payment, and authorizing a payment is to set the intent of payment to correct setting. In this case, it would be 'authorize'
A resource representing a Payer that funds a payment For paypal account payments, set payment method diff --git a/sample/doc/payments/CreatePayment.html b/sample/doc/payments/CreatePayment.html index 4fdec3f..7dd7f65 100644 --- a/sample/doc/payments/CreatePayment.html +++ b/sample/doc/payments/CreatePayment.html @@ -5,13 +5,13 @@ credit card payment and related features using the REST API is restricted in some countries. API used: /v1/payments/payment
A resource representing a credit card that can be used to fund a payment.
Saved credit card id from a previous call to CreateCreditCard.php
You can retrieve info about an Authorization
by invoking the Authorization::get method
with a valid ApiContext (See bootstrap.php for more on ApiContext)
diff --git a/sample/doc/payments/GetCapture.html b/sample/doc/payments/GetCapture.html
index bdfbc48..8b59257 100644
--- a/sample/doc/payments/GetCapture.html
+++ b/sample/doc/payments/GetCapture.html
@@ -4,9 +4,7 @@ of a captured payment.
API used: /v1/payments/capture/<$captureId>
You can look up a capture by invoking the Capture::get method
with a valid ApiContext (See bootstrap.php for more on ApiContext)
Determine if the user approved the payment or not
Determine if the user approved the payment or not
OrderId could be retrieved by parsing the object inside related_resources.
Use this call to void an existing order.
Note: An order cannot be voided if payment has already been partially or fully captured.
API used: POST /v1/payments/orders/
Determine if the user approved the payment or not
OrderId could be retrieved by parsing the object inside related_resources.
Reauthorization is available only for PayPal account payments and not for credit card payments.
You can reauthorize a payment only once 4 to 29
days after the 3-day honor period for the original authorization
diff --git a/sample/doc/payments/RefundCapture.html b/sample/doc/payments/RefundCapture.html
index 7f138fa..4d1a157 100644
--- a/sample/doc/payments/RefundCapture.html
+++ b/sample/doc/payments/RefundCapture.html
@@ -4,10 +4,8 @@ process a refund on a Captured transaction.
API used: /v1/payments/capture/{
Create a refund object indicating refund amount and call the refund method
You can retrieve the sale Id from Related Resources for each transactions.
Create a new instance of Plan object