Update third party sample

This commit is contained in:
jaypatel512 and sdcoffey
2016-10-31 16:13:01 -05:00
parent f87c4306cc
commit b67913d0e5
3 changed files with 215 additions and 309 deletions

View File

@@ -6,25 +6,6 @@ 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
tableOfContents = [ tableOfContents = [
{ {
"type": "file",
"data": {
"language": {
"nameMatchers": [{}, ".fbp"],
"pygmentsLexer": "php",
"singleLineComment": ["//"],
"ignorePrefix": "}",
"foldPrefix": "^",
"name": "PHP"
},
"sourcePath": "/Users/scoffey/paypal/server_sdk/PayPal-PHP-SDK/sample/index.php",
"projectPath": "index.php",
"targetPath": "index",
"pageTitle": "index",
"title": "index"
},
"depth": 1,
"outline": []
}, {
"type": "folder", "type": "folder",
"data": { "data": {
"path": "billing", "path": "billing",
@@ -43,7 +24,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": "^", "foldPrefix": "^",
"name": "PHP" "name": "PHP"
}, },
"sourcePath": "/Users/scoffey/paypal/server_sdk/PayPal-PHP-SDK/sample/billing/CreateBillingAgreementWithCreditCard.php", "sourcePath": "/Users/japatel/paypal/github/PayPal-PHP-SDK/sample/billing/CreateBillingAgreementWithCreditCard.php",
"projectPath": "billing/CreateBillingAgreementWithCreditCard.php", "projectPath": "billing/CreateBillingAgreementWithCreditCard.php",
"targetPath": "billing/CreateBillingAgreementWithCreditCard", "targetPath": "billing/CreateBillingAgreementWithCreditCard",
"pageTitle": "billing/CreateBillingAgreementWithCreditCard", "pageTitle": "billing/CreateBillingAgreementWithCreditCard",
@@ -83,7 +64,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": "^", "foldPrefix": "^",
"name": "PHP" "name": "PHP"
}, },
"sourcePath": "/Users/scoffey/paypal/server_sdk/PayPal-PHP-SDK/sample/billing/CreateBillingAgreementWithPayPal.php", "sourcePath": "/Users/japatel/paypal/github/PayPal-PHP-SDK/sample/billing/CreateBillingAgreementWithPayPal.php",
"projectPath": "billing/CreateBillingAgreementWithPayPal.php", "projectPath": "billing/CreateBillingAgreementWithPayPal.php",
"targetPath": "billing/CreateBillingAgreementWithPayPal", "targetPath": "billing/CreateBillingAgreementWithPayPal",
"pageTitle": "billing/CreateBillingAgreementWithPayPal", "pageTitle": "billing/CreateBillingAgreementWithPayPal",
@@ -101,7 +82,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": "^", "foldPrefix": "^",
"name": "PHP" "name": "PHP"
}, },
"sourcePath": "/Users/scoffey/paypal/server_sdk/PayPal-PHP-SDK/sample/billing/CreatePlan.php", "sourcePath": "/Users/japatel/paypal/github/PayPal-PHP-SDK/sample/billing/CreatePlan.php",
"projectPath": "billing/CreatePlan.php", "projectPath": "billing/CreatePlan.php",
"targetPath": "billing/CreatePlan", "targetPath": "billing/CreatePlan",
"pageTitle": "billing/CreatePlan", "pageTitle": "billing/CreatePlan",
@@ -119,7 +100,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": "^", "foldPrefix": "^",
"name": "PHP" "name": "PHP"
}, },
"sourcePath": "/Users/scoffey/paypal/server_sdk/PayPal-PHP-SDK/sample/billing/DeletePlan.php", "sourcePath": "/Users/japatel/paypal/github/PayPal-PHP-SDK/sample/billing/DeletePlan.php",
"projectPath": "billing/DeletePlan.php", "projectPath": "billing/DeletePlan.php",
"targetPath": "billing/DeletePlan", "targetPath": "billing/DeletePlan",
"pageTitle": "billing/DeletePlan", "pageTitle": "billing/DeletePlan",
@@ -137,7 +118,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": "^", "foldPrefix": "^",
"name": "PHP" "name": "PHP"
}, },
"sourcePath": "/Users/scoffey/paypal/server_sdk/PayPal-PHP-SDK/sample/billing/ExecuteAgreement.php", "sourcePath": "/Users/japatel/paypal/github/PayPal-PHP-SDK/sample/billing/ExecuteAgreement.php",
"projectPath": "billing/ExecuteAgreement.php", "projectPath": "billing/ExecuteAgreement.php",
"targetPath": "billing/ExecuteAgreement", "targetPath": "billing/ExecuteAgreement",
"pageTitle": "billing/ExecuteAgreement", "pageTitle": "billing/ExecuteAgreement",
@@ -155,7 +136,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": "^", "foldPrefix": "^",
"name": "PHP" "name": "PHP"
}, },
"sourcePath": "/Users/scoffey/paypal/server_sdk/PayPal-PHP-SDK/sample/billing/GetBillingAgreement.php", "sourcePath": "/Users/japatel/paypal/github/PayPal-PHP-SDK/sample/billing/GetBillingAgreement.php",
"projectPath": "billing/GetBillingAgreement.php", "projectPath": "billing/GetBillingAgreement.php",
"targetPath": "billing/GetBillingAgreement", "targetPath": "billing/GetBillingAgreement",
"pageTitle": "billing/GetBillingAgreement", "pageTitle": "billing/GetBillingAgreement",
@@ -173,7 +154,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": "^", "foldPrefix": "^",
"name": "PHP" "name": "PHP"
}, },
"sourcePath": "/Users/scoffey/paypal/server_sdk/PayPal-PHP-SDK/sample/billing/GetPlan.php", "sourcePath": "/Users/japatel/paypal/github/PayPal-PHP-SDK/sample/billing/GetPlan.php",
"projectPath": "billing/GetPlan.php", "projectPath": "billing/GetPlan.php",
"targetPath": "billing/GetPlan", "targetPath": "billing/GetPlan",
"pageTitle": "billing/GetPlan", "pageTitle": "billing/GetPlan",
@@ -191,7 +172,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": "^", "foldPrefix": "^",
"name": "PHP" "name": "PHP"
}, },
"sourcePath": "/Users/scoffey/paypal/server_sdk/PayPal-PHP-SDK/sample/billing/ListPlans.php", "sourcePath": "/Users/japatel/paypal/github/PayPal-PHP-SDK/sample/billing/ListPlans.php",
"projectPath": "billing/ListPlans.php", "projectPath": "billing/ListPlans.php",
"targetPath": "billing/ListPlans", "targetPath": "billing/ListPlans",
"pageTitle": "billing/ListPlans", "pageTitle": "billing/ListPlans",
@@ -209,7 +190,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": "^", "foldPrefix": "^",
"name": "PHP" "name": "PHP"
}, },
"sourcePath": "/Users/scoffey/paypal/server_sdk/PayPal-PHP-SDK/sample/billing/ReactivateBillingAgreement.php", "sourcePath": "/Users/japatel/paypal/github/PayPal-PHP-SDK/sample/billing/ReactivateBillingAgreement.php",
"projectPath": "billing/ReactivateBillingAgreement.php", "projectPath": "billing/ReactivateBillingAgreement.php",
"targetPath": "billing/ReactivateBillingAgreement", "targetPath": "billing/ReactivateBillingAgreement",
"pageTitle": "billing/ReactivateBillingAgreement", "pageTitle": "billing/ReactivateBillingAgreement",
@@ -227,7 +208,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": "^", "foldPrefix": "^",
"name": "PHP" "name": "PHP"
}, },
"sourcePath": "/Users/scoffey/paypal/server_sdk/PayPal-PHP-SDK/sample/billing/SearchBillingTransactions.php", "sourcePath": "/Users/japatel/paypal/github/PayPal-PHP-SDK/sample/billing/SearchBillingTransactions.php",
"projectPath": "billing/SearchBillingTransactions.php", "projectPath": "billing/SearchBillingTransactions.php",
"targetPath": "billing/SearchBillingTransactions", "targetPath": "billing/SearchBillingTransactions",
"pageTitle": "billing/SearchBillingTransactions", "pageTitle": "billing/SearchBillingTransactions",
@@ -245,7 +226,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": "^", "foldPrefix": "^",
"name": "PHP" "name": "PHP"
}, },
"sourcePath": "/Users/scoffey/paypal/server_sdk/PayPal-PHP-SDK/sample/billing/SuspendBillingAgreement.php", "sourcePath": "/Users/japatel/paypal/github/PayPal-PHP-SDK/sample/billing/SuspendBillingAgreement.php",
"projectPath": "billing/SuspendBillingAgreement.php", "projectPath": "billing/SuspendBillingAgreement.php",
"targetPath": "billing/SuspendBillingAgreement", "targetPath": "billing/SuspendBillingAgreement",
"pageTitle": "billing/SuspendBillingAgreement", "pageTitle": "billing/SuspendBillingAgreement",
@@ -263,7 +244,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": "^", "foldPrefix": "^",
"name": "PHP" "name": "PHP"
}, },
"sourcePath": "/Users/scoffey/paypal/server_sdk/PayPal-PHP-SDK/sample/billing/UpdateBillingAgreement.php", "sourcePath": "/Users/japatel/paypal/github/PayPal-PHP-SDK/sample/billing/UpdateBillingAgreement.php",
"projectPath": "billing/UpdateBillingAgreement.php", "projectPath": "billing/UpdateBillingAgreement.php",
"targetPath": "billing/UpdateBillingAgreement", "targetPath": "billing/UpdateBillingAgreement",
"pageTitle": "billing/UpdateBillingAgreement", "pageTitle": "billing/UpdateBillingAgreement",
@@ -281,7 +262,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": "^", "foldPrefix": "^",
"name": "PHP" "name": "PHP"
}, },
"sourcePath": "/Users/scoffey/paypal/server_sdk/PayPal-PHP-SDK/sample/billing/UpdatePlan.php", "sourcePath": "/Users/japatel/paypal/github/PayPal-PHP-SDK/sample/billing/UpdatePlan.php",
"projectPath": "billing/UpdatePlan.php", "projectPath": "billing/UpdatePlan.php",
"targetPath": "billing/UpdatePlan", "targetPath": "billing/UpdatePlan",
"pageTitle": "billing/UpdatePlan", "pageTitle": "billing/UpdatePlan",
@@ -299,7 +280,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": "^", "foldPrefix": "^",
"name": "PHP" "name": "PHP"
}, },
"sourcePath": "/Users/scoffey/paypal/server_sdk/PayPal-PHP-SDK/sample/billing/UpdatePlanPaymentDefinitions.php", "sourcePath": "/Users/japatel/paypal/github/PayPal-PHP-SDK/sample/billing/UpdatePlanPaymentDefinitions.php",
"projectPath": "billing/UpdatePlanPaymentDefinitions.php", "projectPath": "billing/UpdatePlanPaymentDefinitions.php",
"targetPath": "billing/UpdatePlanPaymentDefinitions", "targetPath": "billing/UpdatePlanPaymentDefinitions",
"pageTitle": "billing/UpdatePlanPaymentDefinitions", "pageTitle": "billing/UpdatePlanPaymentDefinitions",
@@ -308,62 +289,6 @@ 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
"depth": 2 "depth": 2
} }
] ]
}, {
"type": "file",
"data": {
"language": {
"nameMatchers": [{}, ".fbp"],
"pygmentsLexer": "php",
"singleLineComment": ["//"],
"ignorePrefix": "}",
"foldPrefix": "^",
"name": "PHP"
},
"sourcePath": "/Users/scoffey/paypal/server_sdk/PayPal-PHP-SDK/sample/bootstrap.php",
"projectPath": "bootstrap.php",
"targetPath": "bootstrap",
"pageTitle": "bootstrap",
"title": "bootstrap"
},
"depth": 1,
"outline": [
{
"type": "heading",
"data": {
"level": 4,
"title": "SDK configuration",
"slug": "sdk-configuration"
},
"depth": 4
}, {
"type": "heading",
"data": {
"level": 3,
"title": "Api context",
"slug": "api-context"
},
"depth": 3
}
]
}, {
"type": "file",
"data": {
"language": {
"nameMatchers": [{}, ".fbp"],
"pygmentsLexer": "php",
"singleLineComment": ["//"],
"ignorePrefix": "}",
"foldPrefix": "^",
"name": "PHP"
},
"sourcePath": "/Users/scoffey/paypal/server_sdk/PayPal-PHP-SDK/sample/common.php",
"projectPath": "common.php",
"targetPath": "common",
"pageTitle": "common",
"title": "common"
},
"depth": 1,
"outline": []
}, { }, {
"type": "folder", "type": "folder",
"data": { "data": {
@@ -383,7 +308,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": "^", "foldPrefix": "^",
"name": "PHP" "name": "PHP"
}, },
"sourcePath": "/Users/scoffey/paypal/server_sdk/PayPal-PHP-SDK/sample/invoice-templates/CreateInvoiceTemplate.php", "sourcePath": "/Users/japatel/paypal/github/PayPal-PHP-SDK/sample/invoice-templates/CreateInvoiceTemplate.php",
"projectPath": "invoice-templates/CreateInvoiceTemplate.php", "projectPath": "invoice-templates/CreateInvoiceTemplate.php",
"targetPath": "invoice-templates/CreateInvoiceTemplate", "targetPath": "invoice-templates/CreateInvoiceTemplate",
"pageTitle": "invoice-templates/CreateInvoiceTemplate", "pageTitle": "invoice-templates/CreateInvoiceTemplate",
@@ -401,7 +326,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": "^", "foldPrefix": "^",
"name": "PHP" "name": "PHP"
}, },
"sourcePath": "/Users/scoffey/paypal/server_sdk/PayPal-PHP-SDK/sample/invoice-templates/DeleteInvoiceTemplate.php", "sourcePath": "/Users/japatel/paypal/github/PayPal-PHP-SDK/sample/invoice-templates/DeleteInvoiceTemplate.php",
"projectPath": "invoice-templates/DeleteInvoiceTemplate.php", "projectPath": "invoice-templates/DeleteInvoiceTemplate.php",
"targetPath": "invoice-templates/DeleteInvoiceTemplate", "targetPath": "invoice-templates/DeleteInvoiceTemplate",
"pageTitle": "invoice-templates/DeleteInvoiceTemplate", "pageTitle": "invoice-templates/DeleteInvoiceTemplate",
@@ -419,7 +344,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": "^", "foldPrefix": "^",
"name": "PHP" "name": "PHP"
}, },
"sourcePath": "/Users/scoffey/paypal/server_sdk/PayPal-PHP-SDK/sample/invoice-templates/GetAllInvoiceTemplates.php", "sourcePath": "/Users/japatel/paypal/github/PayPal-PHP-SDK/sample/invoice-templates/GetAllInvoiceTemplates.php",
"projectPath": "invoice-templates/GetAllInvoiceTemplates.php", "projectPath": "invoice-templates/GetAllInvoiceTemplates.php",
"targetPath": "invoice-templates/GetAllInvoiceTemplates", "targetPath": "invoice-templates/GetAllInvoiceTemplates",
"pageTitle": "invoice-templates/GetAllInvoiceTemplates", "pageTitle": "invoice-templates/GetAllInvoiceTemplates",
@@ -437,7 +362,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": "^", "foldPrefix": "^",
"name": "PHP" "name": "PHP"
}, },
"sourcePath": "/Users/scoffey/paypal/server_sdk/PayPal-PHP-SDK/sample/invoice-templates/GetInvoiceTemplate.php", "sourcePath": "/Users/japatel/paypal/github/PayPal-PHP-SDK/sample/invoice-templates/GetInvoiceTemplate.php",
"projectPath": "invoice-templates/GetInvoiceTemplate.php", "projectPath": "invoice-templates/GetInvoiceTemplate.php",
"targetPath": "invoice-templates/GetInvoiceTemplate", "targetPath": "invoice-templates/GetInvoiceTemplate",
"pageTitle": "invoice-templates/GetInvoiceTemplate", "pageTitle": "invoice-templates/GetInvoiceTemplate",
@@ -455,7 +380,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": "^", "foldPrefix": "^",
"name": "PHP" "name": "PHP"
}, },
"sourcePath": "/Users/scoffey/paypal/server_sdk/PayPal-PHP-SDK/sample/invoice-templates/UpdateInvoiceTemplate.php", "sourcePath": "/Users/japatel/paypal/github/PayPal-PHP-SDK/sample/invoice-templates/UpdateInvoiceTemplate.php",
"projectPath": "invoice-templates/UpdateInvoiceTemplate.php", "projectPath": "invoice-templates/UpdateInvoiceTemplate.php",
"targetPath": "invoice-templates/UpdateInvoiceTemplate", "targetPath": "invoice-templates/UpdateInvoiceTemplate",
"pageTitle": "invoice-templates/UpdateInvoiceTemplate", "pageTitle": "invoice-templates/UpdateInvoiceTemplate",
@@ -483,7 +408,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": "^", "foldPrefix": "^",
"name": "PHP" "name": "PHP"
}, },
"sourcePath": "/Users/scoffey/paypal/server_sdk/PayPal-PHP-SDK/sample/invoice/CancelInvoice.php", "sourcePath": "/Users/japatel/paypal/github/PayPal-PHP-SDK/sample/invoice/CancelInvoice.php",
"projectPath": "invoice/CancelInvoice.php", "projectPath": "invoice/CancelInvoice.php",
"targetPath": "invoice/CancelInvoice", "targetPath": "invoice/CancelInvoice",
"pageTitle": "invoice/CancelInvoice", "pageTitle": "invoice/CancelInvoice",
@@ -501,7 +426,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": "^", "foldPrefix": "^",
"name": "PHP" "name": "PHP"
}, },
"sourcePath": "/Users/scoffey/paypal/server_sdk/PayPal-PHP-SDK/sample/invoice/CreateInvoice.php", "sourcePath": "/Users/japatel/paypal/github/PayPal-PHP-SDK/sample/invoice/CreateInvoice.php",
"projectPath": "invoice/CreateInvoice.php", "projectPath": "invoice/CreateInvoice.php",
"targetPath": "invoice/CreateInvoice", "targetPath": "invoice/CreateInvoice",
"pageTitle": "invoice/CreateInvoice", "pageTitle": "invoice/CreateInvoice",
@@ -519,7 +444,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": "^", "foldPrefix": "^",
"name": "PHP" "name": "PHP"
}, },
"sourcePath": "/Users/scoffey/paypal/server_sdk/PayPal-PHP-SDK/sample/invoice/CreateThirdPartyInvoice.php", "sourcePath": "/Users/japatel/paypal/github/PayPal-PHP-SDK/sample/invoice/CreateThirdPartyInvoice.php",
"projectPath": "invoice/CreateThirdPartyInvoice.php", "projectPath": "invoice/CreateThirdPartyInvoice.php",
"targetPath": "invoice/CreateThirdPartyInvoice", "targetPath": "invoice/CreateThirdPartyInvoice",
"pageTitle": "invoice/CreateThirdPartyInvoice", "pageTitle": "invoice/CreateThirdPartyInvoice",
@@ -537,7 +462,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": "^", "foldPrefix": "^",
"name": "PHP" "name": "PHP"
}, },
"sourcePath": "/Users/scoffey/paypal/server_sdk/PayPal-PHP-SDK/sample/invoice/DeleteInvoice.php", "sourcePath": "/Users/japatel/paypal/github/PayPal-PHP-SDK/sample/invoice/DeleteInvoice.php",
"projectPath": "invoice/DeleteInvoice.php", "projectPath": "invoice/DeleteInvoice.php",
"targetPath": "invoice/DeleteInvoice", "targetPath": "invoice/DeleteInvoice",
"pageTitle": "invoice/DeleteInvoice", "pageTitle": "invoice/DeleteInvoice",
@@ -555,7 +480,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": "^", "foldPrefix": "^",
"name": "PHP" "name": "PHP"
}, },
"sourcePath": "/Users/scoffey/paypal/server_sdk/PayPal-PHP-SDK/sample/invoice/GetInvoice.php", "sourcePath": "/Users/japatel/paypal/github/PayPal-PHP-SDK/sample/invoice/GetInvoice.php",
"projectPath": "invoice/GetInvoice.php", "projectPath": "invoice/GetInvoice.php",
"targetPath": "invoice/GetInvoice", "targetPath": "invoice/GetInvoice",
"pageTitle": "invoice/GetInvoice", "pageTitle": "invoice/GetInvoice",
@@ -573,7 +498,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": "^", "foldPrefix": "^",
"name": "PHP" "name": "PHP"
}, },
"sourcePath": "/Users/scoffey/paypal/server_sdk/PayPal-PHP-SDK/sample/invoice/GetNextInvoiceNumber.php", "sourcePath": "/Users/japatel/paypal/github/PayPal-PHP-SDK/sample/invoice/GetNextInvoiceNumber.php",
"projectPath": "invoice/GetNextInvoiceNumber.php", "projectPath": "invoice/GetNextInvoiceNumber.php",
"targetPath": "invoice/GetNextInvoiceNumber", "targetPath": "invoice/GetNextInvoiceNumber",
"pageTitle": "invoice/GetNextInvoiceNumber", "pageTitle": "invoice/GetNextInvoiceNumber",
@@ -591,7 +516,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": "^", "foldPrefix": "^",
"name": "PHP" "name": "PHP"
}, },
"sourcePath": "/Users/scoffey/paypal/server_sdk/PayPal-PHP-SDK/sample/invoice/ListInvoice.php", "sourcePath": "/Users/japatel/paypal/github/PayPal-PHP-SDK/sample/invoice/ListInvoice.php",
"projectPath": "invoice/ListInvoice.php", "projectPath": "invoice/ListInvoice.php",
"targetPath": "invoice/ListInvoice", "targetPath": "invoice/ListInvoice",
"pageTitle": "invoice/ListInvoice", "pageTitle": "invoice/ListInvoice",
@@ -609,7 +534,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": "^", "foldPrefix": "^",
"name": "PHP" "name": "PHP"
}, },
"sourcePath": "/Users/scoffey/paypal/server_sdk/PayPal-PHP-SDK/sample/invoice/RecordPayment.php", "sourcePath": "/Users/japatel/paypal/github/PayPal-PHP-SDK/sample/invoice/RecordPayment.php",
"projectPath": "invoice/RecordPayment.php", "projectPath": "invoice/RecordPayment.php",
"targetPath": "invoice/RecordPayment", "targetPath": "invoice/RecordPayment",
"pageTitle": "invoice/RecordPayment", "pageTitle": "invoice/RecordPayment",
@@ -627,7 +552,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": "^", "foldPrefix": "^",
"name": "PHP" "name": "PHP"
}, },
"sourcePath": "/Users/scoffey/paypal/server_sdk/PayPal-PHP-SDK/sample/invoice/RecordRefund.php", "sourcePath": "/Users/japatel/paypal/github/PayPal-PHP-SDK/sample/invoice/RecordRefund.php",
"projectPath": "invoice/RecordRefund.php", "projectPath": "invoice/RecordRefund.php",
"targetPath": "invoice/RecordRefund", "targetPath": "invoice/RecordRefund",
"pageTitle": "invoice/RecordRefund", "pageTitle": "invoice/RecordRefund",
@@ -645,7 +570,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": "^", "foldPrefix": "^",
"name": "PHP" "name": "PHP"
}, },
"sourcePath": "/Users/scoffey/paypal/server_sdk/PayPal-PHP-SDK/sample/invoice/RemindInvoice.php", "sourcePath": "/Users/japatel/paypal/github/PayPal-PHP-SDK/sample/invoice/RemindInvoice.php",
"projectPath": "invoice/RemindInvoice.php", "projectPath": "invoice/RemindInvoice.php",
"targetPath": "invoice/RemindInvoice", "targetPath": "invoice/RemindInvoice",
"pageTitle": "invoice/RemindInvoice", "pageTitle": "invoice/RemindInvoice",
@@ -663,7 +588,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": "^", "foldPrefix": "^",
"name": "PHP" "name": "PHP"
}, },
"sourcePath": "/Users/scoffey/paypal/server_sdk/PayPal-PHP-SDK/sample/invoice/RetrieveQRCode.php", "sourcePath": "/Users/japatel/paypal/github/PayPal-PHP-SDK/sample/invoice/RetrieveQRCode.php",
"projectPath": "invoice/RetrieveQRCode.php", "projectPath": "invoice/RetrieveQRCode.php",
"targetPath": "invoice/RetrieveQRCode", "targetPath": "invoice/RetrieveQRCode",
"pageTitle": "invoice/RetrieveQRCode", "pageTitle": "invoice/RetrieveQRCode",
@@ -681,7 +606,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": "^", "foldPrefix": "^",
"name": "PHP" "name": "PHP"
}, },
"sourcePath": "/Users/scoffey/paypal/server_sdk/PayPal-PHP-SDK/sample/invoice/SearchInvoices.php", "sourcePath": "/Users/japatel/paypal/github/PayPal-PHP-SDK/sample/invoice/SearchInvoices.php",
"projectPath": "invoice/SearchInvoices.php", "projectPath": "invoice/SearchInvoices.php",
"targetPath": "invoice/SearchInvoices", "targetPath": "invoice/SearchInvoices",
"pageTitle": "invoice/SearchInvoices", "pageTitle": "invoice/SearchInvoices",
@@ -699,7 +624,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": "^", "foldPrefix": "^",
"name": "PHP" "name": "PHP"
}, },
"sourcePath": "/Users/scoffey/paypal/server_sdk/PayPal-PHP-SDK/sample/invoice/SendInvoice.php", "sourcePath": "/Users/japatel/paypal/github/PayPal-PHP-SDK/sample/invoice/SendInvoice.php",
"projectPath": "invoice/SendInvoice.php", "projectPath": "invoice/SendInvoice.php",
"targetPath": "invoice/SendInvoice", "targetPath": "invoice/SendInvoice",
"pageTitle": "invoice/SendInvoice", "pageTitle": "invoice/SendInvoice",
@@ -717,7 +642,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": "^", "foldPrefix": "^",
"name": "PHP" "name": "PHP"
}, },
"sourcePath": "/Users/scoffey/paypal/server_sdk/PayPal-PHP-SDK/sample/invoice/UpdateInvoice.php", "sourcePath": "/Users/japatel/paypal/github/PayPal-PHP-SDK/sample/invoice/UpdateInvoice.php",
"projectPath": "invoice/UpdateInvoice.php", "projectPath": "invoice/UpdateInvoice.php",
"targetPath": "invoice/UpdateInvoice", "targetPath": "invoice/UpdateInvoice",
"pageTitle": "invoice/UpdateInvoice", "pageTitle": "invoice/UpdateInvoice",
@@ -745,7 +670,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": "^", "foldPrefix": "^",
"name": "PHP" "name": "PHP"
}, },
"sourcePath": "/Users/scoffey/paypal/server_sdk/PayPal-PHP-SDK/sample/lipp/GenerateAccessTokenFromRefreshToken.php", "sourcePath": "/Users/japatel/paypal/github/PayPal-PHP-SDK/sample/lipp/GenerateAccessTokenFromRefreshToken.php",
"projectPath": "lipp/GenerateAccessTokenFromRefreshToken.php", "projectPath": "lipp/GenerateAccessTokenFromRefreshToken.php",
"targetPath": "lipp/GenerateAccessTokenFromRefreshToken", "targetPath": "lipp/GenerateAccessTokenFromRefreshToken",
"pageTitle": "lipp/GenerateAccessTokenFromRefreshToken", "pageTitle": "lipp/GenerateAccessTokenFromRefreshToken",
@@ -763,7 +688,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": "^", "foldPrefix": "^",
"name": "PHP" "name": "PHP"
}, },
"sourcePath": "/Users/scoffey/paypal/server_sdk/PayPal-PHP-SDK/sample/lipp/GetUserInfo.php", "sourcePath": "/Users/japatel/paypal/github/PayPal-PHP-SDK/sample/lipp/GetUserInfo.php",
"projectPath": "lipp/GetUserInfo.php", "projectPath": "lipp/GetUserInfo.php",
"targetPath": "lipp/GetUserInfo", "targetPath": "lipp/GetUserInfo",
"pageTitle": "lipp/GetUserInfo", "pageTitle": "lipp/GetUserInfo",
@@ -781,7 +706,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": "^", "foldPrefix": "^",
"name": "PHP" "name": "PHP"
}, },
"sourcePath": "/Users/scoffey/paypal/server_sdk/PayPal-PHP-SDK/sample/lipp/ObtainUserConsent.php", "sourcePath": "/Users/japatel/paypal/github/PayPal-PHP-SDK/sample/lipp/ObtainUserConsent.php",
"projectPath": "lipp/ObtainUserConsent.php", "projectPath": "lipp/ObtainUserConsent.php",
"targetPath": "lipp/ObtainUserConsent", "targetPath": "lipp/ObtainUserConsent",
"pageTitle": "lipp/ObtainUserConsent", "pageTitle": "lipp/ObtainUserConsent",
@@ -799,7 +724,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": "^", "foldPrefix": "^",
"name": "PHP" "name": "PHP"
}, },
"sourcePath": "/Users/scoffey/paypal/server_sdk/PayPal-PHP-SDK/sample/lipp/UserConsentRedirect.php", "sourcePath": "/Users/japatel/paypal/github/PayPal-PHP-SDK/sample/lipp/UserConsentRedirect.php",
"projectPath": "lipp/UserConsentRedirect.php", "projectPath": "lipp/UserConsentRedirect.php",
"targetPath": "lipp/UserConsentRedirect", "targetPath": "lipp/UserConsentRedirect",
"pageTitle": "lipp/UserConsentRedirect", "pageTitle": "lipp/UserConsentRedirect",
@@ -827,7 +752,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": "^", "foldPrefix": "^",
"name": "PHP" "name": "PHP"
}, },
"sourcePath": "/Users/scoffey/paypal/server_sdk/PayPal-PHP-SDK/sample/notifications/CreateWebhook.php", "sourcePath": "/Users/japatel/paypal/github/PayPal-PHP-SDK/sample/notifications/CreateWebhook.php",
"projectPath": "notifications/CreateWebhook.php", "projectPath": "notifications/CreateWebhook.php",
"targetPath": "notifications/CreateWebhook", "targetPath": "notifications/CreateWebhook",
"pageTitle": "notifications/CreateWebhook", "pageTitle": "notifications/CreateWebhook",
@@ -845,7 +770,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": "^", "foldPrefix": "^",
"name": "PHP" "name": "PHP"
}, },
"sourcePath": "/Users/scoffey/paypal/server_sdk/PayPal-PHP-SDK/sample/notifications/DeleteAllWebhooks.php", "sourcePath": "/Users/japatel/paypal/github/PayPal-PHP-SDK/sample/notifications/DeleteAllWebhooks.php",
"projectPath": "notifications/DeleteAllWebhooks.php", "projectPath": "notifications/DeleteAllWebhooks.php",
"targetPath": "notifications/DeleteAllWebhooks", "targetPath": "notifications/DeleteAllWebhooks",
"pageTitle": "notifications/DeleteAllWebhooks", "pageTitle": "notifications/DeleteAllWebhooks",
@@ -863,7 +788,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": "^", "foldPrefix": "^",
"name": "PHP" "name": "PHP"
}, },
"sourcePath": "/Users/scoffey/paypal/server_sdk/PayPal-PHP-SDK/sample/notifications/DeleteWebhook.php", "sourcePath": "/Users/japatel/paypal/github/PayPal-PHP-SDK/sample/notifications/DeleteWebhook.php",
"projectPath": "notifications/DeleteWebhook.php", "projectPath": "notifications/DeleteWebhook.php",
"targetPath": "notifications/DeleteWebhook", "targetPath": "notifications/DeleteWebhook",
"pageTitle": "notifications/DeleteWebhook", "pageTitle": "notifications/DeleteWebhook",
@@ -881,7 +806,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": "^", "foldPrefix": "^",
"name": "PHP" "name": "PHP"
}, },
"sourcePath": "/Users/scoffey/paypal/server_sdk/PayPal-PHP-SDK/sample/notifications/GetWebhook.php", "sourcePath": "/Users/japatel/paypal/github/PayPal-PHP-SDK/sample/notifications/GetWebhook.php",
"projectPath": "notifications/GetWebhook.php", "projectPath": "notifications/GetWebhook.php",
"targetPath": "notifications/GetWebhook", "targetPath": "notifications/GetWebhook",
"pageTitle": "notifications/GetWebhook", "pageTitle": "notifications/GetWebhook",
@@ -899,7 +824,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": "^", "foldPrefix": "^",
"name": "PHP" "name": "PHP"
}, },
"sourcePath": "/Users/scoffey/paypal/server_sdk/PayPal-PHP-SDK/sample/notifications/ListSubscribedWebhookEventTypes.php", "sourcePath": "/Users/japatel/paypal/github/PayPal-PHP-SDK/sample/notifications/ListSubscribedWebhookEventTypes.php",
"projectPath": "notifications/ListSubscribedWebhookEventTypes.php", "projectPath": "notifications/ListSubscribedWebhookEventTypes.php",
"targetPath": "notifications/ListSubscribedWebhookEventTypes", "targetPath": "notifications/ListSubscribedWebhookEventTypes",
"pageTitle": "notifications/ListSubscribedWebhookEventTypes", "pageTitle": "notifications/ListSubscribedWebhookEventTypes",
@@ -917,7 +842,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": "^", "foldPrefix": "^",
"name": "PHP" "name": "PHP"
}, },
"sourcePath": "/Users/scoffey/paypal/server_sdk/PayPal-PHP-SDK/sample/notifications/ListWebhooks.php", "sourcePath": "/Users/japatel/paypal/github/PayPal-PHP-SDK/sample/notifications/ListWebhooks.php",
"projectPath": "notifications/ListWebhooks.php", "projectPath": "notifications/ListWebhooks.php",
"targetPath": "notifications/ListWebhooks", "targetPath": "notifications/ListWebhooks",
"pageTitle": "notifications/ListWebhooks", "pageTitle": "notifications/ListWebhooks",
@@ -935,7 +860,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": "^", "foldPrefix": "^",
"name": "PHP" "name": "PHP"
}, },
"sourcePath": "/Users/scoffey/paypal/server_sdk/PayPal-PHP-SDK/sample/notifications/SearchWebhookEvents.php", "sourcePath": "/Users/japatel/paypal/github/PayPal-PHP-SDK/sample/notifications/SearchWebhookEvents.php",
"projectPath": "notifications/SearchWebhookEvents.php", "projectPath": "notifications/SearchWebhookEvents.php",
"targetPath": "notifications/SearchWebhookEvents", "targetPath": "notifications/SearchWebhookEvents",
"pageTitle": "notifications/SearchWebhookEvents", "pageTitle": "notifications/SearchWebhookEvents",
@@ -953,7 +878,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": "^", "foldPrefix": "^",
"name": "PHP" "name": "PHP"
}, },
"sourcePath": "/Users/scoffey/paypal/server_sdk/PayPal-PHP-SDK/sample/notifications/UpdateWebhook.php", "sourcePath": "/Users/japatel/paypal/github/PayPal-PHP-SDK/sample/notifications/UpdateWebhook.php",
"projectPath": "notifications/UpdateWebhook.php", "projectPath": "notifications/UpdateWebhook.php",
"targetPath": "notifications/UpdateWebhook", "targetPath": "notifications/UpdateWebhook",
"pageTitle": "notifications/UpdateWebhook", "pageTitle": "notifications/UpdateWebhook",
@@ -971,24 +896,13 @@ 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": "^", "foldPrefix": "^",
"name": "PHP" "name": "PHP"
}, },
"sourcePath": "/Users/scoffey/paypal/server_sdk/PayPal-PHP-SDK/sample/notifications/ValidateWebhookEvent.php", "sourcePath": "/Users/japatel/paypal/github/PayPal-PHP-SDK/sample/notifications/ValidateWebhookEvent.php",
"projectPath": "notifications/ValidateWebhookEvent.php", "projectPath": "notifications/ValidateWebhookEvent.php",
"targetPath": "notifications/ValidateWebhookEvent", "targetPath": "notifications/ValidateWebhookEvent",
"pageTitle": "notifications/ValidateWebhookEvent", "pageTitle": "notifications/ValidateWebhookEvent",
"title": "ValidateWebhookEvent" "title": "ValidateWebhookEvent"
}, },
"depth": 2, "depth": 2
"outline": [
{
"type": "heading",
"data": {
"level": 1,
"title": "Validate Webhook",
"slug": "validate-webhook"
},
"depth": 1
}
]
}, { }, {
"type": "file", "type": "file",
"data": { "data": {
@@ -1000,7 +914,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": "^", "foldPrefix": "^",
"name": "PHP" "name": "PHP"
}, },
"sourcePath": "/Users/scoffey/paypal/server_sdk/PayPal-PHP-SDK/sample/notifications/WebhookEventTypesList.php", "sourcePath": "/Users/japatel/paypal/github/PayPal-PHP-SDK/sample/notifications/WebhookEventTypesList.php",
"projectPath": "notifications/WebhookEventTypesList.php", "projectPath": "notifications/WebhookEventTypesList.php",
"targetPath": "notifications/WebhookEventTypesList", "targetPath": "notifications/WebhookEventTypesList",
"pageTitle": "notifications/WebhookEventTypesList", "pageTitle": "notifications/WebhookEventTypesList",
@@ -1028,7 +942,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": "^", "foldPrefix": "^",
"name": "PHP" "name": "PHP"
}, },
"sourcePath": "/Users/scoffey/paypal/server_sdk/PayPal-PHP-SDK/sample/payment-experience/CreateWebProfile.php", "sourcePath": "/Users/japatel/paypal/github/PayPal-PHP-SDK/sample/payment-experience/CreateWebProfile.php",
"projectPath": "payment-experience/CreateWebProfile.php", "projectPath": "payment-experience/CreateWebProfile.php",
"targetPath": "payment-experience/CreateWebProfile", "targetPath": "payment-experience/CreateWebProfile",
"pageTitle": "payment-experience/CreateWebProfile", "pageTitle": "payment-experience/CreateWebProfile",
@@ -1046,7 +960,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": "^", "foldPrefix": "^",
"name": "PHP" "name": "PHP"
}, },
"sourcePath": "/Users/scoffey/paypal/server_sdk/PayPal-PHP-SDK/sample/payment-experience/DeleteWebProfile.php", "sourcePath": "/Users/japatel/paypal/github/PayPal-PHP-SDK/sample/payment-experience/DeleteWebProfile.php",
"projectPath": "payment-experience/DeleteWebProfile.php", "projectPath": "payment-experience/DeleteWebProfile.php",
"targetPath": "payment-experience/DeleteWebProfile", "targetPath": "payment-experience/DeleteWebProfile",
"pageTitle": "payment-experience/DeleteWebProfile", "pageTitle": "payment-experience/DeleteWebProfile",
@@ -1064,7 +978,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": "^", "foldPrefix": "^",
"name": "PHP" "name": "PHP"
}, },
"sourcePath": "/Users/scoffey/paypal/server_sdk/PayPal-PHP-SDK/sample/payment-experience/GetWebProfile.php", "sourcePath": "/Users/japatel/paypal/github/PayPal-PHP-SDK/sample/payment-experience/GetWebProfile.php",
"projectPath": "payment-experience/GetWebProfile.php", "projectPath": "payment-experience/GetWebProfile.php",
"targetPath": "payment-experience/GetWebProfile", "targetPath": "payment-experience/GetWebProfile",
"pageTitle": "payment-experience/GetWebProfile", "pageTitle": "payment-experience/GetWebProfile",
@@ -1082,7 +996,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": "^", "foldPrefix": "^",
"name": "PHP" "name": "PHP"
}, },
"sourcePath": "/Users/scoffey/paypal/server_sdk/PayPal-PHP-SDK/sample/payment-experience/ListWebProfiles.php", "sourcePath": "/Users/japatel/paypal/github/PayPal-PHP-SDK/sample/payment-experience/ListWebProfiles.php",
"projectPath": "payment-experience/ListWebProfiles.php", "projectPath": "payment-experience/ListWebProfiles.php",
"targetPath": "payment-experience/ListWebProfiles", "targetPath": "payment-experience/ListWebProfiles",
"pageTitle": "payment-experience/ListWebProfiles", "pageTitle": "payment-experience/ListWebProfiles",
@@ -1100,7 +1014,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": "^", "foldPrefix": "^",
"name": "PHP" "name": "PHP"
}, },
"sourcePath": "/Users/scoffey/paypal/server_sdk/PayPal-PHP-SDK/sample/payment-experience/PartiallyUpdateWebProfile.php", "sourcePath": "/Users/japatel/paypal/github/PayPal-PHP-SDK/sample/payment-experience/PartiallyUpdateWebProfile.php",
"projectPath": "payment-experience/PartiallyUpdateWebProfile.php", "projectPath": "payment-experience/PartiallyUpdateWebProfile.php",
"targetPath": "payment-experience/PartiallyUpdateWebProfile", "targetPath": "payment-experience/PartiallyUpdateWebProfile",
"pageTitle": "payment-experience/PartiallyUpdateWebProfile", "pageTitle": "payment-experience/PartiallyUpdateWebProfile",
@@ -1118,7 +1032,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": "^", "foldPrefix": "^",
"name": "PHP" "name": "PHP"
}, },
"sourcePath": "/Users/scoffey/paypal/server_sdk/PayPal-PHP-SDK/sample/payment-experience/UpdateWebProfile.php", "sourcePath": "/Users/japatel/paypal/github/PayPal-PHP-SDK/sample/payment-experience/UpdateWebProfile.php",
"projectPath": "payment-experience/UpdateWebProfile.php", "projectPath": "payment-experience/UpdateWebProfile.php",
"targetPath": "payment-experience/UpdateWebProfile", "targetPath": "payment-experience/UpdateWebProfile",
"pageTitle": "payment-experience/UpdateWebProfile", "pageTitle": "payment-experience/UpdateWebProfile",
@@ -1146,7 +1060,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": "^", "foldPrefix": "^",
"name": "PHP" "name": "PHP"
}, },
"sourcePath": "/Users/scoffey/paypal/server_sdk/PayPal-PHP-SDK/sample/payments/AuthorizationCapture.php", "sourcePath": "/Users/japatel/paypal/github/PayPal-PHP-SDK/sample/payments/AuthorizationCapture.php",
"projectPath": "payments/AuthorizationCapture.php", "projectPath": "payments/AuthorizationCapture.php",
"targetPath": "payments/AuthorizationCapture", "targetPath": "payments/AuthorizationCapture",
"pageTitle": "payments/AuthorizationCapture", "pageTitle": "payments/AuthorizationCapture",
@@ -1164,35 +1078,13 @@ 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": "^", "foldPrefix": "^",
"name": "PHP" "name": "PHP"
}, },
"sourcePath": "/Users/scoffey/paypal/server_sdk/PayPal-PHP-SDK/sample/payments/AuthorizePayment.php", "sourcePath": "/Users/japatel/paypal/github/PayPal-PHP-SDK/sample/payments/AuthorizePayment.php",
"projectPath": "payments/AuthorizePayment.php", "projectPath": "payments/AuthorizePayment.php",
"targetPath": "payments/AuthorizePayment", "targetPath": "payments/AuthorizePayment",
"pageTitle": "payments/AuthorizePayment", "pageTitle": "payments/AuthorizePayment",
"title": "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", "type": "file",
"data": { "data": {
@@ -1204,7 +1096,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": "^", "foldPrefix": "^",
"name": "PHP" "name": "PHP"
}, },
"sourcePath": "/Users/scoffey/paypal/server_sdk/PayPal-PHP-SDK/sample/payments/AuthorizePaymentUsingPayPal.php", "sourcePath": "/Users/japatel/paypal/github/PayPal-PHP-SDK/sample/payments/AuthorizePaymentUsingPayPal.php",
"projectPath": "payments/AuthorizePaymentUsingPayPal.php", "projectPath": "payments/AuthorizePaymentUsingPayPal.php",
"targetPath": "payments/AuthorizePaymentUsingPayPal", "targetPath": "payments/AuthorizePaymentUsingPayPal",
"pageTitle": "payments/AuthorizePaymentUsingPayPal", "pageTitle": "payments/AuthorizePaymentUsingPayPal",
@@ -1222,7 +1114,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": "^", "foldPrefix": "^",
"name": "PHP" "name": "PHP"
}, },
"sourcePath": "/Users/scoffey/paypal/server_sdk/PayPal-PHP-SDK/sample/payments/CreateFuturePayment.php", "sourcePath": "/Users/japatel/paypal/github/PayPal-PHP-SDK/sample/payments/CreateFuturePayment.php",
"projectPath": "payments/CreateFuturePayment.php", "projectPath": "payments/CreateFuturePayment.php",
"targetPath": "payments/CreateFuturePayment", "targetPath": "payments/CreateFuturePayment",
"pageTitle": "payments/CreateFuturePayment", "pageTitle": "payments/CreateFuturePayment",
@@ -1240,7 +1132,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": "^", "foldPrefix": "^",
"name": "PHP" "name": "PHP"
}, },
"sourcePath": "/Users/scoffey/paypal/server_sdk/PayPal-PHP-SDK/sample/payments/CreatePayment.php", "sourcePath": "/Users/japatel/paypal/github/PayPal-PHP-SDK/sample/payments/CreatePayment.php",
"projectPath": "payments/CreatePayment.php", "projectPath": "payments/CreatePayment.php",
"targetPath": "payments/CreatePayment", "targetPath": "payments/CreatePayment",
"pageTitle": "payments/CreatePayment", "pageTitle": "payments/CreatePayment",
@@ -1344,7 +1236,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": "^", "foldPrefix": "^",
"name": "PHP" "name": "PHP"
}, },
"sourcePath": "/Users/scoffey/paypal/server_sdk/PayPal-PHP-SDK/sample/payments/CreatePaymentUsingPayPal.php", "sourcePath": "/Users/japatel/paypal/github/PayPal-PHP-SDK/sample/payments/CreatePaymentUsingPayPal.php",
"projectPath": "payments/CreatePaymentUsingPayPal.php", "projectPath": "payments/CreatePaymentUsingPayPal.php",
"targetPath": "payments/CreatePaymentUsingPayPal", "targetPath": "payments/CreatePaymentUsingPayPal",
"pageTitle": "payments/CreatePaymentUsingPayPal", "pageTitle": "payments/CreatePaymentUsingPayPal",
@@ -1362,7 +1254,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": "^", "foldPrefix": "^",
"name": "PHP" "name": "PHP"
}, },
"sourcePath": "/Users/scoffey/paypal/server_sdk/PayPal-PHP-SDK/sample/payments/CreatePaymentUsingSavedCard.php", "sourcePath": "/Users/japatel/paypal/github/PayPal-PHP-SDK/sample/payments/CreatePaymentUsingSavedCard.php",
"projectPath": "payments/CreatePaymentUsingSavedCard.php", "projectPath": "payments/CreatePaymentUsingSavedCard.php",
"targetPath": "payments/CreatePaymentUsingSavedCard", "targetPath": "payments/CreatePaymentUsingSavedCard",
"pageTitle": "payments/CreatePaymentUsingSavedCard", "pageTitle": "payments/CreatePaymentUsingSavedCard",
@@ -1380,7 +1272,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": "^", "foldPrefix": "^",
"name": "PHP" "name": "PHP"
}, },
"sourcePath": "/Users/scoffey/paypal/server_sdk/PayPal-PHP-SDK/sample/payments/CreateThirdPartyPayment.php", "sourcePath": "/Users/japatel/paypal/github/PayPal-PHP-SDK/sample/payments/CreateThirdPartyPayment.php",
"projectPath": "payments/CreateThirdPartyPayment.php", "projectPath": "payments/CreateThirdPartyPayment.php",
"targetPath": "payments/CreateThirdPartyPayment", "targetPath": "payments/CreateThirdPartyPayment",
"pageTitle": "payments/CreateThirdPartyPayment", "pageTitle": "payments/CreateThirdPartyPayment",
@@ -1392,28 +1284,12 @@ 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
"type": "heading", "type": "heading",
"data": { "data": {
"level": 1, "level": 1,
"title": "CreatePaymentSample", "title": "Create Third Party Payment using PayPal as payment method",
"slug": "createpaymentsample" "slug": "create-third-party-payment-using-paypal-as-payment-method"
}, },
"depth": 1, "depth": 1,
"children": [ "children": [
{ {
"type": "heading",
"data": {
"level": 3,
"title": "PaymentCard",
"slug": "paymentcard"
},
"depth": 3
}, {
"type": "heading",
"data": {
"level": 3,
"title": "FundingInstrument",
"slug": "fundinginstrument"
},
"depth": 3
}, {
"type": "heading", "type": "heading",
"data": { "data": {
"level": 3, "level": 3,
@@ -1461,6 +1337,14 @@ 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
"slug": "transaction" "slug": "transaction"
}, },
"depth": 3 "depth": 3
}, {
"type": "heading",
"data": {
"level": 3,
"title": "Redirect urls",
"slug": "redirect-urls"
},
"depth": 3
}, { }, {
"type": "heading", "type": "heading",
"data": { "data": {
@@ -1477,6 +1361,14 @@ 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
"slug": "create-payment" "slug": "create-payment"
}, },
"depth": 3 "depth": 3
}, {
"type": "heading",
"data": {
"level": 3,
"title": "Get redirect url",
"slug": "get-redirect-url"
},
"depth": 3
} }
] ]
} }
@@ -1492,7 +1384,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": "^", "foldPrefix": "^",
"name": "PHP" "name": "PHP"
}, },
"sourcePath": "/Users/scoffey/paypal/server_sdk/PayPal-PHP-SDK/sample/payments/ExecutePayment.php", "sourcePath": "/Users/japatel/paypal/github/PayPal-PHP-SDK/sample/payments/ExecutePayment.php",
"projectPath": "payments/ExecutePayment.php", "projectPath": "payments/ExecutePayment.php",
"targetPath": "payments/ExecutePayment", "targetPath": "payments/ExecutePayment",
"pageTitle": "payments/ExecutePayment", "pageTitle": "payments/ExecutePayment",
@@ -1510,7 +1402,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": "^", "foldPrefix": "^",
"name": "PHP" "name": "PHP"
}, },
"sourcePath": "/Users/scoffey/paypal/server_sdk/PayPal-PHP-SDK/sample/payments/GetAuthorization.php", "sourcePath": "/Users/japatel/paypal/github/PayPal-PHP-SDK/sample/payments/GetAuthorization.php",
"projectPath": "payments/GetAuthorization.php", "projectPath": "payments/GetAuthorization.php",
"targetPath": "payments/GetAuthorization", "targetPath": "payments/GetAuthorization",
"pageTitle": "payments/GetAuthorization", "pageTitle": "payments/GetAuthorization",
@@ -1528,7 +1420,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": "^", "foldPrefix": "^",
"name": "PHP" "name": "PHP"
}, },
"sourcePath": "/Users/scoffey/paypal/server_sdk/PayPal-PHP-SDK/sample/payments/GetCapture.php", "sourcePath": "/Users/japatel/paypal/github/PayPal-PHP-SDK/sample/payments/GetCapture.php",
"projectPath": "payments/GetCapture.php", "projectPath": "payments/GetCapture.php",
"targetPath": "payments/GetCapture", "targetPath": "payments/GetCapture",
"pageTitle": "payments/GetCapture", "pageTitle": "payments/GetCapture",
@@ -1546,7 +1438,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": "^", "foldPrefix": "^",
"name": "PHP" "name": "PHP"
}, },
"sourcePath": "/Users/scoffey/paypal/server_sdk/PayPal-PHP-SDK/sample/payments/GetPayment.php", "sourcePath": "/Users/japatel/paypal/github/PayPal-PHP-SDK/sample/payments/GetPayment.php",
"projectPath": "payments/GetPayment.php", "projectPath": "payments/GetPayment.php",
"targetPath": "payments/GetPayment", "targetPath": "payments/GetPayment",
"pageTitle": "payments/GetPayment", "pageTitle": "payments/GetPayment",
@@ -1586,7 +1478,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": "^", "foldPrefix": "^",
"name": "PHP" "name": "PHP"
}, },
"sourcePath": "/Users/scoffey/paypal/server_sdk/PayPal-PHP-SDK/sample/payments/ListPayments.php", "sourcePath": "/Users/japatel/paypal/github/PayPal-PHP-SDK/sample/payments/ListPayments.php",
"projectPath": "payments/ListPayments.php", "projectPath": "payments/ListPayments.php",
"targetPath": "payments/ListPayments", "targetPath": "payments/ListPayments",
"pageTitle": "payments/ListPayments", "pageTitle": "payments/ListPayments",
@@ -1604,7 +1496,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": "^", "foldPrefix": "^",
"name": "PHP" "name": "PHP"
}, },
"sourcePath": "/Users/scoffey/paypal/server_sdk/PayPal-PHP-SDK/sample/payments/OrderAuthorize.php", "sourcePath": "/Users/japatel/paypal/github/PayPal-PHP-SDK/sample/payments/OrderAuthorize.php",
"projectPath": "payments/OrderAuthorize.php", "projectPath": "payments/OrderAuthorize.php",
"targetPath": "payments/OrderAuthorize", "targetPath": "payments/OrderAuthorize",
"pageTitle": "payments/OrderAuthorize", "pageTitle": "payments/OrderAuthorize",
@@ -1622,7 +1514,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": "^", "foldPrefix": "^",
"name": "PHP" "name": "PHP"
}, },
"sourcePath": "/Users/scoffey/paypal/server_sdk/PayPal-PHP-SDK/sample/payments/OrderCapture.php", "sourcePath": "/Users/japatel/paypal/github/PayPal-PHP-SDK/sample/payments/OrderCapture.php",
"projectPath": "payments/OrderCapture.php", "projectPath": "payments/OrderCapture.php",
"targetPath": "payments/OrderCapture", "targetPath": "payments/OrderCapture",
"pageTitle": "payments/OrderCapture", "pageTitle": "payments/OrderCapture",
@@ -1640,7 +1532,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": "^", "foldPrefix": "^",
"name": "PHP" "name": "PHP"
}, },
"sourcePath": "/Users/scoffey/paypal/server_sdk/PayPal-PHP-SDK/sample/payments/OrderCreateForAuthorization.php", "sourcePath": "/Users/japatel/paypal/github/PayPal-PHP-SDK/sample/payments/OrderCreateForAuthorization.php",
"projectPath": "payments/OrderCreateForAuthorization.php", "projectPath": "payments/OrderCreateForAuthorization.php",
"targetPath": "payments/OrderCreateForAuthorization", "targetPath": "payments/OrderCreateForAuthorization",
"pageTitle": "payments/OrderCreateForAuthorization", "pageTitle": "payments/OrderCreateForAuthorization",
@@ -1658,7 +1550,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": "^", "foldPrefix": "^",
"name": "PHP" "name": "PHP"
}, },
"sourcePath": "/Users/scoffey/paypal/server_sdk/PayPal-PHP-SDK/sample/payments/OrderCreateForCapture.php", "sourcePath": "/Users/japatel/paypal/github/PayPal-PHP-SDK/sample/payments/OrderCreateForCapture.php",
"projectPath": "payments/OrderCreateForCapture.php", "projectPath": "payments/OrderCreateForCapture.php",
"targetPath": "payments/OrderCreateForCapture", "targetPath": "payments/OrderCreateForCapture",
"pageTitle": "payments/OrderCreateForCapture", "pageTitle": "payments/OrderCreateForCapture",
@@ -1676,7 +1568,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": "^", "foldPrefix": "^",
"name": "PHP" "name": "PHP"
}, },
"sourcePath": "/Users/scoffey/paypal/server_sdk/PayPal-PHP-SDK/sample/payments/OrderCreateForVoid.php", "sourcePath": "/Users/japatel/paypal/github/PayPal-PHP-SDK/sample/payments/OrderCreateForVoid.php",
"projectPath": "payments/OrderCreateForVoid.php", "projectPath": "payments/OrderCreateForVoid.php",
"targetPath": "payments/OrderCreateForVoid", "targetPath": "payments/OrderCreateForVoid",
"pageTitle": "payments/OrderCreateForVoid", "pageTitle": "payments/OrderCreateForVoid",
@@ -1694,7 +1586,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": "^", "foldPrefix": "^",
"name": "PHP" "name": "PHP"
}, },
"sourcePath": "/Users/scoffey/paypal/server_sdk/PayPal-PHP-SDK/sample/payments/OrderCreateUsingPayPal.php", "sourcePath": "/Users/japatel/paypal/github/PayPal-PHP-SDK/sample/payments/OrderCreateUsingPayPal.php",
"projectPath": "payments/OrderCreateUsingPayPal.php", "projectPath": "payments/OrderCreateUsingPayPal.php",
"targetPath": "payments/OrderCreateUsingPayPal", "targetPath": "payments/OrderCreateUsingPayPal",
"pageTitle": "payments/OrderCreateUsingPayPal", "pageTitle": "payments/OrderCreateUsingPayPal",
@@ -1712,7 +1604,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": "^", "foldPrefix": "^",
"name": "PHP" "name": "PHP"
}, },
"sourcePath": "/Users/scoffey/paypal/server_sdk/PayPal-PHP-SDK/sample/payments/OrderDoVoid.php", "sourcePath": "/Users/japatel/paypal/github/PayPal-PHP-SDK/sample/payments/OrderDoVoid.php",
"projectPath": "payments/OrderDoVoid.php", "projectPath": "payments/OrderDoVoid.php",
"targetPath": "payments/OrderDoVoid", "targetPath": "payments/OrderDoVoid",
"pageTitle": "payments/OrderDoVoid", "pageTitle": "payments/OrderDoVoid",
@@ -1730,7 +1622,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": "^", "foldPrefix": "^",
"name": "PHP" "name": "PHP"
}, },
"sourcePath": "/Users/scoffey/paypal/server_sdk/PayPal-PHP-SDK/sample/payments/OrderGet.php", "sourcePath": "/Users/japatel/paypal/github/PayPal-PHP-SDK/sample/payments/OrderGet.php",
"projectPath": "payments/OrderGet.php", "projectPath": "payments/OrderGet.php",
"targetPath": "payments/OrderGet", "targetPath": "payments/OrderGet",
"pageTitle": "payments/OrderGet", "pageTitle": "payments/OrderGet",
@@ -1748,7 +1640,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": "^", "foldPrefix": "^",
"name": "PHP" "name": "PHP"
}, },
"sourcePath": "/Users/scoffey/paypal/server_sdk/PayPal-PHP-SDK/sample/payments/Reauthorization.php", "sourcePath": "/Users/japatel/paypal/github/PayPal-PHP-SDK/sample/payments/Reauthorization.php",
"projectPath": "payments/Reauthorization.php", "projectPath": "payments/Reauthorization.php",
"targetPath": "payments/Reauthorization", "targetPath": "payments/Reauthorization",
"pageTitle": "payments/Reauthorization", "pageTitle": "payments/Reauthorization",
@@ -1766,7 +1658,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": "^", "foldPrefix": "^",
"name": "PHP" "name": "PHP"
}, },
"sourcePath": "/Users/scoffey/paypal/server_sdk/PayPal-PHP-SDK/sample/payments/RefundCapture.php", "sourcePath": "/Users/japatel/paypal/github/PayPal-PHP-SDK/sample/payments/RefundCapture.php",
"projectPath": "payments/RefundCapture.php", "projectPath": "payments/RefundCapture.php",
"targetPath": "payments/RefundCapture", "targetPath": "payments/RefundCapture",
"pageTitle": "payments/RefundCapture", "pageTitle": "payments/RefundCapture",
@@ -1806,7 +1698,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": "^", "foldPrefix": "^",
"name": "PHP" "name": "PHP"
}, },
"sourcePath": "/Users/scoffey/paypal/server_sdk/PayPal-PHP-SDK/sample/payments/UpdatePayment.php", "sourcePath": "/Users/japatel/paypal/github/PayPal-PHP-SDK/sample/payments/UpdatePayment.php",
"projectPath": "payments/UpdatePayment.php", "projectPath": "payments/UpdatePayment.php",
"targetPath": "payments/UpdatePayment", "targetPath": "payments/UpdatePayment",
"pageTitle": "payments/UpdatePayment", "pageTitle": "payments/UpdatePayment",
@@ -1824,7 +1716,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": "^", "foldPrefix": "^",
"name": "PHP" "name": "PHP"
}, },
"sourcePath": "/Users/scoffey/paypal/server_sdk/PayPal-PHP-SDK/sample/payments/VoidAuthorization.php", "sourcePath": "/Users/japatel/paypal/github/PayPal-PHP-SDK/sample/payments/VoidAuthorization.php",
"projectPath": "payments/VoidAuthorization.php", "projectPath": "payments/VoidAuthorization.php",
"targetPath": "payments/VoidAuthorization", "targetPath": "payments/VoidAuthorization",
"pageTitle": "payments/VoidAuthorization", "pageTitle": "payments/VoidAuthorization",
@@ -1852,7 +1744,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": "^", "foldPrefix": "^",
"name": "PHP" "name": "PHP"
}, },
"sourcePath": "/Users/scoffey/paypal/server_sdk/PayPal-PHP-SDK/sample/payouts/CancelPayoutItem.php", "sourcePath": "/Users/japatel/paypal/github/PayPal-PHP-SDK/sample/payouts/CancelPayoutItem.php",
"projectPath": "payouts/CancelPayoutItem.php", "projectPath": "payouts/CancelPayoutItem.php",
"targetPath": "payouts/CancelPayoutItem", "targetPath": "payouts/CancelPayoutItem",
"pageTitle": "payouts/CancelPayoutItem", "pageTitle": "payouts/CancelPayoutItem",
@@ -1870,7 +1762,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": "^", "foldPrefix": "^",
"name": "PHP" "name": "PHP"
}, },
"sourcePath": "/Users/scoffey/paypal/server_sdk/PayPal-PHP-SDK/sample/payouts/CreateBatchPayout.php", "sourcePath": "/Users/japatel/paypal/github/PayPal-PHP-SDK/sample/payouts/CreateBatchPayout.php",
"projectPath": "payouts/CreateBatchPayout.php", "projectPath": "payouts/CreateBatchPayout.php",
"targetPath": "payouts/CreateBatchPayout", "targetPath": "payouts/CreateBatchPayout",
"pageTitle": "payouts/CreateBatchPayout", "pageTitle": "payouts/CreateBatchPayout",
@@ -1888,7 +1780,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": "^", "foldPrefix": "^",
"name": "PHP" "name": "PHP"
}, },
"sourcePath": "/Users/scoffey/paypal/server_sdk/PayPal-PHP-SDK/sample/payouts/CreateSinglePayout.php", "sourcePath": "/Users/japatel/paypal/github/PayPal-PHP-SDK/sample/payouts/CreateSinglePayout.php",
"projectPath": "payouts/CreateSinglePayout.php", "projectPath": "payouts/CreateSinglePayout.php",
"targetPath": "payouts/CreateSinglePayout", "targetPath": "payouts/CreateSinglePayout",
"pageTitle": "payouts/CreateSinglePayout", "pageTitle": "payouts/CreateSinglePayout",
@@ -1906,7 +1798,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": "^", "foldPrefix": "^",
"name": "PHP" "name": "PHP"
}, },
"sourcePath": "/Users/scoffey/paypal/server_sdk/PayPal-PHP-SDK/sample/payouts/GetPayoutBatchStatus.php", "sourcePath": "/Users/japatel/paypal/github/PayPal-PHP-SDK/sample/payouts/GetPayoutBatchStatus.php",
"projectPath": "payouts/GetPayoutBatchStatus.php", "projectPath": "payouts/GetPayoutBatchStatus.php",
"targetPath": "payouts/GetPayoutBatchStatus", "targetPath": "payouts/GetPayoutBatchStatus",
"pageTitle": "payouts/GetPayoutBatchStatus", "pageTitle": "payouts/GetPayoutBatchStatus",
@@ -1924,7 +1816,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": "^", "foldPrefix": "^",
"name": "PHP" "name": "PHP"
}, },
"sourcePath": "/Users/scoffey/paypal/server_sdk/PayPal-PHP-SDK/sample/payouts/GetPayoutItemStatus.php", "sourcePath": "/Users/japatel/paypal/github/PayPal-PHP-SDK/sample/payouts/GetPayoutItemStatus.php",
"projectPath": "payouts/GetPayoutItemStatus.php", "projectPath": "payouts/GetPayoutItemStatus.php",
"targetPath": "payouts/GetPayoutItemStatus", "targetPath": "payouts/GetPayoutItemStatus",
"pageTitle": "payouts/GetPayoutItemStatus", "pageTitle": "payouts/GetPayoutItemStatus",
@@ -1952,13 +1844,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": "^", "foldPrefix": "^",
"name": "PHP" "name": "PHP"
}, },
"sourcePath": "/Users/scoffey/paypal/server_sdk/PayPal-PHP-SDK/sample/sale/GetSale.php", "sourcePath": "/Users/japatel/paypal/github/PayPal-PHP-SDK/sample/sale/GetSale.php",
"projectPath": "sale/GetSale.php", "projectPath": "sale/GetSale.php",
"targetPath": "sale/GetSale", "targetPath": "sale/GetSale",
"pageTitle": "sale/GetSale", "pageTitle": "sale/GetSale",
"title": "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", "type": "file",
"data": { "data": {
@@ -1970,7 +1892,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": "^", "foldPrefix": "^",
"name": "PHP" "name": "PHP"
}, },
"sourcePath": "/Users/scoffey/paypal/server_sdk/PayPal-PHP-SDK/sample/sale/RefundSale.php", "sourcePath": "/Users/japatel/paypal/github/PayPal-PHP-SDK/sample/sale/RefundSale.php",
"projectPath": "sale/RefundSale.php", "projectPath": "sale/RefundSale.php",
"targetPath": "sale/RefundSale", "targetPath": "sale/RefundSale",
"pageTitle": "sale/RefundSale", "pageTitle": "sale/RefundSale",
@@ -2036,7 +1958,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": "^", "foldPrefix": "^",
"name": "PHP" "name": "PHP"
}, },
"sourcePath": "/Users/scoffey/paypal/server_sdk/PayPal-PHP-SDK/sample/tls/TlsCheck.php", "sourcePath": "/Users/japatel/paypal/github/PayPal-PHP-SDK/sample/tls/TlsCheck.php",
"projectPath": "tls/TlsCheck.php", "projectPath": "tls/TlsCheck.php",
"targetPath": "tls/TlsCheck", "targetPath": "tls/TlsCheck",
"pageTitle": "tls/TlsCheck", "pageTitle": "tls/TlsCheck",
@@ -2064,7 +1986,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": "^", "foldPrefix": "^",
"name": "PHP" "name": "PHP"
}, },
"sourcePath": "/Users/scoffey/paypal/server_sdk/PayPal-PHP-SDK/sample/vault/CreateBankAccount.php", "sourcePath": "/Users/japatel/paypal/github/PayPal-PHP-SDK/sample/vault/CreateBankAccount.php",
"projectPath": "vault/CreateBankAccount.php", "projectPath": "vault/CreateBankAccount.php",
"targetPath": "vault/CreateBankAccount", "targetPath": "vault/CreateBankAccount",
"pageTitle": "vault/CreateBankAccount", "pageTitle": "vault/CreateBankAccount",
@@ -2082,7 +2004,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": "^", "foldPrefix": "^",
"name": "PHP" "name": "PHP"
}, },
"sourcePath": "/Users/scoffey/paypal/server_sdk/PayPal-PHP-SDK/sample/vault/CreateCreditCard.php", "sourcePath": "/Users/japatel/paypal/github/PayPal-PHP-SDK/sample/vault/CreateCreditCard.php",
"projectPath": "vault/CreateCreditCard.php", "projectPath": "vault/CreateCreditCard.php",
"targetPath": "vault/CreateCreditCard", "targetPath": "vault/CreateCreditCard",
"pageTitle": "vault/CreateCreditCard", "pageTitle": "vault/CreateCreditCard",
@@ -2100,7 +2022,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": "^", "foldPrefix": "^",
"name": "PHP" "name": "PHP"
}, },
"sourcePath": "/Users/scoffey/paypal/server_sdk/PayPal-PHP-SDK/sample/vault/DeleteBankAccount.php", "sourcePath": "/Users/japatel/paypal/github/PayPal-PHP-SDK/sample/vault/DeleteBankAccount.php",
"projectPath": "vault/DeleteBankAccount.php", "projectPath": "vault/DeleteBankAccount.php",
"targetPath": "vault/DeleteBankAccount", "targetPath": "vault/DeleteBankAccount",
"pageTitle": "vault/DeleteBankAccount", "pageTitle": "vault/DeleteBankAccount",
@@ -2118,7 +2040,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": "^", "foldPrefix": "^",
"name": "PHP" "name": "PHP"
}, },
"sourcePath": "/Users/scoffey/paypal/server_sdk/PayPal-PHP-SDK/sample/vault/DeleteCreditCard.php", "sourcePath": "/Users/japatel/paypal/github/PayPal-PHP-SDK/sample/vault/DeleteCreditCard.php",
"projectPath": "vault/DeleteCreditCard.php", "projectPath": "vault/DeleteCreditCard.php",
"targetPath": "vault/DeleteCreditCard", "targetPath": "vault/DeleteCreditCard",
"pageTitle": "vault/DeleteCreditCard", "pageTitle": "vault/DeleteCreditCard",
@@ -2136,7 +2058,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": "^", "foldPrefix": "^",
"name": "PHP" "name": "PHP"
}, },
"sourcePath": "/Users/scoffey/paypal/server_sdk/PayPal-PHP-SDK/sample/vault/GetBankAccount.php", "sourcePath": "/Users/japatel/paypal/github/PayPal-PHP-SDK/sample/vault/GetBankAccount.php",
"projectPath": "vault/GetBankAccount.php", "projectPath": "vault/GetBankAccount.php",
"targetPath": "vault/GetBankAccount", "targetPath": "vault/GetBankAccount",
"pageTitle": "vault/GetBankAccount", "pageTitle": "vault/GetBankAccount",
@@ -2154,7 +2076,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": "^", "foldPrefix": "^",
"name": "PHP" "name": "PHP"
}, },
"sourcePath": "/Users/scoffey/paypal/server_sdk/PayPal-PHP-SDK/sample/vault/GetCreditCard.php", "sourcePath": "/Users/japatel/paypal/github/PayPal-PHP-SDK/sample/vault/GetCreditCard.php",
"projectPath": "vault/GetCreditCard.php", "projectPath": "vault/GetCreditCard.php",
"targetPath": "vault/GetCreditCard", "targetPath": "vault/GetCreditCard",
"pageTitle": "vault/GetCreditCard", "pageTitle": "vault/GetCreditCard",
@@ -2172,7 +2094,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": "^", "foldPrefix": "^",
"name": "PHP" "name": "PHP"
}, },
"sourcePath": "/Users/scoffey/paypal/server_sdk/PayPal-PHP-SDK/sample/vault/ListCreditCards.php", "sourcePath": "/Users/japatel/paypal/github/PayPal-PHP-SDK/sample/vault/ListCreditCards.php",
"projectPath": "vault/ListCreditCards.php", "projectPath": "vault/ListCreditCards.php",
"targetPath": "vault/ListCreditCards", "targetPath": "vault/ListCreditCards",
"pageTitle": "vault/ListCreditCards", "pageTitle": "vault/ListCreditCards",
@@ -2190,7 +2112,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": "^", "foldPrefix": "^",
"name": "PHP" "name": "PHP"
}, },
"sourcePath": "/Users/scoffey/paypal/server_sdk/PayPal-PHP-SDK/sample/vault/UpdateCreditCard.php", "sourcePath": "/Users/japatel/paypal/github/PayPal-PHP-SDK/sample/vault/UpdateCreditCard.php",
"projectPath": "vault/UpdateCreditCard.php", "projectPath": "vault/UpdateCreditCard.php",
"targetPath": "vault/UpdateCreditCard", "targetPath": "vault/UpdateCreditCard",
"pageTitle": "vault/UpdateCreditCard", "pageTitle": "vault/UpdateCreditCard",

View File

@@ -1,52 +1,32 @@
<!DOCTYPE html><html lang="en"><head><title>payments/CreateThirdPartyPayment</title></head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0"><meta name="groc-relative-root" content="../"><meta name="groc-document-path" content="payments/CreateThirdPartyPayment"><meta name="groc-project-path" content="payments/CreateThirdPartyPayment.php"><link rel="stylesheet" type="text/css" media="all" href="../assets/style.css"><script type="text/javascript" src="../assets/behavior.js"></script><body><div id="meta"><div class="file-path">payments/CreateThirdPartyPayment.php</div></div><div id="document"><div class="segment"><div class="code"><div class="wrapper"><span class="hljs-preprocessor">&lt;?php</span></div></div></div><div class="segment"><div class="comments "><div class="wrapper"><h1 id="createpaymentsample">CreatePaymentSample</h1> <!DOCTYPE html><html lang="en"><head><title>payments/CreateThirdPartyPayment</title></head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0"><meta name="groc-relative-root" content="../"><meta name="groc-document-path" content="payments/CreateThirdPartyPayment"><meta name="groc-project-path" content="payments/CreateThirdPartyPayment.php"><link rel="stylesheet" type="text/css" media="all" href="../assets/style.css"><script type="text/javascript" src="../assets/behavior.js"></script><body><div id="meta"><div class="file-path">payments/CreateThirdPartyPayment.php</div></div><div id="document"><div class="segment"><div class="code"><div class="wrapper"><span class="hljs-preprocessor">&lt;?php</span></div></div></div><div class="segment"><div class="comments "><div class="wrapper"><h1 id="create-third-party-payment-using-paypal-as-payment-method">Create Third Party Payment using PayPal as payment method</h1>
<p>This sample code demonstrate how you can process <p>This sample code demonstrates how you can process a
a direct credit card payment. Please note that direct PayPal Account based Payment with a third party paypal account.
credit card payment and related features using the
REST API is restricted in some countries.
API used: /v1/payments/payment</p></div></div><div class="code"><div class="wrapper"><span class="hljs-keyword">require</span> <span class="hljs-keyword">__DIR__</span> . <span class="hljs-string">'/../bootstrap.php'</span>; API used: /v1/payments/payment</p></div></div><div class="code"><div class="wrapper"><span class="hljs-keyword">require</span> <span class="hljs-keyword">__DIR__</span> . <span class="hljs-string">'/../bootstrap.php'</span>;
<span class="hljs-keyword">use</span> <span class="hljs-title">PayPal</span>\<span class="hljs-title">Api</span>\<span class="hljs-title">Amount</span>; <span class="hljs-keyword">use</span> <span class="hljs-title">PayPal</span>\<span class="hljs-title">Api</span>\<span class="hljs-title">Amount</span>;
<span class="hljs-keyword">use</span> <span class="hljs-title">PayPal</span>\<span class="hljs-title">Api</span>\<span class="hljs-title">Details</span>; <span class="hljs-keyword">use</span> <span class="hljs-title">PayPal</span>\<span class="hljs-title">Api</span>\<span class="hljs-title">Details</span>;
<span class="hljs-keyword">use</span> <span class="hljs-title">PayPal</span>\<span class="hljs-title">Api</span>\<span class="hljs-title">FundingInstrument</span>;
<span class="hljs-keyword">use</span> <span class="hljs-title">PayPal</span>\<span class="hljs-title">Api</span>\<span class="hljs-title">Item</span>; <span class="hljs-keyword">use</span> <span class="hljs-title">PayPal</span>\<span class="hljs-title">Api</span>\<span class="hljs-title">Item</span>;
<span class="hljs-keyword">use</span> <span class="hljs-title">PayPal</span>\<span class="hljs-title">Api</span>\<span class="hljs-title">ItemList</span>; <span class="hljs-keyword">use</span> <span class="hljs-title">PayPal</span>\<span class="hljs-title">Api</span>\<span class="hljs-title">ItemList</span>;
<span class="hljs-keyword">use</span> <span class="hljs-title">PayPal</span>\<span class="hljs-title">Api</span>\<span class="hljs-title">Payee</span>; <span class="hljs-keyword">use</span> <span class="hljs-title">PayPal</span>\<span class="hljs-title">Api</span>\<span class="hljs-title">Payee</span>;
<span class="hljs-keyword">use</span> <span class="hljs-title">PayPal</span>\<span class="hljs-title">Api</span>\<span class="hljs-title">Payer</span>; <span class="hljs-keyword">use</span> <span class="hljs-title">PayPal</span>\<span class="hljs-title">Api</span>\<span class="hljs-title">Payer</span>;
<span class="hljs-keyword">use</span> <span class="hljs-title">PayPal</span>\<span class="hljs-title">Api</span>\<span class="hljs-title">Payment</span>; <span class="hljs-keyword">use</span> <span class="hljs-title">PayPal</span>\<span class="hljs-title">Api</span>\<span class="hljs-title">Payment</span>;
<span class="hljs-keyword">use</span> <span class="hljs-title">PayPal</span>\<span class="hljs-title">Api</span>\<span class="hljs-title">PaymentCard</span>; <span class="hljs-keyword">use</span> <span class="hljs-title">PayPal</span>\<span class="hljs-title">Api</span>\<span class="hljs-title">RedirectUrls</span>;
<span class="hljs-keyword">use</span> <span class="hljs-title">PayPal</span>\<span class="hljs-title">Api</span>\<span class="hljs-title">Transaction</span>;</div></div></div><div class="segment"><div class="comments "><div class="wrapper"><h3 id="paymentcard">PaymentCard</h3> <span class="hljs-keyword">use</span> <span class="hljs-title">PayPal</span>\<span class="hljs-title">Api</span>\<span class="hljs-title">Transaction</span>;</div></div></div><div class="segment"><div class="comments "><div class="wrapper"><h3 id="payer">Payer</h3>
<p>A resource representing a payment card that can be
used to fund a payment.</p></div></div><div class="code"><div class="wrapper"><span class="hljs-variable">$card</span> = <span class="hljs-keyword">new</span> PaymentCard();
<span class="hljs-variable">$card</span>-&gt;setType(<span class="hljs-string">"visa"</span>)
-&gt;setNumber(<span class="hljs-string">"4669424246660779"</span>)
-&gt;setExpireMonth(<span class="hljs-string">"11"</span>)
-&gt;setExpireYear(<span class="hljs-string">"2019"</span>)
-&gt;setCvv2(<span class="hljs-string">"012"</span>)
-&gt;setFirstName(<span class="hljs-string">"Joe"</span>)
-&gt;setBillingCountry(<span class="hljs-string">"US"</span>)
-&gt;setLastName(<span class="hljs-string">"Shopper"</span>);</div></div></div><div class="segment"><div class="comments "><div class="wrapper"><h3 id="fundinginstrument">FundingInstrument</h3>
<p>A resource representing a Payer&#39;s funding instrument.
For direct credit card payments, set the CreditCard
field on this object.</p></div></div><div class="code"><div class="wrapper"><span class="hljs-variable">$fi</span> = <span class="hljs-keyword">new</span> FundingInstrument();
<span class="hljs-variable">$fi</span>-&gt;setPaymentCard(<span class="hljs-variable">$card</span>);</div></div></div><div class="segment"><div class="comments "><div class="wrapper"><h3 id="payer">Payer</h3>
<p>A resource representing a Payer that funds a payment <p>A resource representing a Payer that funds a payment
For direct credit card payments, set payment method For paypal account payments, set payment method
to &#39;credit_card&#39; and add an array of funding instruments.</p></div></div><div class="code"><div class="wrapper"><span class="hljs-variable">$payer</span> = <span class="hljs-keyword">new</span> Payer(); to &#39;paypal&#39;.</p></div></div><div class="code"><div class="wrapper"><span class="hljs-variable">$payer</span> = <span class="hljs-keyword">new</span> Payer();
<span class="hljs-variable">$payer</span>-&gt;setPaymentMethod(<span class="hljs-string">"credit_card"</span>) <span class="hljs-variable">$payer</span>-&gt;setPaymentMethod(<span class="hljs-string">"paypal"</span>);</div></div></div><div class="segment"><div class="comments "><div class="wrapper"><h3 id="itemized-information">Itemized information</h3>
-&gt;setFundingInstruments(<span class="hljs-keyword">array</span>(<span class="hljs-variable">$fi</span>));</div></div></div><div class="segment"><div class="comments "><div class="wrapper"><h3 id="itemized-information">Itemized information</h3>
<p>(Optional) Lets you specify item wise <p>(Optional) Lets you specify item wise
information</p></div></div><div class="code"><div class="wrapper"><span class="hljs-variable">$item1</span> = <span class="hljs-keyword">new</span> Item(); information</p></div></div><div class="code"><div class="wrapper"><span class="hljs-variable">$item1</span> = <span class="hljs-keyword">new</span> Item();
<span class="hljs-variable">$item1</span>-&gt;setName(<span class="hljs-string">'Ground Coffee 40 oz'</span>) <span class="hljs-variable">$item1</span>-&gt;setName(<span class="hljs-string">'Ground Coffee 40 oz'</span>)
-&gt;setDescription(<span class="hljs-string">'Ground Coffee 40 oz'</span>)
-&gt;setCurrency(<span class="hljs-string">'USD'</span>) -&gt;setCurrency(<span class="hljs-string">'USD'</span>)
-&gt;setQuantity(<span class="hljs-number">1</span>) -&gt;setQuantity(<span class="hljs-number">1</span>)
-&gt;setTax(<span class="hljs-number">0.3</span>) -&gt;setSku(<span class="hljs-string">"123123"</span>) <span class="hljs-comment">// Similar to `item_number` in Classic API</span>
-&gt;setPrice(<span class="hljs-number">7.50</span>); -&gt;setPrice(<span class="hljs-number">7.5</span>);
<span class="hljs-variable">$item2</span> = <span class="hljs-keyword">new</span> Item(); <span class="hljs-variable">$item2</span> = <span class="hljs-keyword">new</span> Item();
<span class="hljs-variable">$item2</span>-&gt;setName(<span class="hljs-string">'Granola bars'</span>) <span class="hljs-variable">$item2</span>-&gt;setName(<span class="hljs-string">'Granola bars'</span>)
-&gt;setDescription(<span class="hljs-string">'Granola Bars with Peanuts'</span>)
-&gt;setCurrency(<span class="hljs-string">'USD'</span>) -&gt;setCurrency(<span class="hljs-string">'USD'</span>)
-&gt;setQuantity(<span class="hljs-number">5</span>) -&gt;setQuantity(<span class="hljs-number">5</span>)
-&gt;setTax(<span class="hljs-number">0.2</span>) -&gt;setSku(<span class="hljs-string">"321321"</span>) <span class="hljs-comment">// Similar to `item_number` in Classic API</span>
-&gt;setPrice(<span class="hljs-number">2</span>); -&gt;setPrice(<span class="hljs-number">2</span>);
<span class="hljs-variable">$itemList</span> = <span class="hljs-keyword">new</span> ItemList(); <span class="hljs-variable">$itemList</span> = <span class="hljs-keyword">new</span> ItemList();
@@ -56,7 +36,7 @@ payment information such as tax, shipping
charges etc.</p></div></div><div class="code"><div class="wrapper"><span class="hljs-variable">$details</span> = <span class="hljs-keyword">new</span> Details(); charges etc.</p></div></div><div class="code"><div class="wrapper"><span class="hljs-variable">$details</span> = <span class="hljs-keyword">new</span> Details();
<span class="hljs-variable">$details</span>-&gt;setShipping(<span class="hljs-number">1.2</span>) <span class="hljs-variable">$details</span>-&gt;setShipping(<span class="hljs-number">1.2</span>)
-&gt;setTax(<span class="hljs-number">1.3</span>) -&gt;setTax(<span class="hljs-number">1.3</span>)
-&gt;setSubtotal(<span class="hljs-number">17.5</span>);</div></div></div><div class="segment"><div class="comments "><div class="wrapper"><h3 id="amount">Amount</h3> -&gt;setSubtotal(<span class="hljs-number">17.50</span>);</div></div></div><div class="segment"><div class="comments "><div class="wrapper"><h3 id="amount">Amount</h3>
<p>Lets you specify a payment amount. <p>Lets you specify a payment amount.
You can also specify additional details You can also specify additional details
such as shipping, tax.</p></div></div><div class="code"><div class="wrapper"><span class="hljs-variable">$amount</span> = <span class="hljs-keyword">new</span> Amount(); such as shipping, tax.</p></div></div><div class="code"><div class="wrapper"><span class="hljs-variable">$amount</span> = <span class="hljs-keyword">new</span> Amount();
@@ -68,23 +48,35 @@ Merchant Id can be found at <a href="https://www.paypal.com/businessprofile/sett
<span class="hljs-variable">$payee</span>-&gt;setEmail(<span class="hljs-string">"stevendcoffey-facilitator@gmail.com"</span>);</div></div></div><div class="segment"><div class="comments "><div class="wrapper"><h3 id="transaction">Transaction</h3> <span class="hljs-variable">$payee</span>-&gt;setEmail(<span class="hljs-string">"stevendcoffey-facilitator@gmail.com"</span>);</div></div></div><div class="segment"><div class="comments "><div class="wrapper"><h3 id="transaction">Transaction</h3>
<p>A transaction defines the contract of a <p>A transaction defines the contract of a
payment - what is the payment for and who payment - what is the payment for and who
is fulfilling it. </p></div></div><div class="code"><div class="wrapper"><span class="hljs-variable">$transaction</span> = <span class="hljs-keyword">new</span> Transaction(); is fulfilling it.</p></div></div><div class="code"><div class="wrapper"><span class="hljs-variable">$transaction</span> = <span class="hljs-keyword">new</span> Transaction();
<span class="hljs-variable">$transaction</span>-&gt;setAmount(<span class="hljs-variable">$amount</span>) <span class="hljs-variable">$transaction</span>-&gt;setAmount(<span class="hljs-variable">$amount</span>)
-&gt;setItemList(<span class="hljs-variable">$itemList</span>) -&gt;setItemList(<span class="hljs-variable">$itemList</span>)
-&gt;setDescription(<span class="hljs-string">"Payment description"</span>) -&gt;setDescription(<span class="hljs-string">"Payment description"</span>)
-&gt;setPayee(<span class="hljs-variable">$payee</span>) -&gt;setPayee(<span class="hljs-variable">$payee</span>)
-&gt;setInvoiceNumber(uniqid());</div></div></div><div class="segment"><div class="comments "><div class="wrapper"><h3 id="payment">Payment</h3> -&gt;setInvoiceNumber(uniqid());</div></div></div><div class="segment"><div class="comments "><div class="wrapper"><h3 id="redirect-urls">Redirect urls</h3>
<p>Set the urls that the buyer must be redirected to after
payment approval/ cancellation.</p></div></div><div class="code"><div class="wrapper"><span class="hljs-variable">$baseUrl</span> = getBaseUrl();
<span class="hljs-variable">$redirectUrls</span> = <span class="hljs-keyword">new</span> RedirectUrls();
<span class="hljs-variable">$redirectUrls</span>-&gt;setReturnUrl(<span class="hljs-string">"$baseUrl/ExecutePayment.php?success=true"</span>)
-&gt;setCancelUrl(<span class="hljs-string">"$baseUrl/ExecutePayment.php?success=false"</span>);</div></div></div><div class="segment"><div class="comments "><div class="wrapper"><h3 id="payment">Payment</h3>
<p>A Payment Resource; create one using <p>A Payment Resource; create one using
the above types and intent set to sale &#39;sale&#39;</p></div></div><div class="code"><div class="wrapper"><span class="hljs-variable">$payment</span> = <span class="hljs-keyword">new</span> Payment(); the above types and intent set to &#39;sale&#39;</p></div></div><div class="code"><div class="wrapper"><span class="hljs-variable">$payment</span> = <span class="hljs-keyword">new</span> Payment();
<span class="hljs-variable">$payment</span>-&gt;setIntent(<span class="hljs-string">"sale"</span>) <span class="hljs-variable">$payment</span>-&gt;setIntent(<span class="hljs-string">"sale"</span>)
-&gt;setPayer(<span class="hljs-variable">$payer</span>) -&gt;setPayer(<span class="hljs-variable">$payer</span>)
-&gt;setRedirectUrls(<span class="hljs-variable">$redirectUrls</span>)
-&gt;setTransactions(<span class="hljs-keyword">array</span>(<span class="hljs-variable">$transaction</span>));</div></div></div><div class="segment"><div class="comments "><div class="wrapper"><p>For Sample Purposes Only.</p></div></div><div class="code"><div class="wrapper"><span class="hljs-variable">$request</span> = <span class="hljs-keyword">clone</span> <span class="hljs-variable">$payment</span>;</div></div></div><div class="segment"><div class="comments "><div class="wrapper"><h3 id="create-payment">Create Payment</h3> -&gt;setTransactions(<span class="hljs-keyword">array</span>(<span class="hljs-variable">$transaction</span>));</div></div></div><div class="segment"><div class="comments "><div class="wrapper"><p>For Sample Purposes Only.</p></div></div><div class="code"><div class="wrapper"><span class="hljs-variable">$request</span> = <span class="hljs-keyword">clone</span> <span class="hljs-variable">$payment</span>;</div></div></div><div class="segment"><div class="comments "><div class="wrapper"><h3 id="create-payment">Create Payment</h3>
<p>Create a payment by calling the payment-&gt;create() method <p>Create a payment by calling the &#39;create&#39; method
with a valid ApiContext (See bootstrap.php for more on <code>ApiContext</code>) passing it a valid apiContext.
The return object contains the state.</p></div></div><div class="code"><div class="wrapper"><span class="hljs-keyword">try</span> { (See bootstrap.php for more on <code>ApiContext</code>)
The return object contains the state and the
url to which the buyer must be redirected to
for payment approval</p></div></div><div class="code"><div class="wrapper"><span class="hljs-keyword">try</span> {
<span class="hljs-variable">$payment</span>-&gt;create(<span class="hljs-variable">$apiContext</span>); <span class="hljs-variable">$payment</span>-&gt;create(<span class="hljs-variable">$apiContext</span>);
} <span class="hljs-keyword">catch</span> (<span class="hljs-keyword">Exception</span> <span class="hljs-variable">$ex</span>) {</div></div></div><div class="segment"><div class="comments "><div class="wrapper"><p>NOTE: PLEASE DO NOT USE RESULTPRINTER CLASS IN YOUR ORIGINAL CODE. FOR SAMPLE ONLY</p></div></div><div class="code"><div class="wrapper"> ResultPrinter::printError(<span class="hljs-string">'Create Payment Using Credit Card. If 500 Exception, try creating a new Credit Card using &lt;a href="https://www.paypal-knowledge.com/infocenter/index?page=content&amp;widgetview=true&amp;id=FAQ1413"&gt;Step 4, on this link&lt;/a&gt;, and using it.'</span>, <span class="hljs-string">'Payment'</span>, <span class="hljs-keyword">null</span>, <span class="hljs-variable">$request</span>, <span class="hljs-variable">$ex</span>); } <span class="hljs-keyword">catch</span> (<span class="hljs-keyword">Exception</span> <span class="hljs-variable">$ex</span>) {</div></div></div><div class="segment"><div class="comments "><div class="wrapper"><p>NOTE: PLEASE DO NOT USE RESULTPRINTER CLASS IN YOUR ORIGINAL CODE. FOR SAMPLE ONLY</p></div></div><div class="code"><div class="wrapper"> ResultPrinter::printError(<span class="hljs-string">"Created Payment Using PayPal. Please visit the URL to Approve."</span>, <span class="hljs-string">"Payment"</span>, <span class="hljs-keyword">null</span>, <span class="hljs-variable">$request</span>, <span class="hljs-variable">$ex</span>);
<span class="hljs-keyword">exit</span>(<span class="hljs-number">1</span>); <span class="hljs-keyword">exit</span>(<span class="hljs-number">1</span>);
}</div></div></div><div class="segment"><div class="comments "><div class="wrapper"><p>NOTE: PLEASE DO NOT USE RESULTPRINTER CLASS IN YOUR ORIGINAL CODE. FOR SAMPLE ONLY</p></div></div><div class="code"><div class="wrapper"> ResultPrinter::printResult(<span class="hljs-string">'Create Payment Using Credit Card'</span>, <span class="hljs-string">'Payment'</span>, <span class="hljs-variable">$payment</span>-&gt;getId(), <span class="hljs-variable">$request</span>, <span class="hljs-variable">$payment</span>); }</div></div></div><div class="segment"><div class="comments "><div class="wrapper"><h3 id="get-redirect-url">Get redirect url</h3>
<p>The API response provides the url that you must redirect
the buyer to. Retrieve the url from the $payment-&gt;getApprovalLink()
method</p></div></div><div class="code"><div class="wrapper"><span class="hljs-variable">$approvalUrl</span> = <span class="hljs-variable">$payment</span>-&gt;getApprovalLink();</div></div></div><div class="segment"><div class="comments "><div class="wrapper"><p>NOTE: PLEASE DO NOT USE RESULTPRINTER CLASS IN YOUR ORIGINAL CODE. FOR SAMPLE ONLY</p></div></div><div class="code"><div class="wrapper">ResultPrinter::printResult(<span class="hljs-string">"Created Payment Using PayPal. Please visit the URL to Approve."</span>, <span class="hljs-string">"Payment"</span>, <span class="hljs-string">"&lt;a href='$approvalUrl' &gt;$approvalUrl&lt;/a&gt;"</span>, <span class="hljs-variable">$request</span>, <span class="hljs-variable">$payment</span>);
<span class="hljs-keyword">return</span> <span class="hljs-variable">$payment</span>;</div></div></div></div></body></html> <span class="hljs-keyword">return</span> <span class="hljs-variable">$payment</span>;</div></div></div></div></body></html>

View File

@@ -1,69 +1,42 @@
<?php <?php
// # CreatePaymentSample // # Create Third Party Payment using PayPal as payment method
// // This sample code demonstrates how you can process a
// This sample code demonstrate how you can process // PayPal Account based Payment with a third party paypal account.
// a direct credit card payment. Please note that direct
// credit card payment and related features using the
// REST API is restricted in some countries.
// API used: /v1/payments/payment // API used: /v1/payments/payment
require __DIR__ . '/../bootstrap.php'; require __DIR__ . '/../bootstrap.php';
use PayPal\Api\Amount; use PayPal\Api\Amount;
use PayPal\Api\Details; use PayPal\Api\Details;
use PayPal\Api\FundingInstrument;
use PayPal\Api\Item; use PayPal\Api\Item;
use PayPal\Api\ItemList; use PayPal\Api\ItemList;
use PayPal\Api\Payee; use PayPal\Api\Payee;
use PayPal\Api\Payer; use PayPal\Api\Payer;
use PayPal\Api\Payment; use PayPal\Api\Payment;
use PayPal\Api\PaymentCard; use PayPal\Api\RedirectUrls;
use PayPal\Api\Transaction; use PayPal\Api\Transaction;
// ### PaymentCard
// A resource representing a payment card that can be
// used to fund a payment.
$card = new PaymentCard();
$card->setType("visa")
->setNumber("4669424246660779")
->setExpireMonth("11")
->setExpireYear("2019")
->setCvv2("012")
->setFirstName("Joe")
->setBillingCountry("US")
->setLastName("Shopper");
// ### FundingInstrument
// A resource representing a Payer's funding instrument.
// For direct credit card payments, set the CreditCard
// field on this object.
$fi = new FundingInstrument();
$fi->setPaymentCard($card);
// ### Payer // ### Payer
// A resource representing a Payer that funds a payment // A resource representing a Payer that funds a payment
// For direct credit card payments, set payment method // For paypal account payments, set payment method
// to 'credit_card' and add an array of funding instruments. // to 'paypal'.
$payer = new Payer(); $payer = new Payer();
$payer->setPaymentMethod("credit_card") $payer->setPaymentMethod("paypal");
->setFundingInstruments(array($fi));
// ### Itemized information // ### Itemized information
// (Optional) Lets you specify item wise // (Optional) Lets you specify item wise
// information // information
$item1 = new Item(); $item1 = new Item();
$item1->setName('Ground Coffee 40 oz') $item1->setName('Ground Coffee 40 oz')
->setDescription('Ground Coffee 40 oz')
->setCurrency('USD') ->setCurrency('USD')
->setQuantity(1) ->setQuantity(1)
->setTax(0.3) ->setSku("123123") // Similar to `item_number` in Classic API
->setPrice(7.50); ->setPrice(7.5);
$item2 = new Item(); $item2 = new Item();
$item2->setName('Granola bars') $item2->setName('Granola bars')
->setDescription('Granola Bars with Peanuts')
->setCurrency('USD') ->setCurrency('USD')
->setQuantity(5) ->setQuantity(5)
->setTax(0.2) ->setSku("321321") // Similar to `item_number` in Classic API
->setPrice(2); ->setPrice(2);
$itemList = new ItemList(); $itemList = new ItemList();
@@ -76,7 +49,7 @@ $itemList->setItems(array($item1, $item2));
$details = new Details(); $details = new Details();
$details->setShipping(1.2) $details->setShipping(1.2)
->setTax(1.3) ->setTax(1.3)
->setSubtotal(17.5); ->setSubtotal(17.50);
// ### Amount // ### Amount
// Lets you specify a payment amount. // Lets you specify a payment amount.
@@ -96,7 +69,7 @@ $payee->setEmail("stevendcoffey-facilitator@gmail.com");
// ### Transaction // ### Transaction
// A transaction defines the contract of a // A transaction defines the contract of a
// payment - what is the payment for and who // payment - what is the payment for and who
// is fulfilling it. // is fulfilling it.
$transaction = new Transaction(); $transaction = new Transaction();
$transaction->setAmount($amount) $transaction->setAmount($amount)
->setItemList($itemList) ->setItemList($itemList)
@@ -104,30 +77,49 @@ $transaction->setAmount($amount)
->setPayee($payee) ->setPayee($payee)
->setInvoiceNumber(uniqid()); ->setInvoiceNumber(uniqid());
// ### Redirect urls
// Set the urls that the buyer must be redirected to after
// payment approval/ cancellation.
$baseUrl = getBaseUrl();
$redirectUrls = new RedirectUrls();
$redirectUrls->setReturnUrl("$baseUrl/ExecutePayment.php?success=true")
->setCancelUrl("$baseUrl/ExecutePayment.php?success=false");
// ### Payment // ### Payment
// A Payment Resource; create one using // A Payment Resource; create one using
// the above types and intent set to sale 'sale' // the above types and intent set to 'sale'
$payment = new Payment(); $payment = new Payment();
$payment->setIntent("sale") $payment->setIntent("sale")
->setPayer($payer) ->setPayer($payer)
->setRedirectUrls($redirectUrls)
->setTransactions(array($transaction)); ->setTransactions(array($transaction));
// For Sample Purposes Only. // For Sample Purposes Only.
$request = clone $payment; $request = clone $payment;
// ### Create Payment // ### Create Payment
// Create a payment by calling the payment->create() method // Create a payment by calling the 'create' method
// with a valid ApiContext (See bootstrap.php for more on `ApiContext`) // passing it a valid apiContext.
// The return object contains the state. // (See bootstrap.php for more on `ApiContext`)
// The return object contains the state and the
// url to which the buyer must be redirected to
// for payment approval
try { try {
$payment->create($apiContext); $payment->create($apiContext);
} catch (Exception $ex) { } catch (Exception $ex) {
// NOTE: PLEASE DO NOT USE RESULTPRINTER CLASS IN YOUR ORIGINAL CODE. FOR SAMPLE ONLY // NOTE: PLEASE DO NOT USE RESULTPRINTER CLASS IN YOUR ORIGINAL CODE. FOR SAMPLE ONLY
ResultPrinter::printError('Create Payment Using Credit Card. If 500 Exception, try creating a new Credit Card using <a href="https://www.paypal-knowledge.com/infocenter/index?page=content&widgetview=true&id=FAQ1413">Step 4, on this link</a>, and using it.', 'Payment', null, $request, $ex); ResultPrinter::printError("Created Payment Using PayPal. Please visit the URL to Approve.", "Payment", null, $request, $ex);
exit(1); exit(1);
} }
// ### Get redirect url
// The API response provides the url that you must redirect
// the buyer to. Retrieve the url from the $payment->getApprovalLink()
// method
$approvalUrl = $payment->getApprovalLink();
// NOTE: PLEASE DO NOT USE RESULTPRINTER CLASS IN YOUR ORIGINAL CODE. FOR SAMPLE ONLY // NOTE: PLEASE DO NOT USE RESULTPRINTER CLASS IN YOUR ORIGINAL CODE. FOR SAMPLE ONLY
ResultPrinter::printResult('Create Payment Using Credit Card', 'Payment', $payment->getId(), $request, $payment); ResultPrinter::printResult("Created Payment Using PayPal. Please visit the URL to Approve.", "Payment", "<a href='$approvalUrl' >$approvalUrl</a>", $request, $payment);
return $payment; return $payment;