diff --git a/sample/doc/assets/behavior.js b/sample/doc/assets/behavior.js index 8f99b64..fc036de 100644 --- a/sample/doc/assets/behavior.js +++ b/sample/doc/assets/behavior.js @@ -24,13 +24,35 @@ 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 "foldPrefix": "^", "name": "PHP" }, - "sourcePath": "/Users/japatel/Documents/workspace/paypal/PayPal-PHP-SDK/sample/billing/CreateBillingAgreementWithCreditCard.php", + "sourcePath": "/home/travis/build/paypal/PayPal-PHP-SDK/sample/billing/CreateBillingAgreementWithCreditCard.php", "projectPath": "billing/CreateBillingAgreementWithCreditCard.php", "targetPath": "billing/CreateBillingAgreementWithCreditCard", "pageTitle": "billing/CreateBillingAgreementWithCreditCard", "title": "CreateBillingAgreementWithCreditCard" }, - "depth": 2 + "depth": 2, + "outline": [ + { + "type": "heading", + "data": { + "level": 1, + "title": "Create Billing Agreement with Credit Card as Payment Source", + "slug": "create-billing-agreement-with-credit-card-as-payment-source" + }, + "depth": 1, + "children": [ + { + "type": "heading", + "data": { + "level": 3, + "title": "Create Agreement", + "slug": "create-agreement" + }, + "depth": 3 + } + ] + } + ] }, { "type": "file", "data": { @@ -42,13 +64,43 @@ 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 "foldPrefix": "^", "name": "PHP" }, - "sourcePath": "/Users/japatel/Documents/workspace/paypal/PayPal-PHP-SDK/sample/billing/CreateBillingAgreementWithPayPal.php", + "sourcePath": "/home/travis/build/paypal/PayPal-PHP-SDK/sample/billing/CreateBillingAgreementWithPayPal.php", "projectPath": "billing/CreateBillingAgreementWithPayPal.php", "targetPath": "billing/CreateBillingAgreementWithPayPal", "pageTitle": "billing/CreateBillingAgreementWithPayPal", "title": "CreateBillingAgreementWithPayPal" }, - "depth": 2 + "depth": 2, + "outline": [ + { + "type": "heading", + "data": { + "level": 1, + "title": "Create Billing Agreement with PayPal as Payment Source", + "slug": "create-billing-agreement-with-paypal-as-payment-source" + }, + "depth": 1, + "children": [ + { + "type": "heading", + "data": { + "level": 3, + "title": "Create Agreement", + "slug": "create-agreement" + }, + "depth": 3 + }, { + "type": "heading", + "data": { + "level": 3, + "title": "Get redirect url", + "slug": "get-redirect-url" + }, + "depth": 3 + } + ] + } + ] }, { "type": "file", "data": { @@ -60,13 +112,51 @@ 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 "foldPrefix": "^", "name": "PHP" }, - "sourcePath": "/Users/japatel/Documents/workspace/paypal/PayPal-PHP-SDK/sample/billing/CreatePlan.php", + "sourcePath": "/home/travis/build/paypal/PayPal-PHP-SDK/sample/billing/CreatePlan.php", "projectPath": "billing/CreatePlan.php", "targetPath": "billing/CreatePlan", "pageTitle": "billing/CreatePlan", "title": "CreatePlan" }, - "depth": 2 + "depth": 2, + "outline": [ + { + "type": "heading", + "data": { + "level": 1, + "title": "Create Plan Sample", + "slug": "create-plan-sample" + }, + "depth": 1 + }, { + "type": "heading", + "data": { + "level": 1, + "title": "Basic Information", + "slug": "basic-information" + }, + "depth": 1 + }, { + "type": "heading", + "data": { + "level": 1, + "title": "Payment definitions for this billing plan.", + "slug": "payment-definitions-for-this-billing-plan" + }, + "depth": 1, + "children": [ + { + "type": "heading", + "data": { + "level": 3, + "title": "Create Plan", + "slug": "create-plan" + }, + "depth": 3 + } + ] + } + ] }, { "type": "file", "data": { @@ -78,13 +168,24 @@ 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 "foldPrefix": "^", "name": "PHP" }, - "sourcePath": "/Users/japatel/Documents/workspace/paypal/PayPal-PHP-SDK/sample/billing/DeletePlan.php", + "sourcePath": "/home/travis/build/paypal/PayPal-PHP-SDK/sample/billing/DeletePlan.php", "projectPath": "billing/DeletePlan.php", "targetPath": "billing/DeletePlan", "pageTitle": "billing/DeletePlan", "title": "DeletePlan" }, - "depth": 2 + "depth": 2, + "outline": [ + { + "type": "heading", + "data": { + "level": 1, + "title": "Delete Plan Sample", + "slug": "delete-plan-sample" + }, + "depth": 1 + } + ] }, { "type": "file", "data": { @@ -96,13 +197,51 @@ 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 "foldPrefix": "^", "name": "PHP" }, - "sourcePath": "/Users/japatel/Documents/workspace/paypal/PayPal-PHP-SDK/sample/billing/ExecuteAgreement.php", + "sourcePath": "/home/travis/build/paypal/PayPal-PHP-SDK/sample/billing/ExecuteAgreement.php", "projectPath": "billing/ExecuteAgreement.php", "targetPath": "billing/ExecuteAgreement", "pageTitle": "billing/ExecuteAgreement", "title": "ExecuteAgreement" }, - "depth": 2 + "depth": 2, + "outline": [ + { + "type": "heading", + "data": { + "level": 1, + "title": "Execute Agreement", + "slug": "execute-agreement" + }, + "depth": 1, + "children": [ + { + "type": "heading", + "data": { + "level": 2, + "title": "Approval Status", + "slug": "approval-status" + }, + "depth": 2 + }, { + "type": "heading", + "data": { + "level": 2, + "title": "Execute Agreement", + "slug": "execute-agreement" + }, + "depth": 2 + }, { + "type": "heading", + "data": { + "level": 2, + "title": "Get Agreement", + "slug": "get-agreement" + }, + "depth": 2 + } + ] + } + ] }, { "type": "file", "data": { @@ -114,13 +253,24 @@ 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 "foldPrefix": "^", "name": "PHP" }, - "sourcePath": "/Users/japatel/Documents/workspace/paypal/PayPal-PHP-SDK/sample/billing/GetBillingAgreement.php", + "sourcePath": "/home/travis/build/paypal/PayPal-PHP-SDK/sample/billing/GetBillingAgreement.php", "projectPath": "billing/GetBillingAgreement.php", "targetPath": "billing/GetBillingAgreement", "pageTitle": "billing/GetBillingAgreement", "title": "GetBillingAgreement" }, - "depth": 2 + "depth": 2, + "outline": [ + { + "type": "heading", + "data": { + "level": 1, + "title": "Get Billing Agreement Sample", + "slug": "get-billing-agreement-sample" + }, + "depth": 1 + } + ] }, { "type": "file", "data": { @@ -132,13 +282,24 @@ 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 "foldPrefix": "^", "name": "PHP" }, - "sourcePath": "/Users/japatel/Documents/workspace/paypal/PayPal-PHP-SDK/sample/billing/GetPlan.php", + "sourcePath": "/home/travis/build/paypal/PayPal-PHP-SDK/sample/billing/GetPlan.php", "projectPath": "billing/GetPlan.php", "targetPath": "billing/GetPlan", "pageTitle": "billing/GetPlan", "title": "GetPlan" }, - "depth": 2 + "depth": 2, + "outline": [ + { + "type": "heading", + "data": { + "level": 1, + "title": "Get Plan Sample", + "slug": "get-plan-sample" + }, + "depth": 1 + } + ] }, { "type": "file", "data": { @@ -150,13 +311,24 @@ 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 "foldPrefix": "^", "name": "PHP" }, - "sourcePath": "/Users/japatel/Documents/workspace/paypal/PayPal-PHP-SDK/sample/billing/ListPlans.php", + "sourcePath": "/home/travis/build/paypal/PayPal-PHP-SDK/sample/billing/ListPlans.php", "projectPath": "billing/ListPlans.php", "targetPath": "billing/ListPlans", "pageTitle": "billing/ListPlans", "title": "ListPlans" }, - "depth": 2 + "depth": 2, + "outline": [ + { + "type": "heading", + "data": { + "level": 1, + "title": "Get List of Plan Sample", + "slug": "get-list-of-plan-sample" + }, + "depth": 1 + } + ] }, { "type": "file", "data": { @@ -168,13 +340,24 @@ 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 "foldPrefix": "^", "name": "PHP" }, - "sourcePath": "/Users/japatel/Documents/workspace/paypal/PayPal-PHP-SDK/sample/billing/ReactivateBillingAgreement.php", + "sourcePath": "/home/travis/build/paypal/PayPal-PHP-SDK/sample/billing/ReactivateBillingAgreement.php", "projectPath": "billing/ReactivateBillingAgreement.php", "targetPath": "billing/ReactivateBillingAgreement", "pageTitle": "billing/ReactivateBillingAgreement", "title": "ReactivateBillingAgreement" }, - "depth": 2 + "depth": 2, + "outline": [ + { + "type": "heading", + "data": { + "level": 1, + "title": "Reactivate an agreement", + "slug": "reactivate-an-agreement" + }, + "depth": 1 + } + ] }, { "type": "file", "data": { @@ -186,13 +369,24 @@ 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 "foldPrefix": "^", "name": "PHP" }, - "sourcePath": "/Users/japatel/Documents/workspace/paypal/PayPal-PHP-SDK/sample/billing/SearchBillingTransactions.php", + "sourcePath": "/home/travis/build/paypal/PayPal-PHP-SDK/sample/billing/SearchBillingTransactions.php", "projectPath": "billing/SearchBillingTransactions.php", "targetPath": "billing/SearchBillingTransactions", "pageTitle": "billing/SearchBillingTransactions", "title": "SearchBillingTransactions" }, - "depth": 2 + "depth": 2, + "outline": [ + { + "type": "heading", + "data": { + "level": 1, + "title": "Search Billing Transactions Sample", + "slug": "search-billing-transactions-sample" + }, + "depth": 1 + } + ] }, { "type": "file", "data": { @@ -204,13 +398,24 @@ 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 "foldPrefix": "^", "name": "PHP" }, - "sourcePath": "/Users/japatel/Documents/workspace/paypal/PayPal-PHP-SDK/sample/billing/SuspendBillingAgreement.php", + "sourcePath": "/home/travis/build/paypal/PayPal-PHP-SDK/sample/billing/SuspendBillingAgreement.php", "projectPath": "billing/SuspendBillingAgreement.php", "targetPath": "billing/SuspendBillingAgreement", "pageTitle": "billing/SuspendBillingAgreement", "title": "SuspendBillingAgreement" }, - "depth": 2 + "depth": 2, + "outline": [ + { + "type": "heading", + "data": { + "level": 1, + "title": "Suspend an agreement", + "slug": "suspend-an-agreement" + }, + "depth": 1 + } + ] }, { "type": "file", "data": { @@ -222,13 +427,24 @@ 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 "foldPrefix": "^", "name": "PHP" }, - "sourcePath": "/Users/japatel/Documents/workspace/paypal/PayPal-PHP-SDK/sample/billing/UpdateBillingAgreement.php", + "sourcePath": "/home/travis/build/paypal/PayPal-PHP-SDK/sample/billing/UpdateBillingAgreement.php", "projectPath": "billing/UpdateBillingAgreement.php", "targetPath": "billing/UpdateBillingAgreement", "pageTitle": "billing/UpdateBillingAgreement", "title": "UpdateBillingAgreement" }, - "depth": 2 + "depth": 2, + "outline": [ + { + "type": "heading", + "data": { + "level": 1, + "title": "Update an agreement", + "slug": "update-an-agreement" + }, + "depth": 1 + } + ] }, { "type": "file", "data": { @@ -240,13 +456,35 @@ 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 "foldPrefix": "^", "name": "PHP" }, - "sourcePath": "/Users/japatel/Documents/workspace/paypal/PayPal-PHP-SDK/sample/billing/UpdatePlan.php", + "sourcePath": "/home/travis/build/paypal/PayPal-PHP-SDK/sample/billing/UpdatePlan.php", "projectPath": "billing/UpdatePlan.php", "targetPath": "billing/UpdatePlan", "pageTitle": "billing/UpdatePlan", "title": "UpdatePlan" }, - "depth": 2 + "depth": 2, + "outline": [ + { + "type": "heading", + "data": { + "level": 1, + "title": "Update a plan", + "slug": "update-a-plan" + }, + "depth": 1, + "children": [ + { + "type": "heading", + "data": { + "level": 3, + "title": "Making Plan Active", + "slug": "making-plan-active" + }, + "depth": 3 + } + ] + } + ] }, { "type": "file", "data": { @@ -258,13 +496,35 @@ 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 "foldPrefix": "^", "name": "PHP" }, - "sourcePath": "/Users/japatel/Documents/workspace/paypal/PayPal-PHP-SDK/sample/billing/UpdatePlanPaymentDefinitions.php", + "sourcePath": "/home/travis/build/paypal/PayPal-PHP-SDK/sample/billing/UpdatePlanPaymentDefinitions.php", "projectPath": "billing/UpdatePlanPaymentDefinitions.php", "targetPath": "billing/UpdatePlanPaymentDefinitions", "pageTitle": "billing/UpdatePlanPaymentDefinitions", "title": "UpdatePlanPaymentDefinitions" }, - "depth": 2 + "depth": 2, + "outline": [ + { + "type": "heading", + "data": { + "level": 1, + "title": "Update a plan", + "slug": "update-a-plan" + }, + "depth": 1, + "children": [ + { + "type": "heading", + "data": { + "level": 3, + "title": "Changing Plan Amount", + "slug": "changing-plan-amount" + }, + "depth": 3 + } + ] + } + ] } ] }, { @@ -286,13 +546,43 @@ 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 "foldPrefix": "^", "name": "PHP" }, - "sourcePath": "/Users/japatel/Documents/workspace/paypal/PayPal-PHP-SDK/sample/invoice/CancelInvoice.php", + "sourcePath": "/home/travis/build/paypal/PayPal-PHP-SDK/sample/invoice/CancelInvoice.php", "projectPath": "invoice/CancelInvoice.php", "targetPath": "invoice/CancelInvoice", "pageTitle": "invoice/CancelInvoice", "title": "CancelInvoice" }, - "depth": 2 + "depth": 2, + "outline": [ + { + "type": "heading", + "data": { + "level": 1, + "title": "Cancel Invoice Sample", + "slug": "cancel-invoice-sample" + }, + "depth": 1, + "children": [ + { + "type": "heading", + "data": { + "level": 3, + "title": "Cancel Notification Object", + "slug": "cancel-notification-object" + }, + "depth": 3 + }, { + "type": "heading", + "data": { + "level": 3, + "title": "Cancel Invoice", + "slug": "cancel-invoice" + }, + "depth": 3 + } + ] + } + ] }, { "type": "file", "data": { @@ -304,13 +594,118 @@ 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 "foldPrefix": "^", "name": "PHP" }, - "sourcePath": "/Users/japatel/Documents/workspace/paypal/PayPal-PHP-SDK/sample/invoice/CreateInvoice.php", + "sourcePath": "/home/travis/build/paypal/PayPal-PHP-SDK/sample/invoice/CreateInvoice.php", "projectPath": "invoice/CreateInvoice.php", "targetPath": "invoice/CreateInvoice", "pageTitle": "invoice/CreateInvoice", "title": "CreateInvoice" }, - "depth": 2 + "depth": 2, + "outline": [ + { + "type": "heading", + "data": { + "level": 1, + "title": "Create Invoice Sample", + "slug": "create-invoice-sample" + }, + "depth": 1, + "children": [ + { + "type": "heading", + "data": { + "level": 3, + "title": "Invoice Info", + "slug": "invoice-info" + }, + "depth": 3 + }, { + "type": "heading", + "data": { + "level": 3, + "title": "Merchant Info", + "slug": "merchant-info" + }, + "depth": 3 + }, { + "type": "heading", + "data": { + "level": 3, + "title": "Address Information", + "slug": "address-information" + }, + "depth": 3 + }, { + "type": "heading", + "data": { + "level": 3, + "title": "Billing Information", + "slug": "billing-information" + }, + "depth": 3 + }, { + "type": "heading", + "data": { + "level": 3, + "title": "Items List", + "slug": "items-list" + }, + "depth": 3, + "children": [ + { + "type": "heading", + "data": { + "level": 4, + "title": "Tax Item", + "slug": "tax-item" + }, + "depth": 4 + }, { + "type": "heading", + "data": { + "level": 4, + "title": "Tax Item", + "slug": "tax-item" + }, + "depth": 4 + }, { + "type": "heading", + "data": { + "level": 4, + "title": "Final Discount", + "slug": "final-discount" + }, + "depth": 4 + } + ] + }, { + "type": "heading", + "data": { + "level": 3, + "title": "Shipping Information", + "slug": "shipping-information" + }, + "depth": 3 + }, { + "type": "heading", + "data": { + "level": 3, + "title": "Logo", + "slug": "logo" + }, + "depth": 3 + }, { + "type": "heading", + "data": { + "level": 3, + "title": "Create Invoice", + "slug": "create-invoice" + }, + "depth": 3 + } + ] + } + ] }, { "type": "file", "data": { @@ -322,13 +717,131 @@ 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 "foldPrefix": "^", "name": "PHP" }, - "sourcePath": "/Users/japatel/Documents/workspace/paypal/PayPal-PHP-SDK/sample/invoice/DeleteInvoice.php", + "sourcePath": "/home/travis/build/paypal/PayPal-PHP-SDK/sample/invoice/CreateThirdPartyInvoice.php", + "projectPath": "invoice/CreateThirdPartyInvoice.php", + "targetPath": "invoice/CreateThirdPartyInvoice", + "pageTitle": "invoice/CreateThirdPartyInvoice", + "title": "CreateThirdPartyInvoice" + }, + "depth": 2, + "outline": [ + { + "type": "heading", + "data": { + "level": 1, + "title": "Create Third Party Invoice Sample", + "slug": "create-third-party-invoice-sample" + }, + "depth": 1, + "children": [ + { + "type": "heading", + "data": { + "level": 3, + "title": "Invoice Info", + "slug": "invoice-info" + }, + "depth": 3 + }, { + "type": "heading", + "data": { + "level": 3, + "title": "Merchant Info", + "slug": "merchant-info" + }, + "depth": 3 + }, { + "type": "heading", + "data": { + "level": 3, + "title": "Address Information", + "slug": "address-information" + }, + "depth": 3 + }, { + "type": "heading", + "data": { + "level": 3, + "title": "Billing Information", + "slug": "billing-information" + }, + "depth": 3 + }, { + "type": "heading", + "data": { + "level": 3, + "title": "Items List", + "slug": "items-list" + }, + "depth": 3 + }, { + "type": "heading", + "data": { + "level": 3, + "title": "Create Invoice", + "slug": "create-invoice" + }, + "depth": 3 + }, { + "type": "heading", + "data": { + "level": 3, + "title": "Send Invoice", + "slug": "send-invoice" + }, + "depth": 3 + }, { + "type": "heading", + "data": { + "level": 3, + "title": "Send Invoice", + "slug": "send-invoice" + }, + "depth": 3 + } + ] + } + ] + }, { + "type": "file", + "data": { + "language": { + "nameMatchers": [{}, ".fbp"], + "pygmentsLexer": "php", + "singleLineComment": ["//"], + "ignorePrefix": "}", + "foldPrefix": "^", + "name": "PHP" + }, + "sourcePath": "/home/travis/build/paypal/PayPal-PHP-SDK/sample/invoice/DeleteInvoice.php", "projectPath": "invoice/DeleteInvoice.php", "targetPath": "invoice/DeleteInvoice", "pageTitle": "invoice/DeleteInvoice", "title": "DeleteInvoice" }, - "depth": 2 + "depth": 2, + "outline": [ + { + "type": "heading", + "data": { + "level": 1, + "title": "Delete Invoice Sample", + "slug": "delete-invoice-sample" + }, + "depth": 1, + "children": [ + { + "type": "heading", + "data": { + "level": 3, + "title": "Delete Invoice", + "slug": "delete-invoice" + }, + "depth": 3 + } + ] + } + ] }, { "type": "file", "data": { @@ -340,13 +853,35 @@ 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 "foldPrefix": "^", "name": "PHP" }, - "sourcePath": "/Users/japatel/Documents/workspace/paypal/PayPal-PHP-SDK/sample/invoice/GetInvoice.php", + "sourcePath": "/home/travis/build/paypal/PayPal-PHP-SDK/sample/invoice/GetInvoice.php", "projectPath": "invoice/GetInvoice.php", "targetPath": "invoice/GetInvoice", "pageTitle": "invoice/GetInvoice", "title": "GetInvoice" }, - "depth": 2 + "depth": 2, + "outline": [ + { + "type": "heading", + "data": { + "level": 1, + "title": "Get Invoice Sample", + "slug": "get-invoice-sample" + }, + "depth": 1, + "children": [ + { + "type": "heading", + "data": { + "level": 3, + "title": "Retrieve Invoice", + "slug": "retrieve-invoice" + }, + "depth": 3 + } + ] + } + ] }, { "type": "file", "data": { @@ -358,13 +893,35 @@ 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 "foldPrefix": "^", "name": "PHP" }, - "sourcePath": "/Users/japatel/Documents/workspace/paypal/PayPal-PHP-SDK/sample/invoice/ListInvoice.php", + "sourcePath": "/home/travis/build/paypal/PayPal-PHP-SDK/sample/invoice/ListInvoice.php", "projectPath": "invoice/ListInvoice.php", "targetPath": "invoice/ListInvoice", "pageTitle": "invoice/ListInvoice", "title": "ListInvoice" }, - "depth": 2 + "depth": 2, + "outline": [ + { + "type": "heading", + "data": { + "level": 1, + "title": "List Invoices Sample", + "slug": "list-invoices-sample" + }, + "depth": 1, + "children": [ + { + "type": "heading", + "data": { + "level": 3, + "title": "Retrieve Invoices", + "slug": "retrieve-invoices" + }, + "depth": 3 + } + ] + } + ] }, { "type": "file", "data": { @@ -376,13 +933,51 @@ 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 "foldPrefix": "^", "name": "PHP" }, - "sourcePath": "/Users/japatel/Documents/workspace/paypal/PayPal-PHP-SDK/sample/invoice/RecordPayment.php", + "sourcePath": "/home/travis/build/paypal/PayPal-PHP-SDK/sample/invoice/RecordPayment.php", "projectPath": "invoice/RecordPayment.php", "targetPath": "invoice/RecordPayment", "pageTitle": "invoice/RecordPayment", "title": "RecordPayment" }, - "depth": 2 + "depth": 2, + "outline": [ + { + "type": "heading", + "data": { + "level": 1, + "title": "Record Payment Sample", + "slug": "record-payment-sample" + }, + "depth": 1, + "children": [ + { + "type": "heading", + "data": { + "level": 3, + "title": "Record Object", + "slug": "record-object" + }, + "depth": 3 + }, { + "type": "heading", + "data": { + "level": 3, + "title": "Record Payment for Invoice", + "slug": "record-payment-for-invoice" + }, + "depth": 3 + }, { + "type": "heading", + "data": { + "level": 3, + "title": "Retrieve Invoice", + "slug": "retrieve-invoice" + }, + "depth": 3 + } + ] + } + ] }, { "type": "file", "data": { @@ -394,13 +989,51 @@ 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 "foldPrefix": "^", "name": "PHP" }, - "sourcePath": "/Users/japatel/Documents/workspace/paypal/PayPal-PHP-SDK/sample/invoice/RecordRefund.php", + "sourcePath": "/home/travis/build/paypal/PayPal-PHP-SDK/sample/invoice/RecordRefund.php", "projectPath": "invoice/RecordRefund.php", "targetPath": "invoice/RecordRefund", "pageTitle": "invoice/RecordRefund", "title": "RecordRefund" }, - "depth": 2 + "depth": 2, + "outline": [ + { + "type": "heading", + "data": { + "level": 1, + "title": "Record Refund Sample", + "slug": "record-refund-sample" + }, + "depth": 1, + "children": [ + { + "type": "heading", + "data": { + "level": 3, + "title": "Record Object", + "slug": "record-object" + }, + "depth": 3 + }, { + "type": "heading", + "data": { + "level": 3, + "title": "Record Refund for Invoice", + "slug": "record-refund-for-invoice" + }, + "depth": 3 + }, { + "type": "heading", + "data": { + "level": 3, + "title": "Retrieve Invoice", + "slug": "retrieve-invoice" + }, + "depth": 3 + } + ] + } + ] }, { "type": "file", "data": { @@ -412,13 +1045,51 @@ 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 "foldPrefix": "^", "name": "PHP" }, - "sourcePath": "/Users/japatel/Documents/workspace/paypal/PayPal-PHP-SDK/sample/invoice/RemindInvoice.php", + "sourcePath": "/home/travis/build/paypal/PayPal-PHP-SDK/sample/invoice/RemindInvoice.php", "projectPath": "invoice/RemindInvoice.php", "targetPath": "invoice/RemindInvoice", "pageTitle": "invoice/RemindInvoice", "title": "RemindInvoice" }, - "depth": 2 + "depth": 2, + "outline": [ + { + "type": "heading", + "data": { + "level": 1, + "title": "Remind Invoice Sample", + "slug": "remind-invoice-sample" + }, + "depth": 1, + "children": [ + { + "type": "heading", + "data": { + "level": 3, + "title": "Notification Object", + "slug": "notification-object" + }, + "depth": 3 + }, { + "type": "heading", + "data": { + "level": 3, + "title": "Remind Invoice", + "slug": "remind-invoice" + }, + "depth": 3 + }, { + "type": "heading", + "data": { + "level": 3, + "title": "Retrieve Invoice", + "slug": "retrieve-invoice" + }, + "depth": 3 + } + ] + } + ] }, { "type": "file", "data": { @@ -430,13 +1101,51 @@ 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 "foldPrefix": "^", "name": "PHP" }, - "sourcePath": "/Users/japatel/Documents/workspace/paypal/PayPal-PHP-SDK/sample/invoice/RetrieveQRCode.php", + "sourcePath": "/home/travis/build/paypal/PayPal-PHP-SDK/sample/invoice/RetrieveQRCode.php", "projectPath": "invoice/RetrieveQRCode.php", "targetPath": "invoice/RetrieveQRCode", "pageTitle": "invoice/RetrieveQRCode", "title": "RetrieveQRCode" }, - "depth": 2 + "depth": 2, + "outline": [ + { + "type": "heading", + "data": { + "level": 1, + "title": "Retrieve QR Code for Invoice Sample", + "slug": "retrieve-qr-code-for-invoice-sample" + }, + "depth": 1, + "children": [ + { + "type": "heading", + "data": { + "level": 3, + "title": "Retrieve QR Code of Sent Invoice", + "slug": "retrieve-qr-code-of-sent-invoice" + }, + "depth": 3 + }, { + "type": "heading", + "data": { + "level": 3, + "title": "Optionally Save to File", + "slug": "optionally-save-to-file" + }, + "depth": 3 + }, { + "type": "heading", + "data": { + "level": 3, + "title": "Show the Image", + "slug": "show-the-image" + }, + "depth": 3 + } + ] + } + ] }, { "type": "file", "data": { @@ -448,13 +1157,43 @@ 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 "foldPrefix": "^", "name": "PHP" }, - "sourcePath": "/Users/japatel/Documents/workspace/paypal/PayPal-PHP-SDK/sample/invoice/SearchInvoices.php", + "sourcePath": "/home/travis/build/paypal/PayPal-PHP-SDK/sample/invoice/SearchInvoices.php", "projectPath": "invoice/SearchInvoices.php", "targetPath": "invoice/SearchInvoices", "pageTitle": "invoice/SearchInvoices", "title": "SearchInvoices" }, - "depth": 2 + "depth": 2, + "outline": [ + { + "type": "heading", + "data": { + "level": 1, + "title": "Search Invoices Sample", + "slug": "search-invoices-sample" + }, + "depth": 1, + "children": [ + { + "type": "heading", + "data": { + "level": 3, + "title": "Search Object", + "slug": "search-object" + }, + "depth": 3 + }, { + "type": "heading", + "data": { + "level": 3, + "title": "Search Invoices", + "slug": "search-invoices" + }, + "depth": 3 + } + ] + } + ] }, { "type": "file", "data": { @@ -466,13 +1205,43 @@ 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 "foldPrefix": "^", "name": "PHP" }, - "sourcePath": "/Users/japatel/Documents/workspace/paypal/PayPal-PHP-SDK/sample/invoice/SendInvoice.php", + "sourcePath": "/home/travis/build/paypal/PayPal-PHP-SDK/sample/invoice/SendInvoice.php", "projectPath": "invoice/SendInvoice.php", "targetPath": "invoice/SendInvoice", "pageTitle": "invoice/SendInvoice", "title": "SendInvoice" }, - "depth": 2 + "depth": 2, + "outline": [ + { + "type": "heading", + "data": { + "level": 1, + "title": "Create Invoice Sample", + "slug": "create-invoice-sample" + }, + "depth": 1, + "children": [ + { + "type": "heading", + "data": { + "level": 3, + "title": "Send Invoice", + "slug": "send-invoice" + }, + "depth": 3 + }, { + "type": "heading", + "data": { + "level": 3, + "title": "Retrieve Invoice", + "slug": "retrieve-invoice" + }, + "depth": 3 + } + ] + } + ] }, { "type": "file", "data": { @@ -484,13 +1253,59 @@ 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 "foldPrefix": "^", "name": "PHP" }, - "sourcePath": "/Users/japatel/Documents/workspace/paypal/PayPal-PHP-SDK/sample/invoice/UpdateInvoice.php", + "sourcePath": "/home/travis/build/paypal/PayPal-PHP-SDK/sample/invoice/UpdateInvoice.php", "projectPath": "invoice/UpdateInvoice.php", "targetPath": "invoice/UpdateInvoice", "pageTitle": "invoice/UpdateInvoice", "title": "UpdateInvoice" }, - "depth": 2 + "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 + } + ] + } + ] } ] }, { @@ -512,13 +1327,24 @@ 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 "foldPrefix": "^", "name": "PHP" }, - "sourcePath": "/Users/japatel/Documents/workspace/paypal/PayPal-PHP-SDK/sample/lipp/GenerateAccessTokenFromRefreshToken.php", + "sourcePath": "/home/travis/build/paypal/PayPal-PHP-SDK/sample/lipp/GenerateAccessTokenFromRefreshToken.php", "projectPath": "lipp/GenerateAccessTokenFromRefreshToken.php", "targetPath": "lipp/GenerateAccessTokenFromRefreshToken", "pageTitle": "lipp/GenerateAccessTokenFromRefreshToken", "title": "GenerateAccessTokenFromRefreshToken" }, - "depth": 2 + "depth": 2, + "outline": [ + { + "type": "heading", + "data": { + "level": 3, + "title": "Obtain Access Token From Refresh Token", + "slug": "obtain-access-token-from-refresh-token" + }, + "depth": 3 + } + ] }, { "type": "file", "data": { @@ -530,13 +1356,24 @@ 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 "foldPrefix": "^", "name": "PHP" }, - "sourcePath": "/Users/japatel/Documents/workspace/paypal/PayPal-PHP-SDK/sample/lipp/GetUserInfo.php", + "sourcePath": "/home/travis/build/paypal/PayPal-PHP-SDK/sample/lipp/GetUserInfo.php", "projectPath": "lipp/GetUserInfo.php", "targetPath": "lipp/GetUserInfo", "pageTitle": "lipp/GetUserInfo", "title": "GetUserInfo" }, - "depth": 2 + "depth": 2, + "outline": [ + { + "type": "heading", + "data": { + "level": 3, + "title": "Obtain Access Token From Refresh Token", + "slug": "obtain-access-token-from-refresh-token" + }, + "depth": 3 + } + ] }, { "type": "file", "data": { @@ -548,13 +1385,24 @@ 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 "foldPrefix": "^", "name": "PHP" }, - "sourcePath": "/Users/japatel/Documents/workspace/paypal/PayPal-PHP-SDK/sample/lipp/ObtainUserConsent.php", + "sourcePath": "/home/travis/build/paypal/PayPal-PHP-SDK/sample/lipp/ObtainUserConsent.php", "projectPath": "lipp/ObtainUserConsent.php", "targetPath": "lipp/ObtainUserConsent", "pageTitle": "lipp/ObtainUserConsent", "title": "ObtainUserConsent" }, - "depth": 2 + "depth": 2, + "outline": [ + { + "type": "heading", + "data": { + "level": 3, + "title": "Get User Consent URL", + "slug": "get-user-consent-url" + }, + "depth": 3 + } + ] }, { "type": "file", "data": { @@ -566,13 +1414,24 @@ 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 "foldPrefix": "^", "name": "PHP" }, - "sourcePath": "/Users/japatel/Documents/workspace/paypal/PayPal-PHP-SDK/sample/lipp/UserConsentRedirect.php", + "sourcePath": "/home/travis/build/paypal/PayPal-PHP-SDK/sample/lipp/UserConsentRedirect.php", "projectPath": "lipp/UserConsentRedirect.php", "targetPath": "lipp/UserConsentRedirect", "pageTitle": "lipp/UserConsentRedirect", "title": "UserConsentRedirect" }, - "depth": 2 + "depth": 2, + "outline": [ + { + "type": "heading", + "data": { + "level": 3, + "title": "User Consent Response", + "slug": "user-consent-response" + }, + "depth": 3 + } + ] } ] }, { @@ -594,13 +1453,62 @@ 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 "foldPrefix": "^", "name": "PHP" }, - "sourcePath": "/Users/japatel/Documents/workspace/paypal/PayPal-PHP-SDK/sample/notifications/CreateWebhook.php", + "sourcePath": "/home/travis/build/paypal/PayPal-PHP-SDK/sample/notifications/CreateWebhook.php", "projectPath": "notifications/CreateWebhook.php", "targetPath": "notifications/CreateWebhook", "pageTitle": "notifications/CreateWebhook", "title": "CreateWebhook" }, - "depth": 2 + "depth": 2, + "outline": [ + { + "type": "heading", + "data": { + "level": 1, + "title": "Create Webhook Sample", + "slug": "create-webhook-sample" + }, + "depth": 1 + }, { + "type": "heading", + "data": { + "level": 1, + "title": "Basic Information", + "slug": "basic-information" + }, + "depth": 1, + "children": [ + { + "type": "heading", + "data": { + "level": 4, + "title": "NOTE: Please note that you need an https url for paypal webhooks. You can however override the url with https, and accept", + "slug": "note-please-note-that-you-need-an-https-url-for-paypal-webhooks-you-can-however-override-the-url-with-https-and-accept" + }, + "depth": 4 + } + ] + }, { + "type": "heading", + "data": { + "level": 1, + "title": "Event Types", + "slug": "event-types" + }, + "depth": 1, + "children": [ + { + "type": "heading", + "data": { + "level": 3, + "title": "Create Webhook", + "slug": "create-webhook" + }, + "depth": 3 + } + ] + } + ] }, { "type": "file", "data": { @@ -612,13 +1520,46 @@ 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 "foldPrefix": "^", "name": "PHP" }, - "sourcePath": "/Users/japatel/Documents/workspace/paypal/PayPal-PHP-SDK/sample/notifications/DeleteAllWebhooks.php", + "sourcePath": "/home/travis/build/paypal/PayPal-PHP-SDK/sample/notifications/DeleteAllWebhooks.php", "projectPath": "notifications/DeleteAllWebhooks.php", "targetPath": "notifications/DeleteAllWebhooks", "pageTitle": "notifications/DeleteAllWebhooks", "title": "DeleteAllWebhooks" }, - "depth": 2 + "depth": 2, + "outline": [ + { + "type": "heading", + "data": { + "level": 1, + "title": "Delete All Webhook Sample", + "slug": "delete-all-webhook-sample" + }, + "depth": 1, + "children": [ + { + "type": "heading", + "data": { + "level": 2, + "title": "Get Webhook Instance", + "slug": "get-webhook-instance" + }, + "depth": 2, + "children": [ + { + "type": "heading", + "data": { + "level": 3, + "title": "Delete Webhook", + "slug": "delete-webhook" + }, + "depth": 3 + } + ] + } + ] + } + ] }, { "type": "file", "data": { @@ -630,13 +1571,46 @@ 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 "foldPrefix": "^", "name": "PHP" }, - "sourcePath": "/Users/japatel/Documents/workspace/paypal/PayPal-PHP-SDK/sample/notifications/DeleteWebhook.php", + "sourcePath": "/home/travis/build/paypal/PayPal-PHP-SDK/sample/notifications/DeleteWebhook.php", "projectPath": "notifications/DeleteWebhook.php", "targetPath": "notifications/DeleteWebhook", "pageTitle": "notifications/DeleteWebhook", "title": "DeleteWebhook" }, - "depth": 2 + "depth": 2, + "outline": [ + { + "type": "heading", + "data": { + "level": 1, + "title": "Delete Webhook Sample", + "slug": "delete-webhook-sample" + }, + "depth": 1, + "children": [ + { + "type": "heading", + "data": { + "level": 2, + "title": "Get Webhook Instance", + "slug": "get-webhook-instance" + }, + "depth": 2, + "children": [ + { + "type": "heading", + "data": { + "level": 3, + "title": "Delete Webhook", + "slug": "delete-webhook" + }, + "depth": 3 + } + ] + } + ] + } + ] }, { "type": "file", "data": { @@ -648,13 +1622,46 @@ 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 "foldPrefix": "^", "name": "PHP" }, - "sourcePath": "/Users/japatel/Documents/workspace/paypal/PayPal-PHP-SDK/sample/notifications/GetWebhook.php", + "sourcePath": "/home/travis/build/paypal/PayPal-PHP-SDK/sample/notifications/GetWebhook.php", "projectPath": "notifications/GetWebhook.php", "targetPath": "notifications/GetWebhook", "pageTitle": "notifications/GetWebhook", "title": "GetWebhook" }, - "depth": 2 + "depth": 2, + "outline": [ + { + "type": "heading", + "data": { + "level": 1, + "title": "Get Webhook Sample", + "slug": "get-webhook-sample" + }, + "depth": 1, + "children": [ + { + "type": "heading", + "data": { + "level": 2, + "title": "Get Webhook ID.", + "slug": "get-webhook-id" + }, + "depth": 2, + "children": [ + { + "type": "heading", + "data": { + "level": 3, + "title": "Get Webhook", + "slug": "get-webhook" + }, + "depth": 3 + } + ] + } + ] + } + ] }, { "type": "file", "data": { @@ -666,13 +1673,46 @@ 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 "foldPrefix": "^", "name": "PHP" }, - "sourcePath": "/Users/japatel/Documents/workspace/paypal/PayPal-PHP-SDK/sample/notifications/ListSubscribedWebhookEventTypes.php", + "sourcePath": "/home/travis/build/paypal/PayPal-PHP-SDK/sample/notifications/ListSubscribedWebhookEventTypes.php", "projectPath": "notifications/ListSubscribedWebhookEventTypes.php", "targetPath": "notifications/ListSubscribedWebhookEventTypes", "pageTitle": "notifications/ListSubscribedWebhookEventTypes", "title": "ListSubscribedWebhookEventTypes" }, - "depth": 2 + "depth": 2, + "outline": [ + { + "type": "heading", + "data": { + "level": 1, + "title": "Get Webhook Sample", + "slug": "get-webhook-sample" + }, + "depth": 1, + "children": [ + { + "type": "heading", + "data": { + "level": 2, + "title": "List Subscribed Event Types", + "slug": "list-subscribed-event-types" + }, + "depth": 2, + "children": [ + { + "type": "heading", + "data": { + "level": 3, + "title": "Get List of Subscribed Event Types", + "slug": "get-list-of-subscribed-event-types" + }, + "depth": 3 + } + ] + } + ] + } + ] }, { "type": "file", "data": { @@ -684,13 +1724,46 @@ 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 "foldPrefix": "^", "name": "PHP" }, - "sourcePath": "/Users/japatel/Documents/workspace/paypal/PayPal-PHP-SDK/sample/notifications/ListWebhooks.php", + "sourcePath": "/home/travis/build/paypal/PayPal-PHP-SDK/sample/notifications/ListWebhooks.php", "projectPath": "notifications/ListWebhooks.php", "targetPath": "notifications/ListWebhooks", "pageTitle": "notifications/ListWebhooks", "title": "ListWebhooks" }, - "depth": 2 + "depth": 2, + "outline": [ + { + "type": "heading", + "data": { + "level": 1, + "title": "Get All Webhooks Sample", + "slug": "get-all-webhooks-sample" + }, + "depth": 1, + "children": [ + { + "type": "heading", + "data": { + "level": 2, + "title": "List Webhooks", + "slug": "list-webhooks" + }, + "depth": 2, + "children": [ + { + "type": "heading", + "data": { + "level": 3, + "title": "Get List of All Webhooks", + "slug": "get-list-of-all-webhooks" + }, + "depth": 3 + } + ] + } + ] + } + ] }, { "type": "file", "data": { @@ -702,13 +1775,54 @@ 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 "foldPrefix": "^", "name": "PHP" }, - "sourcePath": "/Users/japatel/Documents/workspace/paypal/PayPal-PHP-SDK/sample/notifications/SearchWebhookEvents.php", + "sourcePath": "/home/travis/build/paypal/PayPal-PHP-SDK/sample/notifications/SearchWebhookEvents.php", "projectPath": "notifications/SearchWebhookEvents.php", "targetPath": "notifications/SearchWebhookEvents", "pageTitle": "notifications/SearchWebhookEvents", "title": "SearchWebhookEvents" }, - "depth": 2 + "depth": 2, + "outline": [ + { + "type": "heading", + "data": { + "level": 1, + "title": "Search Webhook Events Sample", + "slug": "search-webhook-events-sample" + }, + "depth": 1, + "children": [ + { + "type": "heading", + "data": { + "level": 2, + "title": "Get Webhook Instance", + "slug": "get-webhook-instance" + }, + "depth": 2 + }, { + "type": "heading", + "data": { + "level": 2, + "title": "PLEASE NOTE:", + "slug": "please-note" + }, + "depth": 2, + "children": [ + { + "type": "heading", + "data": { + "level": 3, + "title": "Search Webhook events", + "slug": "search-webhook-events" + }, + "depth": 3 + } + ] + } + ] + } + ] }, { "type": "file", "data": { @@ -720,13 +1834,46 @@ 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 "foldPrefix": "^", "name": "PHP" }, - "sourcePath": "/Users/japatel/Documents/workspace/paypal/PayPal-PHP-SDK/sample/notifications/UpdateWebhook.php", + "sourcePath": "/home/travis/build/paypal/PayPal-PHP-SDK/sample/notifications/UpdateWebhook.php", "projectPath": "notifications/UpdateWebhook.php", "targetPath": "notifications/UpdateWebhook", "pageTitle": "notifications/UpdateWebhook", "title": "UpdateWebhook" }, - "depth": 2 + "depth": 2, + "outline": [ + { + "type": "heading", + "data": { + "level": 1, + "title": "Update Webhook Sample", + "slug": "update-webhook-sample" + }, + "depth": 1, + "children": [ + { + "type": "heading", + "data": { + "level": 2, + "title": "Get Webhook ID.", + "slug": "get-webhook-id" + }, + "depth": 2, + "children": [ + { + "type": "heading", + "data": { + "level": 3, + "title": "Get Webhook", + "slug": "get-webhook" + }, + "depth": 3 + } + ] + } + ] + } + ] }, { "type": "file", "data": { @@ -738,13 +1885,46 @@ 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 "foldPrefix": "^", "name": "PHP" }, - "sourcePath": "/Users/japatel/Documents/workspace/paypal/PayPal-PHP-SDK/sample/notifications/ValidateWebhookEvent.php", + "sourcePath": "/home/travis/build/paypal/PayPal-PHP-SDK/sample/notifications/ValidateWebhookEvent.php", "projectPath": "notifications/ValidateWebhookEvent.php", "targetPath": "notifications/ValidateWebhookEvent", "pageTitle": "notifications/ValidateWebhookEvent", "title": "ValidateWebhookEvent" }, - "depth": 2 + "depth": 2, + "outline": [ + { + "type": "heading", + "data": { + "level": 1, + "title": "Validate Webhook", + "slug": "validate-webhook" + }, + "depth": 1, + "children": [ + { + "type": "heading", + "data": { + "level": 2, + "title": "Received Body from Webhook", + "slug": "received-body-from-webhook" + }, + "depth": 2, + "children": [ + { + "type": "heading", + "data": { + "level": 3, + "title": "Validate Received Event Method", + "slug": "validate-received-event-method" + }, + "depth": 3 + } + ] + } + ] + } + ] }, { "type": "file", "data": { @@ -756,13 +1936,35 @@ 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 "foldPrefix": "^", "name": "PHP" }, - "sourcePath": "/Users/japatel/Documents/workspace/paypal/PayPal-PHP-SDK/sample/notifications/WebhookEventTypesList.php", + "sourcePath": "/home/travis/build/paypal/PayPal-PHP-SDK/sample/notifications/WebhookEventTypesList.php", "projectPath": "notifications/WebhookEventTypesList.php", "targetPath": "notifications/WebhookEventTypesList", "pageTitle": "notifications/WebhookEventTypesList", "title": "WebhookEventTypesList" }, - "depth": 2 + "depth": 2, + "outline": [ + { + "type": "heading", + "data": { + "level": 1, + "title": "Get Reference List of all Webhook Event Types", + "slug": "get-reference-list-of-all-webhook-event-types" + }, + "depth": 1, + "children": [ + { + "type": "heading", + "data": { + "level": 3, + "title": "Get List of all Webhook event types", + "slug": "get-list-of-all-webhook-event-types" + }, + "depth": 3 + } + ] + } + ] } ] }, { @@ -784,13 +1986,35 @@ 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 "foldPrefix": "^", "name": "PHP" }, - "sourcePath": "/Users/japatel/Documents/workspace/paypal/PayPal-PHP-SDK/sample/payment-experience/CreateWebProfile.php", + "sourcePath": "/home/travis/build/paypal/PayPal-PHP-SDK/sample/payment-experience/CreateWebProfile.php", "projectPath": "payment-experience/CreateWebProfile.php", "targetPath": "payment-experience/CreateWebProfile", "pageTitle": "payment-experience/CreateWebProfile", "title": "CreateWebProfile" }, - "depth": 2 + "depth": 2, + "outline": [ + { + "type": "heading", + "data": { + "level": 3, + "title": "Create Web Profile", + "slug": "create-web-profile" + }, + "depth": 3, + "children": [ + { + "type": "heading", + "data": { + "level": 4, + "title": "Payment Web experience profile resource", + "slug": "payment-web-experience-profile-resource" + }, + "depth": 4 + } + ] + } + ] }, { "type": "file", "data": { @@ -802,13 +2026,24 @@ 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 "foldPrefix": "^", "name": "PHP" }, - "sourcePath": "/Users/japatel/Documents/workspace/paypal/PayPal-PHP-SDK/sample/payment-experience/DeleteWebProfile.php", + "sourcePath": "/home/travis/build/paypal/PayPal-PHP-SDK/sample/payment-experience/DeleteWebProfile.php", "projectPath": "payment-experience/DeleteWebProfile.php", "targetPath": "payment-experience/DeleteWebProfile", "pageTitle": "payment-experience/DeleteWebProfile", "title": "DeleteWebProfile" }, - "depth": 2 + "depth": 2, + "outline": [ + { + "type": "heading", + "data": { + "level": 4, + "title": "Delete Web Profile", + "slug": "delete-web-profile" + }, + "depth": 4 + } + ] }, { "type": "file", "data": { @@ -820,13 +2055,24 @@ 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 "foldPrefix": "^", "name": "PHP" }, - "sourcePath": "/Users/japatel/Documents/workspace/paypal/PayPal-PHP-SDK/sample/payment-experience/GetWebProfile.php", + "sourcePath": "/home/travis/build/paypal/PayPal-PHP-SDK/sample/payment-experience/GetWebProfile.php", "projectPath": "payment-experience/GetWebProfile.php", "targetPath": "payment-experience/GetWebProfile", "pageTitle": "payment-experience/GetWebProfile", "title": "GetWebProfile" }, - "depth": 2 + "depth": 2, + "outline": [ + { + "type": "heading", + "data": { + "level": 3, + "title": "Get Web Profile", + "slug": "get-web-profile" + }, + "depth": 3 + } + ] }, { "type": "file", "data": { @@ -838,13 +2084,24 @@ 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 "foldPrefix": "^", "name": "PHP" }, - "sourcePath": "/Users/japatel/Documents/workspace/paypal/PayPal-PHP-SDK/sample/payment-experience/ListWebProfiles.php", + "sourcePath": "/home/travis/build/paypal/PayPal-PHP-SDK/sample/payment-experience/ListWebProfiles.php", "projectPath": "payment-experience/ListWebProfiles.php", "targetPath": "payment-experience/ListWebProfiles", "pageTitle": "payment-experience/ListWebProfiles", "title": "ListWebProfiles" }, - "depth": 2 + "depth": 2, + "outline": [ + { + "type": "heading", + "data": { + "level": 3, + "title": "Retrieve List of All Web Profiles", + "slug": "retrieve-list-of-all-web-profiles" + }, + "depth": 3 + } + ] }, { "type": "file", "data": { @@ -856,13 +2113,32 @@ 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 "foldPrefix": "^", "name": "PHP" }, - "sourcePath": "/Users/japatel/Documents/workspace/paypal/PayPal-PHP-SDK/sample/payment-experience/PartiallyUpdateWebProfile.php", + "sourcePath": "/home/travis/build/paypal/PayPal-PHP-SDK/sample/payment-experience/PartiallyUpdateWebProfile.php", "projectPath": "payment-experience/PartiallyUpdateWebProfile.php", "targetPath": "payment-experience/PartiallyUpdateWebProfile", "pageTitle": "payment-experience/PartiallyUpdateWebProfile", "title": "PartiallyUpdateWebProfile" }, - "depth": 2 + "depth": 2, + "outline": [ + { + "type": "heading", + "data": { + "level": 4, + "title": "Partially Update Web Profile", + "slug": "partially-update-web-profile" + }, + "depth": 4 + }, { + "type": "heading", + "data": { + "level": 3, + "title": "Create Patch Operation", + "slug": "create-patch-operation" + }, + "depth": 3 + } + ] }, { "type": "file", "data": { @@ -874,13 +2150,24 @@ 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 "foldPrefix": "^", "name": "PHP" }, - "sourcePath": "/Users/japatel/Documents/workspace/paypal/PayPal-PHP-SDK/sample/payment-experience/UpdateWebProfile.php", + "sourcePath": "/home/travis/build/paypal/PayPal-PHP-SDK/sample/payment-experience/UpdateWebProfile.php", "projectPath": "payment-experience/UpdateWebProfile.php", "targetPath": "payment-experience/UpdateWebProfile", "pageTitle": "payment-experience/UpdateWebProfile", "title": "UpdateWebProfile" }, - "depth": 2 + "depth": 2, + "outline": [ + { + "type": "heading", + "data": { + "level": 4, + "title": "Update Web Profile", + "slug": "update-web-profile" + }, + "depth": 4 + } + ] } ] }, { @@ -902,13 +2189,35 @@ 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 "foldPrefix": "^", "name": "PHP" }, - "sourcePath": "/Users/japatel/Documents/workspace/paypal/PayPal-PHP-SDK/sample/payments/AuthorizationCapture.php", + "sourcePath": "/home/travis/build/paypal/PayPal-PHP-SDK/sample/payments/AuthorizationCapture.php", "projectPath": "payments/AuthorizationCapture.php", "targetPath": "payments/AuthorizationCapture", "pageTitle": "payments/AuthorizationCapture", "title": "AuthorizationCapture" }, - "depth": 2 + "depth": 2, + "outline": [ + { + "type": "heading", + "data": { + "level": 1, + "title": "AuthorizationCapture", + "slug": "authorizationcapture" + }, + "depth": 1, + "children": [ + { + "type": "heading", + "data": { + "level": 3, + "title": "Capture Payment", + "slug": "capture-payment" + }, + "depth": 3 + } + ] + } + ] }, { "type": "file", "data": { @@ -920,13 +2229,35 @@ 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 "foldPrefix": "^", "name": "PHP" }, - "sourcePath": "/Users/japatel/Documents/workspace/paypal/PayPal-PHP-SDK/sample/payments/AuthorizePayment.php", + "sourcePath": "/home/travis/build/paypal/PayPal-PHP-SDK/sample/payments/AuthorizePayment.php", "projectPath": "payments/AuthorizePayment.php", "targetPath": "payments/AuthorizePayment", "pageTitle": "payments/AuthorizePayment", "title": "AuthorizePayment" }, - "depth": 2 + "depth": 2, + "outline": [ + { + "type": "heading", + "data": { + "level": 1, + "title": "Authorize Payment", + "slug": "authorize-payment" + }, + "depth": 1, + "children": [ + { + "type": "heading", + "data": { + "level": 3, + "title": "Create Payment", + "slug": "create-payment" + }, + "depth": 3 + } + ] + } + ] }, { "type": "file", "data": { @@ -938,13 +2269,99 @@ 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 "foldPrefix": "^", "name": "PHP" }, - "sourcePath": "/Users/japatel/Documents/workspace/paypal/PayPal-PHP-SDK/sample/payments/AuthorizePaymentUsingPayPal.php", + "sourcePath": "/home/travis/build/paypal/PayPal-PHP-SDK/sample/payments/AuthorizePaymentUsingPayPal.php", "projectPath": "payments/AuthorizePaymentUsingPayPal.php", "targetPath": "payments/AuthorizePaymentUsingPayPal", "pageTitle": "payments/AuthorizePaymentUsingPayPal", "title": "AuthorizePaymentUsingPayPal" }, - "depth": 2 + "depth": 2, + "outline": [ + { + "type": "heading", + "data": { + "level": 1, + "title": "Authorize Payment using PayPal as payment method", + "slug": "authorize-payment-using-paypal-as-payment-method" + }, + "depth": 1, + "children": [ + { + "type": "heading", + "data": { + "level": 3, + "title": "Payer", + "slug": "payer" + }, + "depth": 3 + }, { + "type": "heading", + "data": { + "level": 3, + "title": "Itemized information", + "slug": "itemized-information" + }, + "depth": 3 + }, { + "type": "heading", + "data": { + "level": 3, + "title": "Additional payment details", + "slug": "additional-payment-details" + }, + "depth": 3 + }, { + "type": "heading", + "data": { + "level": 3, + "title": "Amount", + "slug": "amount" + }, + "depth": 3 + }, { + "type": "heading", + "data": { + "level": 3, + "title": "Transaction", + "slug": "transaction" + }, + "depth": 3 + }, { + "type": "heading", + "data": { + "level": 3, + "title": "Redirect urls", + "slug": "redirect-urls" + }, + "depth": 3 + }, { + "type": "heading", + "data": { + "level": 3, + "title": "Payment", + "slug": "payment" + }, + "depth": 3 + }, { + "type": "heading", + "data": { + "level": 3, + "title": "Create Payment", + "slug": "create-payment" + }, + "depth": 3 + }, { + "type": "heading", + "data": { + "level": 3, + "title": "Get redirect url", + "slug": "get-redirect-url" + }, + "depth": 3 + } + ] + } + ] }, { "type": "file", "data": { @@ -956,13 +2373,83 @@ 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 "foldPrefix": "^", "name": "PHP" }, - "sourcePath": "/Users/japatel/Documents/workspace/paypal/PayPal-PHP-SDK/sample/payments/CreateFuturePayment.php", + "sourcePath": "/home/travis/build/paypal/PayPal-PHP-SDK/sample/payments/CreateFuturePayment.php", "projectPath": "payments/CreateFuturePayment.php", "targetPath": "payments/CreateFuturePayment", "pageTitle": "payments/CreateFuturePayment", "title": "CreateFuturePayment" }, - "depth": 2 + "depth": 2, + "outline": [ + { + "type": "heading", + "data": { + "level": 1, + "title": "Create Payment using PayPal as payment method", + "slug": "create-payment-using-paypal-as-payment-method" + }, + "depth": 1, + "children": [ + { + "type": "heading", + "data": { + "level": 3, + "title": "Payer", + "slug": "payer" + }, + "depth": 3 + }, { + "type": "heading", + "data": { + "level": 3, + "title": "Amount", + "slug": "amount" + }, + "depth": 3 + }, { + "type": "heading", + "data": { + "level": 3, + "title": "Transaction", + "slug": "transaction" + }, + "depth": 3 + }, { + "type": "heading", + "data": { + "level": 3, + "title": "Redirect urls", + "slug": "redirect-urls" + }, + "depth": 3 + }, { + "type": "heading", + "data": { + "level": 3, + "title": "Payment", + "slug": "payment" + }, + "depth": 3 + }, { + "type": "heading", + "data": { + "level": 3, + "title": "Get Refresh Token", + "slug": "get-refresh-token" + }, + "depth": 3 + }, { + "type": "heading", + "data": { + "level": 3, + "title": "Create Future Payment", + "slug": "create-future-payment" + }, + "depth": 3 + } + ] + } + ] }, { "type": "file", "data": { @@ -974,13 +2461,99 @@ 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 "foldPrefix": "^", "name": "PHP" }, - "sourcePath": "/Users/japatel/Documents/workspace/paypal/PayPal-PHP-SDK/sample/payments/CreatePayment.php", + "sourcePath": "/home/travis/build/paypal/PayPal-PHP-SDK/sample/payments/CreatePayment.php", "projectPath": "payments/CreatePayment.php", "targetPath": "payments/CreatePayment", "pageTitle": "payments/CreatePayment", "title": "CreatePayment" }, - "depth": 2 + "depth": 2, + "outline": [ + { + "type": "heading", + "data": { + "level": 1, + "title": "CreatePaymentSample", + "slug": "createpaymentsample" + }, + "depth": 1, + "children": [ + { + "type": "heading", + "data": { + "level": 3, + "title": "CreditCard", + "slug": "creditcard" + }, + "depth": 3 + }, { + "type": "heading", + "data": { + "level": 3, + "title": "FundingInstrument", + "slug": "fundinginstrument" + }, + "depth": 3 + }, { + "type": "heading", + "data": { + "level": 3, + "title": "Payer", + "slug": "payer" + }, + "depth": 3 + }, { + "type": "heading", + "data": { + "level": 3, + "title": "Itemized information", + "slug": "itemized-information" + }, + "depth": 3 + }, { + "type": "heading", + "data": { + "level": 3, + "title": "Additional payment details", + "slug": "additional-payment-details" + }, + "depth": 3 + }, { + "type": "heading", + "data": { + "level": 3, + "title": "Amount", + "slug": "amount" + }, + "depth": 3 + }, { + "type": "heading", + "data": { + "level": 3, + "title": "Transaction", + "slug": "transaction" + }, + "depth": 3 + }, { + "type": "heading", + "data": { + "level": 3, + "title": "Payment", + "slug": "payment" + }, + "depth": 3 + }, { + "type": "heading", + "data": { + "level": 3, + "title": "Create Payment", + "slug": "create-payment" + }, + "depth": 3 + } + ] + } + ] }, { "type": "file", "data": { @@ -992,13 +2565,99 @@ 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 "foldPrefix": "^", "name": "PHP" }, - "sourcePath": "/Users/japatel/Documents/workspace/paypal/PayPal-PHP-SDK/sample/payments/CreatePaymentUsingPayPal.php", + "sourcePath": "/home/travis/build/paypal/PayPal-PHP-SDK/sample/payments/CreatePaymentUsingPayPal.php", "projectPath": "payments/CreatePaymentUsingPayPal.php", "targetPath": "payments/CreatePaymentUsingPayPal", "pageTitle": "payments/CreatePaymentUsingPayPal", "title": "CreatePaymentUsingPayPal" }, - "depth": 2 + "depth": 2, + "outline": [ + { + "type": "heading", + "data": { + "level": 1, + "title": "Create Payment using PayPal as payment method", + "slug": "create-payment-using-paypal-as-payment-method" + }, + "depth": 1, + "children": [ + { + "type": "heading", + "data": { + "level": 3, + "title": "Payer", + "slug": "payer" + }, + "depth": 3 + }, { + "type": "heading", + "data": { + "level": 3, + "title": "Itemized information", + "slug": "itemized-information" + }, + "depth": 3 + }, { + "type": "heading", + "data": { + "level": 3, + "title": "Additional payment details", + "slug": "additional-payment-details" + }, + "depth": 3 + }, { + "type": "heading", + "data": { + "level": 3, + "title": "Amount", + "slug": "amount" + }, + "depth": 3 + }, { + "type": "heading", + "data": { + "level": 3, + "title": "Transaction", + "slug": "transaction" + }, + "depth": 3 + }, { + "type": "heading", + "data": { + "level": 3, + "title": "Redirect urls", + "slug": "redirect-urls" + }, + "depth": 3 + }, { + "type": "heading", + "data": { + "level": 3, + "title": "Payment", + "slug": "payment" + }, + "depth": 3 + }, { + "type": "heading", + "data": { + "level": 3, + "title": "Create Payment", + "slug": "create-payment" + }, + "depth": 3 + }, { + "type": "heading", + "data": { + "level": 3, + "title": "Get redirect url", + "slug": "get-redirect-url" + }, + "depth": 3 + } + ] + } + ] }, { "type": "file", "data": { @@ -1010,13 +2669,99 @@ 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 "foldPrefix": "^", "name": "PHP" }, - "sourcePath": "/Users/japatel/Documents/workspace/paypal/PayPal-PHP-SDK/sample/payments/CreatePaymentUsingSavedCard.php", + "sourcePath": "/home/travis/build/paypal/PayPal-PHP-SDK/sample/payments/CreatePaymentUsingSavedCard.php", "projectPath": "payments/CreatePaymentUsingSavedCard.php", "targetPath": "payments/CreatePaymentUsingSavedCard", "pageTitle": "payments/CreatePaymentUsingSavedCard", "title": "CreatePaymentUsingSavedCard" }, - "depth": 2 + "depth": 2, + "outline": [ + { + "type": "heading", + "data": { + "level": 1, + "title": "Create payment using a saved credit card", + "slug": "create-payment-using-a-saved-credit-card" + }, + "depth": 1, + "children": [ + { + "type": "heading", + "data": { + "level": 3, + "title": "Credit card token", + "slug": "credit-card-token" + }, + "depth": 3 + }, { + "type": "heading", + "data": { + "level": 3, + "title": "FundingInstrument", + "slug": "fundinginstrument" + }, + "depth": 3 + }, { + "type": "heading", + "data": { + "level": 3, + "title": "Payer", + "slug": "payer" + }, + "depth": 3 + }, { + "type": "heading", + "data": { + "level": 3, + "title": "Itemized information", + "slug": "itemized-information" + }, + "depth": 3 + }, { + "type": "heading", + "data": { + "level": 3, + "title": "Additional payment details", + "slug": "additional-payment-details" + }, + "depth": 3 + }, { + "type": "heading", + "data": { + "level": 3, + "title": "Amount", + "slug": "amount" + }, + "depth": 3 + }, { + "type": "heading", + "data": { + "level": 3, + "title": "Transaction", + "slug": "transaction" + }, + "depth": 3 + }, { + "type": "heading", + "data": { + "level": 3, + "title": "Payment", + "slug": "payment" + }, + "depth": 3 + }, { + "type": "heading", + "data": { + "level": 3, + "title": "Create Payment", + "slug": "create-payment" + }, + "depth": 3 + } + ] + } + ] }, { "type": "file", "data": { @@ -1028,13 +2773,51 @@ 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 "foldPrefix": "^", "name": "PHP" }, - "sourcePath": "/Users/japatel/Documents/workspace/paypal/PayPal-PHP-SDK/sample/payments/ExecutePayment.php", + "sourcePath": "/home/travis/build/paypal/PayPal-PHP-SDK/sample/payments/ExecutePayment.php", "projectPath": "payments/ExecutePayment.php", "targetPath": "payments/ExecutePayment", "pageTitle": "payments/ExecutePayment", "title": "ExecutePayment" }, - "depth": 2 + "depth": 2, + "outline": [ + { + "type": "heading", + "data": { + "level": 1, + "title": "Execute Payment Sample", + "slug": "execute-payment-sample" + }, + "depth": 1, + "children": [ + { + "type": "heading", + "data": { + "level": 3, + "title": "Approval Status", + "slug": "approval-status" + }, + "depth": 3 + }, { + "type": "heading", + "data": { + "level": 3, + "title": "Payment Execute", + "slug": "payment-execute" + }, + "depth": 3 + }, { + "type": "heading", + "data": { + "level": 3, + "title": "Optional Changes to Amount", + "slug": "optional-changes-to-amount" + }, + "depth": 3 + } + ] + } + ] }, { "type": "file", "data": { @@ -1046,13 +2829,35 @@ 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 "foldPrefix": "^", "name": "PHP" }, - "sourcePath": "/Users/japatel/Documents/workspace/paypal/PayPal-PHP-SDK/sample/payments/GetAuthorization.php", + "sourcePath": "/home/travis/build/paypal/PayPal-PHP-SDK/sample/payments/GetAuthorization.php", "projectPath": "payments/GetAuthorization.php", "targetPath": "payments/GetAuthorization", "pageTitle": "payments/GetAuthorization", "title": "GetAuthorization" }, - "depth": 2 + "depth": 2, + "outline": [ + { + "type": "heading", + "data": { + "level": 1, + "title": "GetAuthorization", + "slug": "getauthorization" + }, + "depth": 1, + "children": [ + { + "type": "heading", + "data": { + "level": 3, + "title": "GetAuthorization", + "slug": "getauthorization" + }, + "depth": 3 + } + ] + } + ] }, { "type": "file", "data": { @@ -1064,13 +2869,35 @@ 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 "foldPrefix": "^", "name": "PHP" }, - "sourcePath": "/Users/japatel/Documents/workspace/paypal/PayPal-PHP-SDK/sample/payments/GetCapture.php", + "sourcePath": "/home/travis/build/paypal/PayPal-PHP-SDK/sample/payments/GetCapture.php", "projectPath": "payments/GetCapture.php", "targetPath": "payments/GetCapture", "pageTitle": "payments/GetCapture", "title": "GetCapture" }, - "depth": 2 + "depth": 2, + "outline": [ + { + "type": "heading", + "data": { + "level": 1, + "title": "GetCapture", + "slug": "getcapture" + }, + "depth": 1, + "children": [ + { + "type": "heading", + "data": { + "level": 3, + "title": "Retrieve Capture details", + "slug": "retrieve-capture-details" + }, + "depth": 3 + } + ] + } + ] }, { "type": "file", "data": { @@ -1082,13 +2909,35 @@ 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 "foldPrefix": "^", "name": "PHP" }, - "sourcePath": "/Users/japatel/Documents/workspace/paypal/PayPal-PHP-SDK/sample/payments/GetPayment.php", + "sourcePath": "/home/travis/build/paypal/PayPal-PHP-SDK/sample/payments/GetPayment.php", "projectPath": "payments/GetPayment.php", "targetPath": "payments/GetPayment", "pageTitle": "payments/GetPayment", "title": "GetPayment" }, - "depth": 2 + "depth": 2, + "outline": [ + { + "type": "heading", + "data": { + "level": 1, + "title": "GetPaymentSample", + "slug": "getpaymentsample" + }, + "depth": 1, + "children": [ + { + "type": "heading", + "data": { + "level": 3, + "title": "Retrieve payment", + "slug": "retrieve-payment" + }, + "depth": 3 + } + ] + } + ] }, { "type": "file", "data": { @@ -1100,13 +2949,35 @@ 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 "foldPrefix": "^", "name": "PHP" }, - "sourcePath": "/Users/japatel/Documents/workspace/paypal/PayPal-PHP-SDK/sample/payments/ListPayments.php", + "sourcePath": "/home/travis/build/paypal/PayPal-PHP-SDK/sample/payments/ListPayments.php", "projectPath": "payments/ListPayments.php", "targetPath": "payments/ListPayments", "pageTitle": "payments/ListPayments", "title": "ListPayments" }, - "depth": 2 + "depth": 2, + "outline": [ + { + "type": "heading", + "data": { + "level": 1, + "title": "GetPaymentList", + "slug": "getpaymentlist" + }, + "depth": 1, + "children": [ + { + "type": "heading", + "data": { + "level": 3, + "title": "Retrieve payment", + "slug": "retrieve-payment" + }, + "depth": 3 + } + ] + } + ] }, { "type": "file", "data": { @@ -1118,13 +2989,59 @@ 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 "foldPrefix": "^", "name": "PHP" }, - "sourcePath": "/Users/japatel/Documents/workspace/paypal/PayPal-PHP-SDK/sample/payments/OrderAuthorize.php", + "sourcePath": "/home/travis/build/paypal/PayPal-PHP-SDK/sample/payments/OrderAuthorize.php", "projectPath": "payments/OrderAuthorize.php", "targetPath": "payments/OrderAuthorize", "pageTitle": "payments/OrderAuthorize", "title": "OrderAuthorize" }, - "depth": 2 + "depth": 2, + "outline": [ + { + "type": "heading", + "data": { + "level": 1, + "title": "Authorize Order Sample", + "slug": "authorize-order-sample" + }, + "depth": 1, + "children": [ + { + "type": "heading", + "data": { + "level": 3, + "title": "Approval Status", + "slug": "approval-status" + }, + "depth": 3 + }, { + "type": "heading", + "data": { + "level": 3, + "title": "Retrieve the order", + "slug": "retrieve-the-order" + }, + "depth": 3 + }, { + "type": "heading", + "data": { + "level": 3, + "title": "Create Authorization Object", + "slug": "create-authorization-object" + }, + "depth": 3 + }, { + "type": "heading", + "data": { + "level": 3, + "title": "Authorize Order", + "slug": "authorize-order" + }, + "depth": 3 + } + ] + } + ] }, { "type": "file", "data": { @@ -1136,13 +3053,59 @@ 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 "foldPrefix": "^", "name": "PHP" }, - "sourcePath": "/Users/japatel/Documents/workspace/paypal/PayPal-PHP-SDK/sample/payments/OrderCapture.php", + "sourcePath": "/home/travis/build/paypal/PayPal-PHP-SDK/sample/payments/OrderCapture.php", "projectPath": "payments/OrderCapture.php", "targetPath": "payments/OrderCapture", "pageTitle": "payments/OrderCapture", "title": "OrderCapture" }, - "depth": 2 + "depth": 2, + "outline": [ + { + "type": "heading", + "data": { + "level": 1, + "title": "Capture Order Sample", + "slug": "capture-order-sample" + }, + "depth": 1, + "children": [ + { + "type": "heading", + "data": { + "level": 3, + "title": "Approval Status", + "slug": "approval-status" + }, + "depth": 3 + }, { + "type": "heading", + "data": { + "level": 3, + "title": "Retrieve the order", + "slug": "retrieve-the-order" + }, + "depth": 3 + }, { + "type": "heading", + "data": { + "level": 3, + "title": "Create Capture Object", + "slug": "create-capture-object" + }, + "depth": 3 + }, { + "type": "heading", + "data": { + "level": 3, + "title": "Capture Order", + "slug": "capture-order" + }, + "depth": 3 + } + ] + } + ] }, { "type": "file", "data": { @@ -1154,13 +3117,99 @@ 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 "foldPrefix": "^", "name": "PHP" }, - "sourcePath": "/Users/japatel/Documents/workspace/paypal/PayPal-PHP-SDK/sample/payments/OrderCreateForAuthorization.php", + "sourcePath": "/home/travis/build/paypal/PayPal-PHP-SDK/sample/payments/OrderCreateForAuthorization.php", "projectPath": "payments/OrderCreateForAuthorization.php", "targetPath": "payments/OrderCreateForAuthorization", "pageTitle": "payments/OrderCreateForAuthorization", "title": "OrderCreateForAuthorization" }, - "depth": 2 + "depth": 2, + "outline": [ + { + "type": "heading", + "data": { + "level": 1, + "title": "Order Create Using PayPal", + "slug": "order-create-using-paypal" + }, + "depth": 1, + "children": [ + { + "type": "heading", + "data": { + "level": 3, + "title": "Payer", + "slug": "payer" + }, + "depth": 3 + }, { + "type": "heading", + "data": { + "level": 3, + "title": "Itemized information", + "slug": "itemized-information" + }, + "depth": 3 + }, { + "type": "heading", + "data": { + "level": 3, + "title": "Additional payment details", + "slug": "additional-payment-details" + }, + "depth": 3 + }, { + "type": "heading", + "data": { + "level": 3, + "title": "Amount", + "slug": "amount" + }, + "depth": 3 + }, { + "type": "heading", + "data": { + "level": 3, + "title": "Transaction", + "slug": "transaction" + }, + "depth": 3 + }, { + "type": "heading", + "data": { + "level": 3, + "title": "Redirect urls", + "slug": "redirect-urls" + }, + "depth": 3 + }, { + "type": "heading", + "data": { + "level": 3, + "title": "Payment", + "slug": "payment" + }, + "depth": 3 + }, { + "type": "heading", + "data": { + "level": 3, + "title": "Create Payment", + "slug": "create-payment" + }, + "depth": 3 + }, { + "type": "heading", + "data": { + "level": 3, + "title": "Get redirect url", + "slug": "get-redirect-url" + }, + "depth": 3 + } + ] + } + ] }, { "type": "file", "data": { @@ -1172,13 +3221,99 @@ 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 "foldPrefix": "^", "name": "PHP" }, - "sourcePath": "/Users/japatel/Documents/workspace/paypal/PayPal-PHP-SDK/sample/payments/OrderCreateForCapture.php", + "sourcePath": "/home/travis/build/paypal/PayPal-PHP-SDK/sample/payments/OrderCreateForCapture.php", "projectPath": "payments/OrderCreateForCapture.php", "targetPath": "payments/OrderCreateForCapture", "pageTitle": "payments/OrderCreateForCapture", "title": "OrderCreateForCapture" }, - "depth": 2 + "depth": 2, + "outline": [ + { + "type": "heading", + "data": { + "level": 1, + "title": "Order Create Using PayPal", + "slug": "order-create-using-paypal" + }, + "depth": 1, + "children": [ + { + "type": "heading", + "data": { + "level": 3, + "title": "Payer", + "slug": "payer" + }, + "depth": 3 + }, { + "type": "heading", + "data": { + "level": 3, + "title": "Itemized information", + "slug": "itemized-information" + }, + "depth": 3 + }, { + "type": "heading", + "data": { + "level": 3, + "title": "Additional payment details", + "slug": "additional-payment-details" + }, + "depth": 3 + }, { + "type": "heading", + "data": { + "level": 3, + "title": "Amount", + "slug": "amount" + }, + "depth": 3 + }, { + "type": "heading", + "data": { + "level": 3, + "title": "Transaction", + "slug": "transaction" + }, + "depth": 3 + }, { + "type": "heading", + "data": { + "level": 3, + "title": "Redirect urls", + "slug": "redirect-urls" + }, + "depth": 3 + }, { + "type": "heading", + "data": { + "level": 3, + "title": "Payment", + "slug": "payment" + }, + "depth": 3 + }, { + "type": "heading", + "data": { + "level": 3, + "title": "Create Payment", + "slug": "create-payment" + }, + "depth": 3 + }, { + "type": "heading", + "data": { + "level": 3, + "title": "Get redirect url", + "slug": "get-redirect-url" + }, + "depth": 3 + } + ] + } + ] }, { "type": "file", "data": { @@ -1190,13 +3325,99 @@ 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 "foldPrefix": "^", "name": "PHP" }, - "sourcePath": "/Users/japatel/Documents/workspace/paypal/PayPal-PHP-SDK/sample/payments/OrderCreateForVoid.php", + "sourcePath": "/home/travis/build/paypal/PayPal-PHP-SDK/sample/payments/OrderCreateForVoid.php", "projectPath": "payments/OrderCreateForVoid.php", "targetPath": "payments/OrderCreateForVoid", "pageTitle": "payments/OrderCreateForVoid", "title": "OrderCreateForVoid" }, - "depth": 2 + "depth": 2, + "outline": [ + { + "type": "heading", + "data": { + "level": 1, + "title": "Order Create Using PayPal", + "slug": "order-create-using-paypal" + }, + "depth": 1, + "children": [ + { + "type": "heading", + "data": { + "level": 3, + "title": "Payer", + "slug": "payer" + }, + "depth": 3 + }, { + "type": "heading", + "data": { + "level": 3, + "title": "Itemized information", + "slug": "itemized-information" + }, + "depth": 3 + }, { + "type": "heading", + "data": { + "level": 3, + "title": "Additional payment details", + "slug": "additional-payment-details" + }, + "depth": 3 + }, { + "type": "heading", + "data": { + "level": 3, + "title": "Amount", + "slug": "amount" + }, + "depth": 3 + }, { + "type": "heading", + "data": { + "level": 3, + "title": "Transaction", + "slug": "transaction" + }, + "depth": 3 + }, { + "type": "heading", + "data": { + "level": 3, + "title": "Redirect urls", + "slug": "redirect-urls" + }, + "depth": 3 + }, { + "type": "heading", + "data": { + "level": 3, + "title": "Payment", + "slug": "payment" + }, + "depth": 3 + }, { + "type": "heading", + "data": { + "level": 3, + "title": "Create Payment", + "slug": "create-payment" + }, + "depth": 3 + }, { + "type": "heading", + "data": { + "level": 3, + "title": "Get redirect url", + "slug": "get-redirect-url" + }, + "depth": 3 + } + ] + } + ] }, { "type": "file", "data": { @@ -1208,13 +3429,99 @@ 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 "foldPrefix": "^", "name": "PHP" }, - "sourcePath": "/Users/japatel/Documents/workspace/paypal/PayPal-PHP-SDK/sample/payments/OrderCreateUsingPayPal.php", + "sourcePath": "/home/travis/build/paypal/PayPal-PHP-SDK/sample/payments/OrderCreateUsingPayPal.php", "projectPath": "payments/OrderCreateUsingPayPal.php", "targetPath": "payments/OrderCreateUsingPayPal", "pageTitle": "payments/OrderCreateUsingPayPal", "title": "OrderCreateUsingPayPal" }, - "depth": 2 + "depth": 2, + "outline": [ + { + "type": "heading", + "data": { + "level": 1, + "title": "Order Create Using PayPal", + "slug": "order-create-using-paypal" + }, + "depth": 1, + "children": [ + { + "type": "heading", + "data": { + "level": 3, + "title": "Payer", + "slug": "payer" + }, + "depth": 3 + }, { + "type": "heading", + "data": { + "level": 3, + "title": "Itemized information", + "slug": "itemized-information" + }, + "depth": 3 + }, { + "type": "heading", + "data": { + "level": 3, + "title": "Additional payment details", + "slug": "additional-payment-details" + }, + "depth": 3 + }, { + "type": "heading", + "data": { + "level": 3, + "title": "Amount", + "slug": "amount" + }, + "depth": 3 + }, { + "type": "heading", + "data": { + "level": 3, + "title": "Transaction", + "slug": "transaction" + }, + "depth": 3 + }, { + "type": "heading", + "data": { + "level": 3, + "title": "Redirect urls", + "slug": "redirect-urls" + }, + "depth": 3 + }, { + "type": "heading", + "data": { + "level": 3, + "title": "Payment", + "slug": "payment" + }, + "depth": 3 + }, { + "type": "heading", + "data": { + "level": 3, + "title": "Create Payment", + "slug": "create-payment" + }, + "depth": 3 + }, { + "type": "heading", + "data": { + "level": 3, + "title": "Get redirect url", + "slug": "get-redirect-url" + }, + "depth": 3 + } + ] + } + ] }, { "type": "file", "data": { @@ -1226,13 +3533,51 @@ 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 "foldPrefix": "^", "name": "PHP" }, - "sourcePath": "/Users/japatel/Documents/workspace/paypal/PayPal-PHP-SDK/sample/payments/OrderDoVoid.php", + "sourcePath": "/home/travis/build/paypal/PayPal-PHP-SDK/sample/payments/OrderDoVoid.php", "projectPath": "payments/OrderDoVoid.php", "targetPath": "payments/OrderDoVoid", "pageTitle": "payments/OrderDoVoid", "title": "OrderDoVoid" }, - "depth": 2 + "depth": 2, + "outline": [ + { + "type": "heading", + "data": { + "level": 1, + "title": "Void Order Sample", + "slug": "void-order-sample" + }, + "depth": 1, + "children": [ + { + "type": "heading", + "data": { + "level": 3, + "title": "Approval Status", + "slug": "approval-status" + }, + "depth": 3 + }, { + "type": "heading", + "data": { + "level": 3, + "title": "Retrieve the order", + "slug": "retrieve-the-order" + }, + "depth": 3 + }, { + "type": "heading", + "data": { + "level": 3, + "title": "Void Order", + "slug": "void-order" + }, + "depth": 3 + } + ] + } + ] }, { "type": "file", "data": { @@ -1244,13 +3589,35 @@ 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 "foldPrefix": "^", "name": "PHP" }, - "sourcePath": "/Users/japatel/Documents/workspace/paypal/PayPal-PHP-SDK/sample/payments/OrderGet.php", + "sourcePath": "/home/travis/build/paypal/PayPal-PHP-SDK/sample/payments/OrderGet.php", "projectPath": "payments/OrderGet.php", "targetPath": "payments/OrderGet", "pageTitle": "payments/OrderGet", "title": "OrderGet" }, - "depth": 2 + "depth": 2, + "outline": [ + { + "type": "heading", + "data": { + "level": 1, + "title": "Get Order Sample", + "slug": "get-order-sample" + }, + "depth": 1, + "children": [ + { + "type": "heading", + "data": { + "level": 3, + "title": "Approval Status", + "slug": "approval-status" + }, + "depth": 3 + } + ] + } + ] }, { "type": "file", "data": { @@ -1262,13 +3629,43 @@ 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 "foldPrefix": "^", "name": "PHP" }, - "sourcePath": "/Users/japatel/Documents/workspace/paypal/PayPal-PHP-SDK/sample/payments/Reauthorization.php", + "sourcePath": "/home/travis/build/paypal/PayPal-PHP-SDK/sample/payments/Reauthorization.php", "projectPath": "payments/Reauthorization.php", "targetPath": "payments/Reauthorization", "pageTitle": "payments/Reauthorization", "title": "Reauthorization" }, - "depth": 2 + "depth": 2, + "outline": [ + { + "type": "heading", + "data": { + "level": 2, + "title": "Reauthorization Sample", + "slug": "reauthorization-sample" + }, + "depth": 2, + "children": [ + { + "type": "heading", + "data": { + "level": 3, + "title": "Reauthorization", + "slug": "reauthorization" + }, + "depth": 3 + }, { + "type": "heading", + "data": { + "level": 3, + "title": "Reauthorize with amount being reauthorized", + "slug": "reauthorize-with-amount-being-reauthorized" + }, + "depth": 3 + } + ] + } + ] }, { "type": "file", "data": { @@ -1280,13 +3677,35 @@ 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 "foldPrefix": "^", "name": "PHP" }, - "sourcePath": "/Users/japatel/Documents/workspace/paypal/PayPal-PHP-SDK/sample/payments/RefundCapture.php", + "sourcePath": "/home/travis/build/paypal/PayPal-PHP-SDK/sample/payments/RefundCapture.php", "projectPath": "payments/RefundCapture.php", "targetPath": "payments/RefundCapture", "pageTitle": "payments/RefundCapture", "title": "RefundCapture" }, - "depth": 2 + "depth": 2, + "outline": [ + { + "type": "heading", + "data": { + "level": 1, + "title": "Refund Capture Sample", + "slug": "refund-capture-sample" + }, + "depth": 1, + "children": [ + { + "type": "heading", + "data": { + "level": 3, + "title": "Refund", + "slug": "refund" + }, + "depth": 3 + } + ] + } + ] }, { "type": "file", "data": { @@ -1298,13 +3717,70 @@ 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 "foldPrefix": "^", "name": "PHP" }, - "sourcePath": "/Users/japatel/Documents/workspace/paypal/PayPal-PHP-SDK/sample/payments/UpdatePayment.php", + "sourcePath": "/home/travis/build/paypal/PayPal-PHP-SDK/sample/payments/UpdatePayment.php", "projectPath": "payments/UpdatePayment.php", "targetPath": "payments/UpdatePayment", "pageTitle": "payments/UpdatePayment", "title": "UpdatePayment" }, - "depth": 2 + "depth": 2, + "outline": [ + { + "type": "heading", + "data": { + "level": 1, + "title": "Update Payment Sample", + "slug": "update-payment-sample" + }, + "depth": 1, + "children": [ + { + "type": "heading", + "data": { + "level": 2, + "title": "NOTE", + "slug": "note" + }, + "depth": 2, + "children": [ + { + "type": "heading", + "data": { + "level": 4, + "title": "Create a Patch Request", + "slug": "create-a-patch-request" + }, + "depth": 4 + }, { + "type": "heading", + "data": { + "level": 3, + "title": "Update payment", + "slug": "update-payment" + }, + "depth": 3 + }, { + "type": "heading", + "data": { + "level": 3, + "title": "Getting Updated Payment Object", + "slug": "getting-updated-payment-object" + }, + "depth": 3 + }, { + "type": "heading", + "data": { + "level": 3, + "title": "Get redirect url", + "slug": "get-redirect-url" + }, + "depth": 3 + } + ] + } + ] + } + ] }, { "type": "file", "data": { @@ -1316,13 +3792,35 @@ 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 "foldPrefix": "^", "name": "PHP" }, - "sourcePath": "/Users/japatel/Documents/workspace/paypal/PayPal-PHP-SDK/sample/payments/VoidAuthorization.php", + "sourcePath": "/home/travis/build/paypal/PayPal-PHP-SDK/sample/payments/VoidAuthorization.php", "projectPath": "payments/VoidAuthorization.php", "targetPath": "payments/VoidAuthorization", "pageTitle": "payments/VoidAuthorization", "title": "VoidAuthorization" }, - "depth": 2 + "depth": 2, + "outline": [ + { + "type": "heading", + "data": { + "level": 1, + "title": "VoidAuthorization", + "slug": "voidauthorization" + }, + "depth": 1, + "children": [ + { + "type": "heading", + "data": { + "level": 3, + "title": "VoidAuthorization", + "slug": "voidauthorization" + }, + "depth": 3 + } + ] + } + ] } ] }, { @@ -1344,13 +3842,46 @@ 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 "foldPrefix": "^", "name": "PHP" }, - "sourcePath": "/Users/japatel/Documents/workspace/paypal/PayPal-PHP-SDK/sample/payouts/CancelPayoutItem.php", + "sourcePath": "/home/travis/build/paypal/PayPal-PHP-SDK/sample/payouts/CancelPayoutItem.php", "projectPath": "payouts/CancelPayoutItem.php", "targetPath": "payouts/CancelPayoutItem", "pageTitle": "payouts/CancelPayoutItem", "title": "CancelPayoutItem" }, - "depth": 2 + "depth": 2, + "outline": [ + { + "type": "heading", + "data": { + "level": 1, + "title": "Cancel Payout Item Status Sample", + "slug": "cancel-payout-item-status-sample" + }, + "depth": 1, + "children": [ + { + "type": "heading", + "data": { + "level": 2, + "title": "Payout Item ID", + "slug": "payout-item-id" + }, + "depth": 2, + "children": [ + { + "type": "heading", + "data": { + "level": 3, + "title": "Cancel Payout Item", + "slug": "cancel-payout-item" + }, + "depth": 3 + } + ] + } + ] + } + ] }, { "type": "file", "data": { @@ -1362,13 +3893,78 @@ 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 "foldPrefix": "^", "name": "PHP" }, - "sourcePath": "/Users/japatel/Documents/workspace/paypal/PayPal-PHP-SDK/sample/payouts/CreateBatchPayout.php", + "sourcePath": "/home/travis/build/paypal/PayPal-PHP-SDK/sample/payouts/CreateBatchPayout.php", "projectPath": "payouts/CreateBatchPayout.php", "targetPath": "payouts/CreateBatchPayout", "pageTitle": "payouts/CreateBatchPayout", "title": "CreateBatchPayout" }, - "depth": 2 + "depth": 2, + "outline": [ + { + "type": "heading", + "data": { + "level": 1, + "title": "Create Bulk Payout Sample", + "slug": "create-bulk-payout-sample" + }, + "depth": 1, + "children": [ + { + "type": "heading", + "data": { + "level": 3, + "title": "NOTE:", + "slug": "note" + }, + "depth": 3, + "children": [ + { + "type": "heading", + "data": { + "level": 4, + "title": "Batch Header Instance", + "slug": "batch-header-instance" + }, + "depth": 4 + }, { + "type": "heading", + "data": { + "level": 4, + "title": "Sender Item", + "slug": "sender-item" + }, + "depth": 4 + }, { + "type": "heading", + "data": { + "level": 4, + "title": "Sender Item 2", + "slug": "sender-item-2" + }, + "depth": 4 + }, { + "type": "heading", + "data": { + "level": 4, + "title": "Sender Item 3", + "slug": "sender-item-3" + }, + "depth": 4 + } + ] + }, { + "type": "heading", + "data": { + "level": 3, + "title": "Create Payout", + "slug": "create-payout" + }, + "depth": 3 + } + ] + } + ] }, { "type": "file", "data": { @@ -1380,13 +3976,62 @@ 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 "foldPrefix": "^", "name": "PHP" }, - "sourcePath": "/Users/japatel/Documents/workspace/paypal/PayPal-PHP-SDK/sample/payouts/CreateSinglePayout.php", + "sourcePath": "/home/travis/build/paypal/PayPal-PHP-SDK/sample/payouts/CreateSinglePayout.php", "projectPath": "payouts/CreateSinglePayout.php", "targetPath": "payouts/CreateSinglePayout", "pageTitle": "payouts/CreateSinglePayout", "title": "CreateSinglePayout" }, - "depth": 2 + "depth": 2, + "outline": [ + { + "type": "heading", + "data": { + "level": 1, + "title": "Create Single Synchronous Payout Sample", + "slug": "create-single-synchronous-payout-sample" + }, + "depth": 1, + "children": [ + { + "type": "heading", + "data": { + "level": 3, + "title": "NOTE:", + "slug": "note" + }, + "depth": 3, + "children": [ + { + "type": "heading", + "data": { + "level": 4, + "title": "Batch Header Instance", + "slug": "batch-header-instance" + }, + "depth": 4 + }, { + "type": "heading", + "data": { + "level": 4, + "title": "Sender Item", + "slug": "sender-item" + }, + "depth": 4 + } + ] + }, { + "type": "heading", + "data": { + "level": 3, + "title": "Create Payout", + "slug": "create-payout" + }, + "depth": 3 + } + ] + } + ] }, { "type": "file", "data": { @@ -1398,13 +4043,46 @@ 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 "foldPrefix": "^", "name": "PHP" }, - "sourcePath": "/Users/japatel/Documents/workspace/paypal/PayPal-PHP-SDK/sample/payouts/GetPayoutBatchStatus.php", + "sourcePath": "/home/travis/build/paypal/PayPal-PHP-SDK/sample/payouts/GetPayoutBatchStatus.php", "projectPath": "payouts/GetPayoutBatchStatus.php", "targetPath": "payouts/GetPayoutBatchStatus", "pageTitle": "payouts/GetPayoutBatchStatus", "title": "GetPayoutBatchStatus" }, - "depth": 2 + "depth": 2, + "outline": [ + { + "type": "heading", + "data": { + "level": 1, + "title": "Get Payout Batch Status Sample", + "slug": "get-payout-batch-status-sample" + }, + "depth": 1, + "children": [ + { + "type": "heading", + "data": { + "level": 2, + "title": "Payout Batch ID", + "slug": "payout-batch-id" + }, + "depth": 2, + "children": [ + { + "type": "heading", + "data": { + "level": 3, + "title": "Get Payout Batch Status", + "slug": "get-payout-batch-status" + }, + "depth": 3 + } + ] + } + ] + } + ] }, { "type": "file", "data": { @@ -1416,13 +4094,46 @@ 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 "foldPrefix": "^", "name": "PHP" }, - "sourcePath": "/Users/japatel/Documents/workspace/paypal/PayPal-PHP-SDK/sample/payouts/GetPayoutItemStatus.php", + "sourcePath": "/home/travis/build/paypal/PayPal-PHP-SDK/sample/payouts/GetPayoutItemStatus.php", "projectPath": "payouts/GetPayoutItemStatus.php", "targetPath": "payouts/GetPayoutItemStatus", "pageTitle": "payouts/GetPayoutItemStatus", "title": "GetPayoutItemStatus" }, - "depth": 2 + "depth": 2, + "outline": [ + { + "type": "heading", + "data": { + "level": 1, + "title": "Get Payout Item Status Sample", + "slug": "get-payout-item-status-sample" + }, + "depth": 1, + "children": [ + { + "type": "heading", + "data": { + "level": 2, + "title": "Payout Item ID", + "slug": "payout-item-id" + }, + "depth": 2, + "children": [ + { + "type": "heading", + "data": { + "level": 3, + "title": "Get Payout Item Status", + "slug": "get-payout-item-status" + }, + "depth": 3 + } + ] + } + ] + } + ] } ] }, { @@ -1444,13 +4155,43 @@ 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 "foldPrefix": "^", "name": "PHP" }, - "sourcePath": "/Users/japatel/Documents/workspace/paypal/PayPal-PHP-SDK/sample/sale/GetSale.php", + "sourcePath": "/home/travis/build/paypal/PayPal-PHP-SDK/sample/sale/GetSale.php", "projectPath": "sale/GetSale.php", "targetPath": "sale/GetSale", "pageTitle": "sale/GetSale", "title": "GetSale" }, - "depth": 2 + "depth": 2, + "outline": [ + { + "type": "heading", + "data": { + "level": 1, + "title": "Get Sale sample", + "slug": "get-sale-sample" + }, + "depth": 1, + "children": [ + { + "type": "heading", + "data": { + "level": 3, + "title": "Get Sale From Created Payment", + "slug": "get-sale-from-created-payment" + }, + "depth": 3 + }, { + "type": "heading", + "data": { + "level": 3, + "title": "Retrieve the sale object", + "slug": "retrieve-the-sale-object" + }, + "depth": 3 + } + ] + } + ] }, { "type": "file", "data": { @@ -1462,13 +4203,51 @@ 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 "foldPrefix": "^", "name": "PHP" }, - "sourcePath": "/Users/japatel/Documents/workspace/paypal/PayPal-PHP-SDK/sample/sale/RefundSale.php", + "sourcePath": "/home/travis/build/paypal/PayPal-PHP-SDK/sample/sale/RefundSale.php", "projectPath": "sale/RefundSale.php", "targetPath": "sale/RefundSale", "pageTitle": "sale/RefundSale", "title": "RefundSale" }, - "depth": 2 + "depth": 2, + "outline": [ + { + "type": "heading", + "data": { + "level": 1, + "title": "Sale Refund Sample", + "slug": "sale-refund-sample" + }, + "depth": 1, + "children": [ + { + "type": "heading", + "data": { + "level": 3, + "title": "Refund amount", + "slug": "refund-amount" + }, + "depth": 3 + }, { + "type": "heading", + "data": { + "level": 3, + "title": "Refund object", + "slug": "refund-object" + }, + "depth": 3 + }, { + "type": "heading", + "data": { + "level": 3, + "title": "Sale", + "slug": "sale" + }, + "depth": 3 + } + ] + } + ] } ] }, { @@ -1490,7 +4269,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 "foldPrefix": "^", "name": "PHP" }, - "sourcePath": "/Users/japatel/Documents/workspace/paypal/PayPal-PHP-SDK/sample/tls/TlsCheck.php", + "sourcePath": "/home/travis/build/paypal/PayPal-PHP-SDK/sample/tls/TlsCheck.php", "projectPath": "tls/TlsCheck.php", "targetPath": "tls/TlsCheck", "pageTitle": "tls/TlsCheck", @@ -1551,13 +4330,43 @@ 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 "foldPrefix": "^", "name": "PHP" }, - "sourcePath": "/Users/japatel/Documents/workspace/paypal/PayPal-PHP-SDK/sample/vault/CreateBankAccount.php", + "sourcePath": "/home/travis/build/paypal/PayPal-PHP-SDK/sample/vault/CreateBankAccount.php", "projectPath": "vault/CreateBankAccount.php", "targetPath": "vault/CreateBankAccount", "pageTitle": "vault/CreateBankAccount", "title": "CreateBankAccount" }, - "depth": 2 + "depth": 2, + "outline": [ + { + "type": "heading", + "data": { + "level": 1, + "title": "Create Bank Account Sample", + "slug": "create-bank-account-sample" + }, + "depth": 1, + "children": [ + { + "type": "heading", + "data": { + "level": 3, + "title": "Bank Account", + "slug": "bank-account" + }, + "depth": 3 + }, { + "type": "heading", + "data": { + "level": 3, + "title": "Save bank account", + "slug": "save-bank-account" + }, + "depth": 3 + } + ] + } + ] }, { "type": "file", "data": { @@ -1569,13 +4378,51 @@ 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 "foldPrefix": "^", "name": "PHP" }, - "sourcePath": "/Users/japatel/Documents/workspace/paypal/PayPal-PHP-SDK/sample/vault/CreateCreditCard.php", + "sourcePath": "/home/travis/build/paypal/PayPal-PHP-SDK/sample/vault/CreateCreditCard.php", "projectPath": "vault/CreateCreditCard.php", "targetPath": "vault/CreateCreditCard", "pageTitle": "vault/CreateCreditCard", "title": "CreateCreditCard" }, - "depth": 2 + "depth": 2, + "outline": [ + { + "type": "heading", + "data": { + "level": 1, + "title": "Create Credit Card Sample", + "slug": "create-credit-card-sample" + }, + "depth": 1, + "children": [ + { + "type": "heading", + "data": { + "level": 3, + "title": "CreditCard", + "slug": "creditcard" + }, + "depth": 3 + }, { + "type": "heading", + "data": { + "level": 3, + "title": "Additional Information", + "slug": "additional-information" + }, + "depth": 3 + }, { + "type": "heading", + "data": { + "level": 3, + "title": "Save card", + "slug": "save-card" + }, + "depth": 3 + } + ] + } + ] }, { "type": "file", "data": { @@ -1587,13 +4434,35 @@ 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 "foldPrefix": "^", "name": "PHP" }, - "sourcePath": "/Users/japatel/Documents/workspace/paypal/PayPal-PHP-SDK/sample/vault/DeleteBankAccount.php", + "sourcePath": "/home/travis/build/paypal/PayPal-PHP-SDK/sample/vault/DeleteBankAccount.php", "projectPath": "vault/DeleteBankAccount.php", "targetPath": "vault/DeleteBankAccount", "pageTitle": "vault/DeleteBankAccount", "title": "DeleteBankAccount" }, - "depth": 2 + "depth": 2, + "outline": [ + { + "type": "heading", + "data": { + "level": 1, + "title": "Delete Bank Account Sample", + "slug": "delete-bank-account-sample" + }, + "depth": 1, + "children": [ + { + "type": "heading", + "data": { + "level": 3, + "title": "Delete Card", + "slug": "delete-card" + }, + "depth": 3 + } + ] + } + ] }, { "type": "file", "data": { @@ -1605,13 +4474,35 @@ 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 "foldPrefix": "^", "name": "PHP" }, - "sourcePath": "/Users/japatel/Documents/workspace/paypal/PayPal-PHP-SDK/sample/vault/DeleteCreditCard.php", + "sourcePath": "/home/travis/build/paypal/PayPal-PHP-SDK/sample/vault/DeleteCreditCard.php", "projectPath": "vault/DeleteCreditCard.php", "targetPath": "vault/DeleteCreditCard", "pageTitle": "vault/DeleteCreditCard", "title": "DeleteCreditCard" }, - "depth": 2 + "depth": 2, + "outline": [ + { + "type": "heading", + "data": { + "level": 1, + "title": "Delete CreditCard Sample", + "slug": "delete-creditcard-sample" + }, + "depth": 1, + "children": [ + { + "type": "heading", + "data": { + "level": 3, + "title": "Delete Card", + "slug": "delete-card" + }, + "depth": 3 + } + ] + } + ] }, { "type": "file", "data": { @@ -1623,13 +4514,24 @@ 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 "foldPrefix": "^", "name": "PHP" }, - "sourcePath": "/Users/japatel/Documents/workspace/paypal/PayPal-PHP-SDK/sample/vault/GetBankAccount.php", + "sourcePath": "/home/travis/build/paypal/PayPal-PHP-SDK/sample/vault/GetBankAccount.php", "projectPath": "vault/GetBankAccount.php", "targetPath": "vault/GetBankAccount", "pageTitle": "vault/GetBankAccount", "title": "GetBankAccount" }, - "depth": 2 + "depth": 2, + "outline": [ + { + "type": "heading", + "data": { + "level": 1, + "title": "Get Bank Account Sample", + "slug": "get-bank-account-sample" + }, + "depth": 1 + } + ] }, { "type": "file", "data": { @@ -1641,13 +4543,24 @@ 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 "foldPrefix": "^", "name": "PHP" }, - "sourcePath": "/Users/japatel/Documents/workspace/paypal/PayPal-PHP-SDK/sample/vault/GetCreditCard.php", + "sourcePath": "/home/travis/build/paypal/PayPal-PHP-SDK/sample/vault/GetCreditCard.php", "projectPath": "vault/GetCreditCard.php", "targetPath": "vault/GetCreditCard", "pageTitle": "vault/GetCreditCard", "title": "GetCreditCard" }, - "depth": 2 + "depth": 2, + "outline": [ + { + "type": "heading", + "data": { + "level": 1, + "title": "Get Credit Card Sample", + "slug": "get-credit-card-sample" + }, + "depth": 1 + } + ] }, { "type": "file", "data": { @@ -1659,13 +4572,35 @@ 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 "foldPrefix": "^", "name": "PHP" }, - "sourcePath": "/Users/japatel/Documents/workspace/paypal/PayPal-PHP-SDK/sample/vault/ListCreditCards.php", + "sourcePath": "/home/travis/build/paypal/PayPal-PHP-SDK/sample/vault/ListCreditCards.php", "projectPath": "vault/ListCreditCards.php", "targetPath": "vault/ListCreditCards", "pageTitle": "vault/ListCreditCards", "title": "ListCreditCards" }, - "depth": 2 + "depth": 2, + "outline": [ + { + "type": "heading", + "data": { + "level": 1, + "title": "List Credit Card Sample", + "slug": "list-credit-card-sample" + }, + "depth": 1, + "children": [ + { + "type": "heading", + "data": { + "level": 3, + "title": "Parameters to Filter", + "slug": "parameters-to-filter" + }, + "depth": 3 + } + ] + } + ] }, { "type": "file", "data": { @@ -1677,13 +4612,43 @@ 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 "foldPrefix": "^", "name": "PHP" }, - "sourcePath": "/Users/japatel/Documents/workspace/paypal/PayPal-PHP-SDK/sample/vault/UpdateCreditCard.php", + "sourcePath": "/home/travis/build/paypal/PayPal-PHP-SDK/sample/vault/UpdateCreditCard.php", "projectPath": "vault/UpdateCreditCard.php", "targetPath": "vault/UpdateCreditCard", "pageTitle": "vault/UpdateCreditCard", "title": "UpdateCreditCard" }, - "depth": 2 + "depth": 2, + "outline": [ + { + "type": "heading", + "data": { + "level": 1, + "title": "Update Credit Card Sample", + "slug": "update-credit-card-sample" + }, + "depth": 1, + "children": [ + { + "type": "heading", + "data": { + "level": 3, + "title": "Patch Object", + "slug": "patch-object" + }, + "depth": 3 + }, { + "type": "heading", + "data": { + "level": 3, + "title": "Another Patch Object", + "slug": "another-patch-object" + }, + "depth": 3 + } + ] + } + ] } ] } diff --git a/sample/doc/billing/CreateBillingAgreementWithCreditCard.html b/sample/doc/billing/CreateBillingAgreementWithCreditCard.html index 69cf112..9a0f778 100644 --- a/sample/doc/billing/CreateBillingAgreementWithCreditCard.html +++ b/sample/doc/billing/CreateBillingAgreementWithCreditCard.html @@ -2,7 +2,7 @@

This sample code demonstrate how you can create a billing agreement, as documented here at: https://developer.paypal.com/webapps/developer/docs/api/#create-an-agreement API used: /v1/payments/billing-agreements

Retrieving the Plan from the Create Update Sample. This would be used to -define Plan information to create an agreement. Make sure the plan you are using is in active state.

/** @var Plan $createdPlan */ +define Plan information to create an agreement. Make sure the plan you are using is in active state.

/** @var Plan $createdPlan */ $createdPlan = require 'UpdatePlan.php'; use PayPal\Api\Agreement; @@ -31,7 +31,7 @@ define Plan information to create an agreement. Make sure the plan you are using "payer": { "payment_method": "credit_card", "payer_info": { - "email": "jaypatel512-facilitator@hotmail.com" + "email": "jaypatel512-facilitator@hotmail.com" }, "funding_instruments": [ { diff --git a/sample/doc/billing/CreateBillingAgreementWithPayPal.html b/sample/doc/billing/CreateBillingAgreementWithPayPal.html index 5d63ee0..1e5a85e 100644 --- a/sample/doc/billing/CreateBillingAgreementWithPayPal.html +++ b/sample/doc/billing/CreateBillingAgreementWithPayPal.html @@ -2,7 +2,7 @@

This sample code demonstrate how you can create a billing agreement, as documented here at: https://developer.paypal.com/webapps/developer/docs/api/#create-an-agreement API used: /v1/payments/billing-agreements

Retrieving the Plan from the Create Update Sample. This would be used to -define Plan information to create an agreement. Make sure the plan you are using is in active state.

/** @var Plan $createdPlan */ +define Plan information to create an agreement. Make sure the plan you are using is in active state.

/** @var Plan $createdPlan */ $createdPlan = require 'UpdatePlan.php'; use PayPal\Api\Agreement; diff --git a/sample/doc/billing/DeletePlan.html b/sample/doc/billing/DeletePlan.html index 57d2c57..d58ea7f 100644 --- a/sample/doc/billing/DeletePlan.html +++ b/sample/doc/billing/DeletePlan.html @@ -1,7 +1,7 @@ billing/DeletePlan
billing/DeletePlan.php
<?php

Delete Plan Sample

This sample code demonstrate how you can delete a billing plan, as documented here at: https://developer.paypal.com/webapps/developer/docs/api/#retrieve-a-plan -API used: /v1/payments/billing-plans

Retrieving the Plan object from Create Plan Sample

/** @var Plan $createdPlan */ +API used: /v1/payments/billing-plans

Retrieving the Plan object from Create Plan Sample

/** @var Plan $createdPlan */ $createdPlan = require 'CreatePlan.php'; use PayPal\Api\Plan; diff --git a/sample/doc/billing/GetBillingAgreement.html b/sample/doc/billing/GetBillingAgreement.html index 7b9f206..696d12e 100644 --- a/sample/doc/billing/GetBillingAgreement.html +++ b/sample/doc/billing/GetBillingAgreement.html @@ -1,7 +1,7 @@ billing/GetBillingAgreement
billing/GetBillingAgreement.php
<?php

Get Billing Agreement Sample

This sample code demonstrate how you can get a billing agreement, as documented here at: https://developer.paypal.com/webapps/developer/docs/api/#retrieve-an-agreement -API used: /v1/payments/billing-agreements/

Retrieving the Agreement object from Create Agreement From Credit Card Sample

/** @var Agreement $createdAgreement */ +API used: /v1/payments/billing-agreements/

Retrieving the Agreement object from Create Agreement From Credit Card Sample

/** @var Agreement $createdAgreement */ $createdAgreement = require 'CreateBillingAgreementWithCreditCard.php'; use PayPal\Api\Agreement; diff --git a/sample/doc/billing/GetPlan.html b/sample/doc/billing/GetPlan.html index 158fb0a..83eb7d6 100644 --- a/sample/doc/billing/GetPlan.html +++ b/sample/doc/billing/GetPlan.html @@ -1,7 +1,7 @@ billing/GetPlan
billing/GetPlan.php
<?php

Get Plan Sample

This sample code demonstrate how you can get a billing plan, as documented here at: https://developer.paypal.com/webapps/developer/docs/api/#retrieve-a-plan -API used: /v1/payments/billing-plans

Retrieving the Plan object from Create Plan Sample

/** @var Plan $createdPlan */ +API used: /v1/payments/billing-plans

Retrieving the Plan object from Create Plan Sample

/** @var Plan $createdPlan */ $createdPlan = require 'CreatePlan.php'; use PayPal\Api\Plan; diff --git a/sample/doc/billing/ListPlans.html b/sample/doc/billing/ListPlans.html index dc5e88c..e4f58ff 100644 --- a/sample/doc/billing/ListPlans.html +++ b/sample/doc/billing/ListPlans.html @@ -1,7 +1,7 @@ billing/ListPlans
billing/ListPlans.php
<?php

Get List of Plan Sample

This sample code demonstrate how you can get a list of billing plan, as documented here at: https://developer.paypal.com/webapps/developer/docs/api/#list-plans -API used: /v1/payments/billing-plans

Retrieving the Plan object from Create Plan Sample to demonstrate the List

/** @var Plan $createdPlan */ +API used: /v1/payments/billing-plans

Retrieving the Plan object from Create Plan Sample to demonstrate the List

/** @var Plan $createdPlan */ $createdPlan = require 'CreatePlan.php'; use PayPal\Api\Plan; diff --git a/sample/doc/billing/ReactivateBillingAgreement.html b/sample/doc/billing/ReactivateBillingAgreement.html index 331cd6e..b3c8ad8 100644 --- a/sample/doc/billing/ReactivateBillingAgreement.html +++ b/sample/doc/billing/ReactivateBillingAgreement.html @@ -1,7 +1,7 @@ billing/ReactivateBillingAgreement
billing/ReactivateBillingAgreement.php
<?php

Reactivate an agreement

This sample code demonstrate how you can reactivate a billing agreement, as documented here at: https://developer.paypal.com/webapps/developer/docs/api/#suspend-an-agreement -API used: /v1/payments/billing-agreements//suspend

Retrieving the Agreement object from Suspend Agreement Sample to demonstrate the List

/** @var Agreement $suspendedAgreement */ +API used: /v1/payments/billing-agreements//suspend

Retrieving the Agreement object from Suspend Agreement Sample to demonstrate the List

/** @var Agreement $suspendedAgreement */ $suspendedAgreement = require 'SuspendBillingAgreement.php'; use PayPal\Api\Agreement; diff --git a/sample/doc/billing/SearchBillingTransactions.html b/sample/doc/billing/SearchBillingTransactions.html index 928fce6..3c37e1a 100644 --- a/sample/doc/billing/SearchBillingTransactions.html +++ b/sample/doc/billing/SearchBillingTransactions.html @@ -1,7 +1,7 @@ billing/SearchBillingTransactions
billing/SearchBillingTransactions.php
<?php

Search Billing Transactions Sample

This sample code demonstrate how you can search all billing transactions, as documented here at: https://developer.paypal.com/webapps/developer/docs/api/#search-for-transactions -API used: GET /v1/payments/billing-agreements//transactions? start-date=yyyy-mm-dd&end-date=yyyy-mm-dd

Retrieving the Agreement object from Get Billing Agreement. This may not be necessary if you are trying to search for transactions of already created Agreement.

/** @var Agreement $agreement */ +API used: GET /v1/payments/billing-agreements//transactions? start-date=yyyy-mm-dd&end-date=yyyy-mm-dd

Retrieving the Agreement object from Get Billing Agreement. This may not be necessary if you are trying to search for transactions of already created Agreement.

/** @var Agreement $agreement */ $agreement = require 'GetBillingAgreement.php';

Replace this with your AgreementId to search transactions based on your agreement.

$agreementId = $agreement->getId(); use PayPal\Api\Agreement;

Adding Params to search transaction within a given time frame.

$params = array('start_date' => date('Y-m-d', strtotime('-15 years')), 'end_date' => date('Y-m-d', strtotime('+5 days'))); diff --git a/sample/doc/billing/SuspendBillingAgreement.html b/sample/doc/billing/SuspendBillingAgreement.html index e9cf5ad..93a610c 100644 --- a/sample/doc/billing/SuspendBillingAgreement.html +++ b/sample/doc/billing/SuspendBillingAgreement.html @@ -1,7 +1,7 @@ billing/SuspendBillingAgreement
billing/SuspendBillingAgreement.php
<?php

Suspend an agreement

This sample code demonstrate how you can suspend a billing agreement, as documented here at: https://developer.paypal.com/webapps/developer/docs/api/#suspend-an-agreement -API used: /v1/payments/billing-agreements//suspend

Retrieving the Agreement object from Create Agreement Sample to demonstrate the List

/** @var Agreement $createdAgreement */ +API used: /v1/payments/billing-agreements//suspend

Retrieving the Agreement object from Create Agreement Sample to demonstrate the List

/** @var Agreement $createdAgreement */ $createdAgreement = require 'CreateBillingAgreementWithCreditCard.php'; use PayPal\Api\Agreement; diff --git a/sample/doc/billing/UpdateBillingAgreement.html b/sample/doc/billing/UpdateBillingAgreement.html index b994665..b1ed68e 100644 --- a/sample/doc/billing/UpdateBillingAgreement.html +++ b/sample/doc/billing/UpdateBillingAgreement.html @@ -1,7 +1,7 @@ billing/UpdateBillingAgreement
billing/UpdateBillingAgreement.php
<?php

Update an agreement

This sample code demonstrate how you can update a billing agreement, as documented here at: https://developer.paypal.com/webapps/developer/docs/api/#update-an-agreement -API used: /v1/payments/billing-agreements/

Retrieving the Agreement object from Create Agreement Sample to demonstrate the List

/** @var Agreement $createdAgreement */ +API used: /v1/payments/billing-agreements/

Retrieving the Agreement object from Create Agreement Sample to demonstrate the List

/** @var Agreement $createdAgreement */ $createdAgreement = require 'CreateBillingAgreementWithCreditCard.php'; use PayPal\Api\Agreement; diff --git a/sample/doc/billing/UpdatePlan.html b/sample/doc/billing/UpdatePlan.html index f009dde..b7274ee 100644 --- a/sample/doc/billing/UpdatePlan.html +++ b/sample/doc/billing/UpdatePlan.html @@ -2,7 +2,7 @@

This sample code demonstrate how you can update a billing plan, as documented here at: https://developer.paypal.com/webapps/developer/docs/api/#update-a-plan API used: /v1/payments/billing-plans/

Making Plan Active

-

This example demonstrate how you could activate the Plan.

Retrieving the Plan object from Create Plan Sample to demonstrate the List

/** @var Plan $createdPlan */ +

This example demonstrate how you could activate the Plan.

Retrieving the Plan object from Create Plan Sample to demonstrate the List

/** @var Plan $createdPlan */ $createdPlan = require 'CreatePlan.php'; use PayPal\Api\Patch; diff --git a/sample/doc/billing/UpdatePlanPaymentDefinitions.html b/sample/doc/billing/UpdatePlanPaymentDefinitions.html index 54c5790..c11e75e 100644 --- a/sample/doc/billing/UpdatePlanPaymentDefinitions.html +++ b/sample/doc/billing/UpdatePlanPaymentDefinitions.html @@ -2,7 +2,7 @@

This sample code demonstrate how you can update a billing plan, as documented here at: https://developer.paypal.com/webapps/developer/docs/api/#update-a-plan API used: /v1/payments/billing-plans/

Changing Plan Amount

-

This example demonstrate how you could change the plan amount

Retrieving the Plan object from Create Plan Sample to demonstrate the List

/** @var Plan $createdPlan */ +

This example demonstrate how you could change the plan amount

Retrieving the Plan object from Create Plan Sample to demonstrate the List

/** @var Plan $createdPlan */ $createdPlan = require 'CreatePlan.php'; use PayPal\Api\Patch; diff --git a/sample/doc/invoice/CancelInvoice.html b/sample/doc/invoice/CancelInvoice.html index aa2027e..d0f44c5 100644 --- a/sample/doc/invoice/CancelInvoice.html +++ b/sample/doc/invoice/CancelInvoice.html @@ -1,6 +1,6 @@ invoice/CancelInvoice
invoice/CancelInvoice.php
<?php

Cancel Invoice Sample

This sample code demonstrate how you can cancel -an invoice.

/** @var Invoice $invoice */ +an invoice.

/** @var Invoice $invoice */ $invoice = require 'SendInvoice.php'; use PayPal\Api\CancelNotification; diff --git a/sample/doc/invoice/CreateThirdPartyInvoice.html b/sample/doc/invoice/CreateThirdPartyInvoice.html new file mode 100644 index 0000000..e61f768 --- /dev/null +++ b/sample/doc/invoice/CreateThirdPartyInvoice.html @@ -0,0 +1,75 @@ +invoice/CreateThirdPartyInvoice
invoice/CreateThirdPartyInvoice.php
<?php

Create Third Party Invoice Sample

+

This sample code demonstrate how you can create third party invoice on someone else's behalf. +This requires using Obtain User's Consent to fetch the refresh token of the third party merchant. Please look at http://paypal.github.io/PayPal-PHP-SDK/sample/doc/lipp/ObtainUserConsent.html for more info. +You need the email address of the third party. This can be retrieved using the refresh token obtained from previous call. Please refere to http://paypal.github.io/PayPal-PHP-SDK/sample/doc/lipp/GetUserInfo.html for more info. +Please make sure to use merchantInfo.email as the email address of the third party.

require __DIR__ . '/../bootstrap.php'; +use PayPal\Api\BillingInfo; +use PayPal\Api\Currency; +use PayPal\Api\Invoice; +use PayPal\Api\InvoiceAddress; +use PayPal\Api\InvoiceItem; +use PayPal\Api\MerchantInfo; +use PayPal\Api\PaymentTerm; +use PayPal\Api\ShippingInfo; + +$invoice = new Invoice();

Invoice Info

+

Fill in all the information that is +required for invoice APIs

$invoice + ->setMerchantInfo(new MerchantInfo()) + ->setBillingInfo(array(new BillingInfo())) + ->setNote("Medical Invoice 16 Jul, 2013 PST") + ->setPaymentTerm(new PaymentTerm());

Merchant Info

+

A resource representing merchant information that can be +used to identify merchant

$invoice->getMerchantInfo()

This would be the email address of third party merchant.

->setEmail("developer@sample.com") + ->setFirstName("Dennis") + ->setLastName("Doctor") + ->setbusinessName("Medical Professionals, LLC") + ->setAddress(new InvoiceAddress());

Address Information

+

The address used for creating the invoice

$invoice->getMerchantInfo()->getAddress() + ->setLine1("1234 Main St.") + ->setCity("Portland") + ->setState("OR") + ->setPostalCode("97217") + ->setCountryCode("US");

Billing Information

+

Set the email address for each billing

$billing = $invoice->getBillingInfo(); +$billing[0] + ->setEmail("sample@buy.com"); + +$billing[0]->setBusinessName("Jay Inc") + ->setAdditionalInfo("This is the billing Info") + ->setAddress(new InvoiceAddress()); + +$billing[0]->getAddress() + ->setLine1("1234 Main St.") + ->setCity("Portland") + ->setState("OR") + ->setPostalCode("97217") + ->setCountryCode("US");

Items List

+

You could provide the list of all items for +detailed breakdown of invoice

$items = array(); +$items[0] = new InvoiceItem(); +$items[0] + ->setName("Sutures") + ->setQuantity(100) + ->setUnitPrice(new Currency()); + +$items[0]->getUnitPrice() + ->setCurrency("USD") + ->setValue(5); + +$invoice->getPaymentTerm() + ->setTermType("NET_45");

For Sample Purposes Only.

$request = clone $invoice;
$refreshToken = "SCNWVZfdg43XaOmoEicazpkXyda32CGnP208EkuQ_QBIrXCYMhlvORFHHyoXPT0VbEMIHYVJEm0gVf1Vf72YgJzPScBenKoVPq__y1QRT7wwJo3WYADwUW4Q5ic"; + +try {

Use Refresh Token. MAKE SURE TO update MerchantInfo.Email based on

$invoice->updateAccessToken($refreshToken, $apiContext);

Create Invoice

+

Create an invoice by calling the invoice->create() method +with a valid ApiContext (See bootstrap.php for more on ApiContext)

$invoice->create($apiContext); +} catch (Exception $ex) {

NOTE: PLEASE DO NOT USE RESULTPRINTER CLASS IN YOUR ORIGINAL CODE. FOR SAMPLE ONLY

ResultPrinter::printError("Create Invoice", "Invoice", null, $request, $ex); + exit(1); +}

NOTE: PLEASE DO NOT USE RESULTPRINTER CLASS IN YOUR ORIGINAL CODE. FOR SAMPLE ONLY

ResultPrinter::printResult("Create Invoice", "Invoice", $invoice->getId(), $request, $invoice);

Send Invoice

try {

Send Invoice

$invoice->send($apiContext); + $invoice = Invoice::get($invoice->getId(), $apiContext); +} catch (Exception $ex) {

NOTE: PLEASE DO NOT USE RESULTPRINTER CLASS IN YOUR ORIGINAL CODE. FOR SAMPLE ONLY

ResultPrinter::printError("Send Invoice", "Invoice", null, $request, $ex); + exit(1); +}

NOTE: PLEASE DO NOT USE RESULTPRINTER CLASS IN YOUR ORIGINAL CODE. FOR SAMPLE ONLY

ResultPrinter::printResult("Send Invoice", "Invoice", $invoice->getId(), $request, $invoice); + + +return $invoice;
\ No newline at end of file diff --git a/sample/doc/invoice/DeleteInvoice.html b/sample/doc/invoice/DeleteInvoice.html index 7e0d6c2..96866d9 100644 --- a/sample/doc/invoice/DeleteInvoice.html +++ b/sample/doc/invoice/DeleteInvoice.html @@ -1,6 +1,6 @@ invoice/DeleteInvoice
invoice/DeleteInvoice.php
<?php

Delete Invoice Sample

This sample code demonstrate how you can delete -an invoice.

/** @var Invoice $invoice */ +an invoice.

/** @var Invoice $invoice */ $invoice = require 'CreateInvoice.php'; use PayPal\Api\Invoice; diff --git a/sample/doc/invoice/GetInvoice.html b/sample/doc/invoice/GetInvoice.html index 6d396b7..a947c50 100644 --- a/sample/doc/invoice/GetInvoice.html +++ b/sample/doc/invoice/GetInvoice.html @@ -1,6 +1,6 @@ invoice/GetInvoice
invoice/GetInvoice.php
<?php

Get Invoice Sample

This sample code demonstrate how you can retrieve -an invoice.

/** @var Invoice $invoice */ +an invoice.

/** @var Invoice $invoice */ $invoice = require 'CreateInvoice.php'; use PayPal\Api\Invoice; diff --git a/sample/doc/invoice/ListInvoice.html b/sample/doc/invoice/ListInvoice.html index 27ab19c..2761bb8 100644 --- a/sample/doc/invoice/ListInvoice.html +++ b/sample/doc/invoice/ListInvoice.html @@ -1,6 +1,6 @@ invoice/ListInvoice
invoice/ListInvoice.php
<?php

List Invoices Sample

This sample code demonstrate how you can get -all invoice from history.

/** @var Invoice $invoice */ +all invoice from history.

/** @var Invoice $invoice */ $invoice = require 'CreateInvoice.php'; use PayPal\Api\Invoice; diff --git a/sample/doc/invoice/RecordPayment.html b/sample/doc/invoice/RecordPayment.html index cb66c71..1ce68f5 100644 --- a/sample/doc/invoice/RecordPayment.html +++ b/sample/doc/invoice/RecordPayment.html @@ -1,6 +1,6 @@ invoice/RecordPayment
invoice/RecordPayment.php
<?php

Record Payment Sample

This sample code demonstrate how you can record -an invoice as paid.

/** @var Invoice $invoice */ +an invoice as paid.

/** @var Invoice $invoice */ $invoice = require 'SendInvoice.php'; use PayPal\Api\Invoice; diff --git a/sample/doc/invoice/RecordRefund.html b/sample/doc/invoice/RecordRefund.html index aa82b78..28c132a 100644 --- a/sample/doc/invoice/RecordRefund.html +++ b/sample/doc/invoice/RecordRefund.html @@ -1,6 +1,6 @@ invoice/RecordRefund
invoice/RecordRefund.php
<?php

Record Refund Sample

This sample code demonstrate how you can record -an invoice as refunded.

/** @var Invoice $invoice */ +an invoice as refunded.

/** @var Invoice $invoice */ $invoice = require 'RecordPayment.php'; use PayPal\Api\Invoice; diff --git a/sample/doc/invoice/RemindInvoice.html b/sample/doc/invoice/RemindInvoice.html index bf4838c..a8019d3 100644 --- a/sample/doc/invoice/RemindInvoice.html +++ b/sample/doc/invoice/RemindInvoice.html @@ -1,6 +1,6 @@ invoice/RemindInvoice
invoice/RemindInvoice.php
<?php

Remind Invoice Sample

This sample code demonstrate how you can remind -an invoice to the payer

/** @var Invoice $invoice */ +an invoice to the payer

/** @var Invoice $invoice */ $invoice = require 'SendInvoice.php'; use PayPal\Api\Invoice; diff --git a/sample/doc/invoice/RetrieveQRCode.html b/sample/doc/invoice/RetrieveQRCode.html index fb824d7..6682db9 100644 --- a/sample/doc/invoice/RetrieveQRCode.html +++ b/sample/doc/invoice/RetrieveQRCode.html @@ -1,5 +1,5 @@ invoice/RetrieveQRCode
invoice/RetrieveQRCode.php
<?php

Retrieve QR Code for Invoice Sample

-

Specify an invoice ID to get a QR code (image) that corresponds to the invoice ID. A QR code for an invoice can be added to a paper or PDF invoice. When a customer uses their mobile device to scan the QR code, the customer is redirected to the PayPal mobile payment flow, where they can pay online with PayPal or a credit card.

/** @var Invoice $invoice */ +

Specify an invoice ID to get a QR code (image) that corresponds to the invoice ID. A QR code for an invoice can be added to a paper or PDF invoice. When a customer uses their mobile device to scan the QR code, the customer is redirected to the PayPal mobile payment flow, where they can pay online with PayPal or a credit card.

/** @var Invoice $invoice */ $invoice = require 'SendInvoice.php'; use PayPal\Api\Invoice; diff --git a/sample/doc/invoice/SearchInvoices.html b/sample/doc/invoice/SearchInvoices.html index dd6c673..3431699 100644 --- a/sample/doc/invoice/SearchInvoices.html +++ b/sample/doc/invoice/SearchInvoices.html @@ -1,6 +1,6 @@ invoice/SearchInvoices
invoice/SearchInvoices.php
<?php

Search Invoices Sample

This sample code demonstrate how you can -search invoices from history.

/** @var Invoice $invoice */ +search invoices from history.

/** @var Invoice $invoice */ $invoice = require 'CreateInvoice.php'; use PayPal\Api\Invoice; use PayPal\Api\Search; diff --git a/sample/doc/invoice/SendInvoice.html b/sample/doc/invoice/SendInvoice.html index 310cda5..3d93dcb 100644 --- a/sample/doc/invoice/SendInvoice.html +++ b/sample/doc/invoice/SendInvoice.html @@ -1,6 +1,6 @@ invoice/SendInvoice
invoice/SendInvoice.php
<?php

Create Invoice Sample

This sample code demonstrate how you can send -a legitimate invoice to the payer

/** @var Invoice $invoice */ +a legitimate invoice to the payer

/** @var Invoice $invoice */ $invoice = require 'CreateInvoice.php'; use PayPal\Api\Invoice; diff --git a/sample/doc/invoice/UpdateInvoice.html b/sample/doc/invoice/UpdateInvoice.html index 63b3550..d09f6bd 100644 --- a/sample/doc/invoice/UpdateInvoice.html +++ b/sample/doc/invoice/UpdateInvoice.html @@ -1,6 +1,6 @@ invoice/UpdateInvoice
invoice/UpdateInvoice.php
<?php

Update Invoice Sample

This sample code demonstrate how you can update -an invoice.

/** @var Invoice $invoice */ +an invoice.

/** @var Invoice $invoice */ $invoice = require 'CreateInvoice.php'; use PayPal\Api\Invoice;

For Sample Purposes Only.

$request = clone $invoice;

Update Invoice

Lets update some information

$invoice->setInvoiceDate("2014-12-16 PST");

NOTE: These are the work-around added to the

diff --git a/sample/doc/lipp/ObtainUserConsent.html b/sample/doc/lipp/ObtainUserConsent.html index 96631fa..70f205d 100644 --- a/sample/doc/lipp/ObtainUserConsent.html +++ b/sample/doc/lipp/ObtainUserConsent.html @@ -9,7 +9,9 @@ $redirectUrl = OpenIdSession::getAuthorizationUrl( $baseUrl, array('openid', 'profile', 'address', 'email', 'phone', - 'https://uri.paypal.com/services/paypalattributes', 'https://uri.paypal.com/services/expresscheckout'), + 'https://uri.paypal.com/services/paypalattributes', + 'https://uri.paypal.com/services/expresscheckout', + 'https://uri.paypal.com/services/invoicing'), null, null, null, diff --git a/sample/doc/notifications/DeleteAllWebhooks.html b/sample/doc/notifications/DeleteAllWebhooks.html index d77a099..06a9281 100644 --- a/sample/doc/notifications/DeleteAllWebhooks.html +++ b/sample/doc/notifications/DeleteAllWebhooks.html @@ -1,6 +1,6 @@ notifications/DeleteAllWebhooks
notifications/DeleteAllWebhooks.php
<?php

Delete All Webhook Sample

This is a sample helper method, to delete all existing webhooks, because of limited number of webhooks that are allowed per app. -To properly use the sample, change the clientId and Secret from bootstrap.php file with your own app ClientId and Secret.

Get Webhook Instance

/** @var \PayPal\Api\WebhookList $webhookList */ +To properly use the sample, change the clientId and Secret from bootstrap.php file with your own app ClientId and Secret.

Get Webhook Instance

/** @var \PayPal\Api\WebhookList $webhookList */ $webhookList = require 'ListWebhooks.php';

Delete Webhook

try { foreach ($webhookList->getWebhooks() as $webhook) { $webhook->delete($apiContext); diff --git a/sample/doc/notifications/DeleteWebhook.html b/sample/doc/notifications/DeleteWebhook.html index 451338d..d5f4f78 100644 --- a/sample/doc/notifications/DeleteWebhook.html +++ b/sample/doc/notifications/DeleteWebhook.html @@ -1,7 +1,7 @@ notifications/DeleteWebhook
notifications/DeleteWebhook.php
<?php

Delete Webhook Sample

This sample code demonstrate how to use this call to search for all webhook events., as documented here at: https://developer.paypal.com/docs/api/#delete-a-webhook -API used: DELETE v1/notifications/webhooks/

Get Webhook Instance

/** @var \PayPal\Api\Webhook $webhook */ +API used: DELETE v1/notifications/webhooks/

Get Webhook Instance

/** @var \PayPal\Api\Webhook $webhook */ $webhook = require 'CreateWebhook.php';

Delete Webhook

try { $output = $webhook->delete($apiContext); } catch (Exception $ex) {

NOTE: PLEASE DO NOT USE RESULTPRINTER CLASS IN YOUR ORIGINAL CODE. FOR SAMPLE ONLY

ResultPrinter::printError("Delete a Webhook", "Webhook", null, $webhookId, $ex); diff --git a/sample/doc/notifications/GetWebhook.html b/sample/doc/notifications/GetWebhook.html index 1708d7f..9782ded 100644 --- a/sample/doc/notifications/GetWebhook.html +++ b/sample/doc/notifications/GetWebhook.html @@ -3,7 +3,7 @@ https://developer.paypal.com/webapps/developer/docs/api/#get-a-webhook API used: GET /v1/notifications/webhooks/

Get Webhook ID.

In samples we are using CreateWebhook.php sample to get the created instance of webhook. -However, in real case scenario, we could use just the ID from database or retrieved from the form.

/** @var \PayPal\Api\Webhook $webhook */ +However, in real case scenario, we could use just the ID from database or retrieved from the form.

/** @var \PayPal\Api\Webhook $webhook */ $webhook = require 'CreateWebhook.php'; $webhookId = $webhook->getId();

Get Webhook

try { $output = \PayPal\Api\Webhook::get($webhookId, $apiContext); diff --git a/sample/doc/notifications/ListSubscribedWebhookEventTypes.html b/sample/doc/notifications/ListSubscribedWebhookEventTypes.html index a771a8f..c4d28bc 100644 --- a/sample/doc/notifications/ListSubscribedWebhookEventTypes.html +++ b/sample/doc/notifications/ListSubscribedWebhookEventTypes.html @@ -2,7 +2,7 @@

This sample code demonstrate how you can get a webhook, as documented here at: https://developer.paypal.com/webapps/developer/docs/api/#get-a-webhook API used: GET /v1/notifications/webhooks/

List Subscribed Event Types

-

Use this call to retrieve the list of events types that are subscribed to a webhook.

/** @var \PayPal\Api\Webhook $webhook */ +

Use this call to retrieve the list of events types that are subscribed to a webhook.

/** @var \PayPal\Api\Webhook $webhook */ $webhook = require 'CreateWebhook.php'; $webhookId = $webhook->getId();

Get List of Subscribed Event Types

try { $output = \PayPal\Api\WebhookEventType::subscribedEventTypes($webhookId, $apiContext); diff --git a/sample/doc/notifications/ListWebhooks.html b/sample/doc/notifications/ListWebhooks.html index 08bc4fc..6923e56 100644 --- a/sample/doc/notifications/ListWebhooks.html +++ b/sample/doc/notifications/ListWebhooks.html @@ -3,7 +3,7 @@ https://developer.paypal.com/webapps/developer/docs/api/#list-all-webhooks API used: GET /v1/notifications/webhooks

List Webhooks

This step is not necessarily required. We are creating a webhook for sample purpose only, so that we would not get an empty list at any point. -In real case, you dont need to create any webhook to make this API call.

/** @var \PayPal\Api\Webhook $webhook */ +In real case, you dont need to create any webhook to make this API call.

/** @var \PayPal\Api\Webhook $webhook */ $webhook = require_once __DIR__ . '/../bootstrap.php';

Get List of All Webhooks

try { $output = \PayPal\Api\Webhook::getAll($apiContext); } catch (Exception $ex) {

NOTE: PLEASE DO NOT USE RESULTPRINTER CLASS IN YOUR ORIGINAL CODE. FOR SAMPLE ONLY

ResultPrinter::printError("List all webhooks", "WebhookList", null, $webhookId, $ex); diff --git a/sample/doc/notifications/SearchWebhookEvents.html b/sample/doc/notifications/SearchWebhookEvents.html index e5d3114..86d4de3 100644 --- a/sample/doc/notifications/SearchWebhookEvents.html +++ b/sample/doc/notifications/SearchWebhookEvents.html @@ -4,7 +4,7 @@ API used: GET /v1/notifications/webhooks-events

Get Webhook Instance

PLEASE NOTE:

Creating webhook is sample purposes only. In real scenario, you dont need to create a new webhook everytime you want to search -for a webhook events. This is made in a sample just to make sure there is minimum of one webhook to listen to.

/** @var \PayPal\Api\Webhook $webhook */ +for a webhook events. This is made in a sample just to make sure there is minimum of one webhook to listen to.

/** @var \PayPal\Api\Webhook $webhook */ $webhook = require __DIR__ . '/../bootstrap.php'; $params = array(

'start_time'=>'2014-12-06T11:00:00Z', diff --git a/sample/doc/notifications/UpdateWebhook.html b/sample/doc/notifications/UpdateWebhook.html index 09ad0f6..fa7a5bf 100644 --- a/sample/doc/notifications/UpdateWebhook.html +++ b/sample/doc/notifications/UpdateWebhook.html @@ -3,7 +3,7 @@ https://developer.paypal.com/webapps/developer/docs/api/#update-a-webhook API used: PATCH v1/notifications/webhooks/

Get Webhook ID.

In samples we are using CreateWebhook.php sample to get the created instance of webhook. -However, in real case scenario, we could use just the ID from database or use an already existing webhook.

/** @var \PayPal\Api\Webhook $webhook */ +However, in real case scenario, we could use just the ID from database or use an already existing webhook.

/** @var \PayPal\Api\Webhook $webhook */ $webhook = require 'CreateWebhook.php';

Updating the webhook as per given request

 [
     {
diff --git a/sample/doc/notifications/ValidateWebhookEvent.html b/sample/doc/notifications/ValidateWebhookEvent.html
index cae295b..51fc598 100644
--- a/sample/doc/notifications/ValidateWebhookEvent.html
+++ b/sample/doc/notifications/ValidateWebhookEvent.html
@@ -10,9 +10,9 @@ This is a sample data, that represents the webhook event data.

-/** @var String $bodyReceived */

$bodyReceived = file_get_contents('php://input');

Validate Received Event Method

+/** @var String $bodyReceived */

$bodyReceived = file_get_contents('php://input');

Validate Received Event Method

Call the validateReceivedEvent() method with provided body, and apiContext object to validate

try { - /** @var \PayPal\Api\WebhookEvent $output */ + /** @var \PayPal\Api\WebhookEvent $output */ $output = \PayPal\Api\WebhookEvent::validateAndGetReceivedEvent($bodyReceived, $apiContext); } catch (Exception $ex) {

NOTE: PLEASE DO NOT USE RESULTPRINTER CLASS IN YOUR ORIGINAL CODE. FOR SAMPLE ONLY

ResultPrinter::printError("Validate Received Webhook Event", "WebhookEvent", null, $bodyReceived, $ex); exit(1); diff --git a/sample/doc/payment-experience/DeleteWebProfile.html b/sample/doc/payment-experience/DeleteWebProfile.html index 5ca4b5b..d19521d 100644 --- a/sample/doc/payment-experience/DeleteWebProfile.html +++ b/sample/doc/payment-experience/DeleteWebProfile.html @@ -3,7 +3,7 @@ Documentation available at https://developer.paypal.com/webapps/developer/docs/api/#delete-a-web-experience-profile

We are going to re-use the sample code from CreateWebProfile.php. If you have not visited the sample yet, please visit it before trying GetWebProfile.php The CreateWebProfile.php will create a web profile for us, and return a CreateProfileResponse, -that contains the web profile ID.

/** @var \PayPal\Api\CreateProfileResponse $result */ +that contains the web profile ID.

/** @var \PayPal\Api\CreateProfileResponse $result */ $createProfileResponse = require_once 'CreateWebProfile.php';

Create a new instance of web Profile ID, and set the ID.

$webProfile = new \PayPal\Api\WebProfile(); $webProfile->setId($createProfileResponse->getId()); diff --git a/sample/doc/payment-experience/GetWebProfile.html b/sample/doc/payment-experience/GetWebProfile.html index 0186fa4..c8621f5 100644 --- a/sample/doc/payment-experience/GetWebProfile.html +++ b/sample/doc/payment-experience/GetWebProfile.html @@ -3,7 +3,7 @@ Documentation available at https://developer.paypal.com/webapps/developer/docs/api/#retrieve-a-web-experience-profile

We are going to re-use the sample code from CreateWebProfile.php. If you have not visited the sample yet, please visit it before trying GetWebProfile.php The CreateWebProfile.php will create a web profile for us, and return a CreateProfileResponse, -that contains the web profile ID.

/** @var \PayPal\Api\CreateProfileResponse $result */ +that contains the web profile ID.

/** @var \PayPal\Api\CreateProfileResponse $result */ $createProfileResponse = require 'CreateWebProfile.php'; try {

If your request is successful, the API returns a web_profile object response that contains the profile details.

$webProfile = \PayPal\Api\WebProfile::get($createProfileResponse->getId(), $apiContext); diff --git a/sample/doc/payment-experience/PartiallyUpdateWebProfile.html b/sample/doc/payment-experience/PartiallyUpdateWebProfile.html index 808bb61..0998901 100644 --- a/sample/doc/payment-experience/PartiallyUpdateWebProfile.html +++ b/sample/doc/payment-experience/PartiallyUpdateWebProfile.html @@ -1,7 +1,7 @@ payment-experience/PartiallyUpdateWebProfile
payment-experience/PartiallyUpdateWebProfile.php
<?php

Partially Update Web Profile

Use this call to partially update a web experience profile. Documentation available at https://developer.paypal.com/webapps/developer/docs/api/#partially-update-a-web-experience-profile

We will be re-using the sample code to get a web profile. GetWebProfile.php will -create a new web profileId for sample, and return the web profile object.

/** @var \PayPal\Api\WebProfile $webProfile */ +create a new web profileId for sample, and return the web profile object.

/** @var \PayPal\Api\WebProfile $webProfile */ $webProfile = require 'GetWebProfile.php';

Create Patch Operation

APIs allows us to pass an array of patches to make patch operations. diff --git a/sample/doc/payment-experience/UpdateWebProfile.html b/sample/doc/payment-experience/UpdateWebProfile.html index ad1ce9e..5e4a360 100644 --- a/sample/doc/payment-experience/UpdateWebProfile.html +++ b/sample/doc/payment-experience/UpdateWebProfile.html @@ -1,7 +1,7 @@ payment-experience/UpdateWebProfile

payment-experience/UpdateWebProfile.php
<?php

Update Web Profile

Use this call to update an experience profile. Documentation available at https://developer.paypal.com/webapps/developer/docs/api/#update-a-web-experience-profile

We will be re-using the sample code to get a web profile. GetWebProfile.php will -create a new web profileId for sample, and return the web profile object.

/** @var \PayPal\Api\WebProfile $webProfile */ +create a new web profileId for sample, and return the web profile object.

/** @var \PayPal\Api\WebProfile $webProfile */ $webProfile = require 'GetWebProfile.php';

Updated the logo image of presentation object in a given web profile.

$webProfile->getPresentation()->setLogoImage("http://www.google.com/favico.ico"); try {

Update the web profile to change the logo image.

if ($webProfile->update($apiContext)) {

If the update is successfull, we can now get the object, and verify the web profile diff --git a/sample/doc/payments/AuthorizationCapture.html b/sample/doc/payments/AuthorizationCapture.html index e4faace..76963f6 100644 --- a/sample/doc/payments/AuthorizationCapture.html +++ b/sample/doc/payments/AuthorizationCapture.html @@ -2,7 +2,7 @@

This sample code demonstrates how you can capture a previously authorized payment. API used: /v1/payments/payment -https://developer.paypal.com/webapps/developer/docs/api/#capture-an-authorization

/** @var Authorization $authorization */ $authorization = require 'GetAuthorization.php'; use PayPal\Api\Amount; use PayPal\Api\Authorization; diff --git a/sample/doc/payments/CreatePayment.html b/sample/doc/payments/CreatePayment.html index 7dd7f65..d04b12a 100644 --- a/sample/doc/payments/CreatePayment.html +++ b/sample/doc/payments/CreatePayment.html @@ -16,7 +16,7 @@ API used: /v1/payments/payment

$card = new CreditCard(); $card->setType("visa") - ->setNumber("4148529247832259") + ->setNumber("4669424246660779") ->setExpireMonth("11") ->setExpireYear("2019") ->setCvv2("012") diff --git a/sample/doc/payments/CreatePaymentUsingSavedCard.html b/sample/doc/payments/CreatePaymentUsingSavedCard.html index c1ffbfe..c6a121d 100644 --- a/sample/doc/payments/CreatePaymentUsingSavedCard.html +++ b/sample/doc/payments/CreatePaymentUsingSavedCard.html @@ -1,7 +1,7 @@ payments/CreatePaymentUsingSavedCard
payments/CreatePaymentUsingSavedCard.php
<?php

Create payment using a saved credit card

This sample code demonstrates how you can process a Payment using a previously stored credit card token. -API used: /v1/payments/payment

/** @var CreditCard $card */ +API used: /v1/payments/payment

/** @var CreditCard $card */ $card = require __DIR__ . '/../vault/CreateCreditCard.php'; use PayPal\Api\Amount; use PayPal\Api\CreditCard; diff --git a/sample/doc/payments/GetAuthorization.html b/sample/doc/payments/GetAuthorization.html index f0094d1..922e9c0 100644 --- a/sample/doc/payments/GetAuthorization.html +++ b/sample/doc/payments/GetAuthorization.html @@ -1,7 +1,7 @@ payments/GetAuthorization
payments/GetAuthorization.php
<?php

GetAuthorization

This sample code demonstrates how you can get details of an authorized payment. -API used: /v1/payments/authorization/<$authorizationId>

/** @var Authorization $authorization */ +API used: /v1/payments/authorization/<$authorizationId>

/** @var Authorization $authorization */ $authorization = require 'AuthorizePayment.php'; $authorizationId = $authorization->getId(); use PayPal\Api\Authorization;

GetAuthorization

diff --git a/sample/doc/payments/GetCapture.html b/sample/doc/payments/GetCapture.html index 8b59257..cdd7230 100644 --- a/sample/doc/payments/GetCapture.html +++ b/sample/doc/payments/GetCapture.html @@ -1,7 +1,7 @@ payments/GetCapture
payments/GetCapture.php
<?php

GetCapture

This sample code demonstrates how you can lookup the details of a captured payment. -API used: /v1/payments/capture/<$captureId>

/** @var Capture $request */ +API used: /v1/payments/capture/<$captureId>

/** @var Capture $request */ $request = require 'AuthorizationCapture.php'; use PayPal\Api\Capture;

Retrieve Capture details

diff --git a/sample/doc/payments/GetPayment.html b/sample/doc/payments/GetPayment.html index e440905..034eeba 100644 --- a/sample/doc/payments/GetPayment.html +++ b/sample/doc/payments/GetPayment.html @@ -5,7 +5,7 @@ you've created using the Payments API. Note various query parameters that you can use to filter, and paginate through the payments list. -API used: GET /v1/payments/payments

/** @var Payment $createdPayment */ +API used: GET /v1/payments/payments

/** @var Payment $createdPayment */ $createdPayment = require 'CreatePayment.php'; use PayPal\Api\Payment; diff --git a/sample/doc/payments/OrderAuthorize.html b/sample/doc/payments/OrderAuthorize.html index 12d08f1..37b8f7e 100644 --- a/sample/doc/payments/OrderAuthorize.html +++ b/sample/doc/payments/OrderAuthorize.html @@ -1,6 +1,6 @@ payments/OrderAuthorize
payments/OrderAuthorize.php
<?php

Authorize Order Sample

To authorize an order payment, pass the orderId in the URI of a POST call. This begins the process of confirming that funds are available until it is time to complete the payment transaction. -API used: POST /v1/payments/orders//authorize

/** @var \PayPal\Api\Payment $payment */ +API used: POST /v1/payments/orders//authorize

/** @var \PayPal\Api\Payment $payment */ $payment = require __DIR__ . '/ExecutePayment.php'; use PayPal\Api\Amount; diff --git a/sample/doc/payments/OrderCapture.html b/sample/doc/payments/OrderCapture.html index 74e6fed..1484dd2 100644 --- a/sample/doc/payments/OrderCapture.html +++ b/sample/doc/payments/OrderCapture.html @@ -1,6 +1,6 @@ payments/OrderCapture
payments/OrderCapture.php
<?php

Capture Order Sample

To authorize an order payment, pass the orderId in the URI of a POST call. This begins the process of confirming that funds are available until it is time to complete the payment transaction. -API used: POST /v1/payments/orders//authorize

/** @var \PayPal\Api\Payment $payment */ +API used: POST /v1/payments/orders//authorize

/** @var \PayPal\Api\Payment $payment */ $payment = require __DIR__ . '/ExecutePayment.php'; use PayPal\Api\Amount; diff --git a/sample/doc/payments/OrderDoVoid.html b/sample/doc/payments/OrderDoVoid.html index bc4f7ec..2773f36 100644 --- a/sample/doc/payments/OrderDoVoid.html +++ b/sample/doc/payments/OrderDoVoid.html @@ -1,7 +1,7 @@ payments/OrderDoVoid
payments/OrderDoVoid.php
<?php

Void Order Sample

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//do-void

/** @var \PayPal\Api\Payment $payment */ +API used: POST /v1/payments/orders//do-void

/** @var \PayPal\Api\Payment $payment */ $payment = require __DIR__ . '/ExecutePayment.php';

Approval Status

Determine if the user approved the payment or not

if (isset($_GET['success']) && $_GET['success'] == 'true') {

Retrieve the order

OrderId could be retrieved by parsing the object inside related_resources.

$transactions = $payment->getTransactions(); diff --git a/sample/doc/payments/OrderGet.html b/sample/doc/payments/OrderGet.html index d7a8bbc..411f6f1 100644 --- a/sample/doc/payments/OrderGet.html +++ b/sample/doc/payments/OrderGet.html @@ -1,6 +1,6 @@ payments/OrderGet
payments/OrderGet.php
<?php

Get Order Sample

Specify an order ID to get details about an order. -API used: GET /v1/payments/orders/

/** @var \PayPal\Api\Payment $payment */ +API used: GET /v1/payments/orders/

/** @var \PayPal\Api\Payment $payment */ $payment = require __DIR__ . '/ExecutePayment.php';

Approval Status

Determine if the user approved the payment or not

if (isset($_GET['success']) && $_GET['success'] == 'true') { diff --git a/sample/doc/payments/Reauthorization.html b/sample/doc/payments/Reauthorization.html index fe5f347..e4a15ac 100644 --- a/sample/doc/payments/Reauthorization.html +++ b/sample/doc/payments/Reauthorization.html @@ -1,7 +1,7 @@ payments/Reauthorization
payments/Reauthorization.php
<?php

Reauthorization Sample

This sample code demonstrates how you can reauthorize a PayPal account payment. -API used: v1/payments/authorization/{authorization_id}/reauthorize

/** @var Authorization $authorization */ +API used: v1/payments/authorization/{authorization_id}/reauthorize

/** @var Authorization $authorization */ $authorization = require 'AuthorizePayment.php'; use PayPal\Api\Amount; use PayPal\Api\Authorization;

Reauthorization

diff --git a/sample/doc/payments/RefundCapture.html b/sample/doc/payments/RefundCapture.html index 4d1a157..fbcb2a4 100644 --- a/sample/doc/payments/RefundCapture.html +++ b/sample/doc/payments/RefundCapture.html @@ -1,7 +1,7 @@ payments/RefundCapture
payments/RefundCapture.php
<?php

Refund Capture Sample

This sample code demonstrates how you can process a refund on a Captured transaction. -API used: /v1/payments/capture/{}/refund

/** @var Capture $capture */ +API used: /v1/payments/capture/{}/refund

/** @var Capture $capture */ $capture = require 'AuthorizationCapture.php'; use PayPal\Api\Capture; diff --git a/sample/doc/payments/UpdatePayment.html b/sample/doc/payments/UpdatePayment.html index 3894b4f..025ecab 100644 --- a/sample/doc/payments/UpdatePayment.html +++ b/sample/doc/payments/UpdatePayment.html @@ -6,7 +6,7 @@ you've created using the Payments API.

Note that it can only be updated before the execute is done. Once, the payment is executed it is not possible to udpate that. Docs: https://developer.paypal.com/webapps/developer/docs/api/#update-a-payment-resource -API used: PATCH /v1/payments/payment/

/** @var Payment $createdPayment */ +API used: PATCH /v1/payments/payment/

/** @var Payment $createdPayment */ $createdPayment = require 'CreatePaymentUsingPayPal.php'; use PayPal\Api\Payment; diff --git a/sample/doc/payments/VoidAuthorization.html b/sample/doc/payments/VoidAuthorization.html index df946cb..daeecf8 100644 --- a/sample/doc/payments/VoidAuthorization.html +++ b/sample/doc/payments/VoidAuthorization.html @@ -1,7 +1,7 @@ payments/VoidAuthorization
payments/VoidAuthorization.php
<?php

VoidAuthorization

This sample code demonstrates how you can void an authorized payment. -API used: /v1/payments/authorization/<{authorizationid}>/void"

/** @var Authorization $authorization */ +API used: /v1/payments/authorization/<{authorizationid}>/void"

/** @var Authorization $authorization */ $authorization = require 'AuthorizePayment.php';

Replace $authorizationid with any static Id you might already have. It will do a void on it

$authorizationId = '1BF65516U6866543H'; // $authorization->getId(); use PayPal\Api\Authorization;

VoidAuthorization

You can void a previously authorized payment diff --git a/sample/doc/payouts/CancelPayoutItem.html b/sample/doc/payouts/CancelPayoutItem.html index 99c588a..5e25155 100644 --- a/sample/doc/payouts/CancelPayoutItem.html +++ b/sample/doc/payouts/CancelPayoutItem.html @@ -1,7 +1,7 @@ payouts/CancelPayoutItem

payouts/CancelPayoutItem.php
<?php

Cancel Payout Item Status Sample

Use this call to cancel an existing, unclaimed transaction. If an unclaimed item is not claimed within 30 days, the funds will be automatically returned to the sender. This call can be used to cancel the unclaimed item prior to the automatic 30-day return. https://developer.paypal.com/docs/api/#cancel-an-unclaimed-payout-item -API used: POST /v1/payments/payouts-item//cancel

/** @var \PayPal\Api\PayoutBatch $payoutBatch */ +API used: POST /v1/payments/payouts-item//cancel

/** @var \PayPal\Api\PayoutBatch $payoutBatch */ $payoutBatch = require 'CreateSinglePayout.php';

Payout Item ID

You can replace this with your Payout Batch Id on already created Payout.

$payoutItems = $payoutBatch->getItems(); $payoutItem = $payoutItems[0]; diff --git a/sample/doc/payouts/CreateBatchPayout.html b/sample/doc/payouts/CreateBatchPayout.html index 863cb91..79c2f0e 100644 --- a/sample/doc/payouts/CreateBatchPayout.html +++ b/sample/doc/payouts/CreateBatchPayout.html @@ -14,7 +14,7 @@ API used: /v1/payments/payouts

@mail.com", "note": "Thank you.", "sender_item_id": "item_1" }, @@ -24,7 +24,7 @@ API used: /v1/payments/payouts

@mail.com", "note": "Thank you.", "sender_item_id": "item_2" }, @@ -34,7 +34,7 @@ API used: /v1/payments/payouts

@mail.com", "note": "Thank you.", "sender_item_id": "item_3" } diff --git a/sample/doc/payouts/CreateSinglePayout.html b/sample/doc/payouts/CreateSinglePayout.html index 3dac425..f948d0b 100644 --- a/sample/doc/payouts/CreateSinglePayout.html +++ b/sample/doc/payouts/CreateSinglePayout.html @@ -16,7 +16,7 @@ API used: /v1/payments/payouts?sync_mode=true

< }, "note":"Thanks for your patronage!", "sender_item_id":"2014031400023", - "receiver":"shirt-supplier-one@mail.com" + "receiver":"shirt-supplier-one@mail.com" } ] } diff --git a/sample/doc/payouts/GetPayoutBatchStatus.html b/sample/doc/payouts/GetPayoutBatchStatus.html index 5215381..f86ea07 100644 --- a/sample/doc/payouts/GetPayoutBatchStatus.html +++ b/sample/doc/payouts/GetPayoutBatchStatus.html @@ -1,7 +1,7 @@ payouts/GetPayoutBatchStatus
payouts/GetPayoutBatchStatus.php
<?php

Get Payout Batch Status Sample

This sample code demonstrate how you can get the batch payout status of a created batch payout, as documented here at: https://developer.paypal.com/docs/api/#get-the-status-of-a-batch-payout -API used: GET /v1/payments/payouts/

/** @var \PayPal\Api\PayoutBatch $payoutBatch */ +API used: GET /v1/payments/payouts/

/** @var \PayPal\Api\PayoutBatch $payoutBatch */ $payoutBatch = require 'CreateBatchPayout.php';

Payout Batch ID

You can replace this with your Payout Batch Id on already created Payout.

$payoutBatchId = $payoutBatch->getBatchHeader()->getPayoutBatchId();

Get Payout Batch Status

try { $output = \PayPal\Api\Payout::get($payoutBatchId, $apiContext); diff --git a/sample/doc/payouts/GetPayoutItemStatus.html b/sample/doc/payouts/GetPayoutItemStatus.html index dc79dab..bfd89bf 100644 --- a/sample/doc/payouts/GetPayoutItemStatus.html +++ b/sample/doc/payouts/GetPayoutItemStatus.html @@ -1,7 +1,7 @@ payouts/GetPayoutItemStatus
payouts/GetPayoutItemStatus.php
<?php

Get Payout Item Status Sample

Use this call to get data about a payout item, including the status, without retrieving an entire batch. You can get the status of an individual payout item in a batch in order to review the current status of a previously-unclaimed, or pending, payout item. https://developer.paypal.com/docs/api/#get-the-status-of-a-payout-item -API used: GET /v1/payments/payouts-item/

/** @var \PayPal\Api\PayoutBatch $payoutBatch */ +API used: GET /v1/payments/payouts-item/

/** @var \PayPal\Api\PayoutBatch $payoutBatch */ $payoutBatch = require 'GetPayoutBatchStatus.php';

Payout Item ID

You can replace this with your Payout Batch Id on already created Payout.

$payoutItems = $payoutBatch->getItems(); $payoutItem = $payoutItems[0]; diff --git a/sample/doc/sale/GetSale.html b/sample/doc/sale/GetSale.html index bc2a15f..f545e16 100644 --- a/sample/doc/sale/GetSale.html +++ b/sample/doc/sale/GetSale.html @@ -2,7 +2,7 @@

Sale transactions are nothing but completed payments. This sample code demonstrates how you can retrieve details of completed Sale Transaction. -API used: /v1/payments/sale/{sale-id}

/** @var Payment $payment */ +API used: /v1/payments/sale/{sale-id}

/** @var Payment $payment */ $payment = require __DIR__ . '/../payments/CreatePayment.php'; use PayPal\Api\Payment; use PayPal\Api\Sale;

Get Sale From Created Payment

diff --git a/sample/doc/sale/RefundSale.html b/sample/doc/sale/RefundSale.html index 7afd2e0..d013389 100644 --- a/sample/doc/sale/RefundSale.html +++ b/sample/doc/sale/RefundSale.html @@ -2,7 +2,7 @@

This sample code demonstrate how you can process a refund on a sale transaction created using the Payments API. -API used: /v1/payments/sale/{sale-id}/refund

/** @var Sale $sale */ +API used: /v1/payments/sale/{sale-id}/refund

/** @var Sale $sale */ $sale = require 'GetSale.php'; $saleId = $sale->getId(); diff --git a/sample/doc/tls/TlsCheck.html b/sample/doc/tls/TlsCheck.html index b93a6e9..73836a1 100644 --- a/sample/doc/tls/TlsCheck.html +++ b/sample/doc/tls/TlsCheck.html @@ -3,9 +3,6 @@ PayPal Account based Payment. API used: /v1/payments/payment

require __DIR__ . '/../bootstrap.php'; use PayPal\Api\Amount; -use PayPal\Api\Details; -use PayPal\Api\Item; -use PayPal\Api\ItemList; use PayPal\Api\Payer; use PayPal\Api\Payment; use PayPal\Api\RedirectUrls; @@ -17,8 +14,9 @@ To test your own implementation to verify it TLS is successfully supported in yo the following steps.

  1. Create an APIContext object as usual. (No Change Required).
  2. -
  3. Add Configs as shown below to your apiContext object
  4. -
$apiContext->setConfig(array('service.EndPoint'=>"https://test-api.sandbox.paypal.com"));
    +
  1. Add Configs as shown below to your apiContext object +Note: Explicitly disabling caching for specific testing.
  2. +
$apiContext->setConfig(array('service.EndPoint'=>"https://test-api.sandbox.paypal.com", 'cache.enabled'=>false));
  1. Thats it. Run your code, and see if it works as normal.
  2. You can check sdk logs to verify it is infact pointing to the above URL instead of default sandbox one.

Create a Payment for testing

@@ -41,8 +39,8 @@ the following steps.

$curl_info = curl_version(); try { $payment->create($apiContext); -} catch (Exception $ex) {

NOTE: PLEASE DO NOT USE RESULTPRINTER CLASS IN YOUR ORIGINAL CODE. FOR SAMPLE ONLY

ResultPrinter::printError("FAILURE: SECURITY WARNING: TLSv1.2 is not supported on this system. Please upgrade your curl/openssl to enable TLSv1.2. <br /> - Your Current SSL Version is : " . $curl_info['ssl_version'], "Payment", null, $request, $ex); +} catch (Exception $ex) {

NOTE: PLEASE DO NOT USE RESULTPRINTER CLASS IN YOUR ORIGINAL CODE. FOR SAMPLE ONLY

ResultPrinter::printError("FAILURE: SECURITY WARNING: TLSv1.2 is not supported on this system. Please upgrade your curl to atleast 7.34.0.<br /> - Current Curl Version: " . $curl_info['version'] . "<br /> - Current OpenSSL Version:" . $curl_info['ssl_version'], "Payment", null, $request, $ex); exit(1); -}

NOTE: PLEASE DO NOT USE RESULTPRINTER CLASS IN YOUR ORIGINAL CODE. FOR SAMPLE ONLY

ResultPrinter::printResult("<b>SUCCESS</b>: Your server supports TLS protocols required for secure connection to PayPal Servers. <br /> - Your Current SSL Version is : " . $curl_info['ssl_version'], null, null, null, "SUCCESS. Your system supports TLSv1.2"); +}

NOTE: PLEASE DO NOT USE RESULTPRINTER CLASS IN YOUR ORIGINAL CODE. FOR SAMPLE ONLY

ResultPrinter::printResult("<b>SUCCESS</b>: Your server supports TLS protocols required for secure connection to PayPal Servers. <br /> - Current Curl Version: " . $curl_info['version'] . "<br /> - Current OpenSSL Version:" . $curl_info['ssl_version'], null, null, null, "SUCCESS. Your system supports TLSv1.2"); return $payment;
\ No newline at end of file diff --git a/sample/doc/vault/DeleteBankAccount.html b/sample/doc/vault/DeleteBankAccount.html index 4986c8f..d1bd5ff 100644 --- a/sample/doc/vault/DeleteBankAccount.html +++ b/sample/doc/vault/DeleteBankAccount.html @@ -2,7 +2,7 @@

This sample code demonstrate how you can delete a saved bank account API used: /v1/vault/bank-accounts/{} -NOTE: HTTP method used here is DELETE

/** @var \PayPal\Api\BankAccount $card */ +NOTE: HTTP method used here is DELETE

/** @var \PayPal\Api\BankAccount $card */ $bankAccount = require 'CreateBankAccount.php'; try {

Delete Card

diff --git a/sample/doc/vault/DeleteCreditCard.html b/sample/doc/vault/DeleteCreditCard.html index 4bf1cf4..cdfb9aa 100644 --- a/sample/doc/vault/DeleteCreditCard.html +++ b/sample/doc/vault/DeleteCreditCard.html @@ -2,7 +2,7 @@

This sample code demonstrate how you can delete a saved credit card. API used: /v1/vault/credit-card/{} -NOTE: HTTP method used here is DELETE

/** @var CreditCard $card */ +NOTE: HTTP method used here is DELETE

/** @var CreditCard $card */ $card = require 'CreateCreditCard.php'; use PayPal\Api\CreditCard; diff --git a/sample/doc/vault/GetBankAccount.html b/sample/doc/vault/GetBankAccount.html index dac25dd..42488d1 100644 --- a/sample/doc/vault/GetBankAccount.html +++ b/sample/doc/vault/GetBankAccount.html @@ -2,7 +2,7 @@

The Bank Account resource allows you to retrieve previously saved Bank Accounts. API called: '/v1/vault/bank-accounts'

The following code takes you through -the process of retrieving a saved Bank Account

/** @var \PayPal\Api\BankAccount $bankAccount */ +the process of retrieving a saved Bank Account

/** @var \PayPal\Api\BankAccount $bankAccount */ $bankAccount = require 'CreateBankAccount.php'; /// ### Retrieve Bank Account

(See bootstrap.php for more on ApiContext)

try { diff --git a/sample/doc/vault/GetCreditCard.html b/sample/doc/vault/GetCreditCard.html index dd1a1cb..7f2c190 100644 --- a/sample/doc/vault/GetCreditCard.html +++ b/sample/doc/vault/GetCreditCard.html @@ -3,7 +3,7 @@ retrieve previously saved CreditCards. API called: '/v1/vault/credit-card' The following code takes you through -the process of retrieving a saved CreditCard

/** @var CreditCard $card */ +the process of retrieving a saved CreditCard

/** @var CreditCard $card */ $card = require 'CreateCreditCard.php'; $id = $card->getId(); diff --git a/sample/doc/vault/ListCreditCards.html b/sample/doc/vault/ListCreditCards.html index 01c5f4b..6104fbd 100644 --- a/sample/doc/vault/ListCreditCards.html +++ b/sample/doc/vault/ListCreditCards.html @@ -2,7 +2,7 @@

The CreditCard resource allows you to retrieve all previously saved CreditCards. API called: '/v1/vault/credit-cards' -Documentation: https://developer.paypal.com/webapps/developer/docs/api/#list-credit-card-resources

Creating a Credit Card just in case

Creating a Credit Card just in case

/** @var CreditCard $card */ $card = require 'CreateCreditCard.php'; use PayPal\Api\CreditCard; diff --git a/sample/doc/vault/UpdateCreditCard.html b/sample/doc/vault/UpdateCreditCard.html index 00e17ac..a997ab0 100644 --- a/sample/doc/vault/UpdateCreditCard.html +++ b/sample/doc/vault/UpdateCreditCard.html @@ -3,7 +3,7 @@ update previously saved CreditCards. API called: PATCH /v1/vault/credit-cards/ The following code takes you through -the process of updating a saved CreditCard

/** @var CreditCard $card */ +the process of updating a saved CreditCard

/** @var CreditCard $card */ $card = require 'CreateCreditCard.php'; $id = $card->getId();