From 104fad61bbf3c58af6ed028abdcf0a2fbeb1d627 Mon Sep 17 00:00:00 2001
From: Jay Patel
Date: Mon, 16 Mar 2015 12:31:51 -0500
Subject: [PATCH] Minor Fixes to Sample
---
sample/doc/assets/behavior.js | 469 +++++++-----------
sample/doc/invoice/CreateInvoice.html | 13 +-
...{createWebhook.html => CreateWebhook.html} | 2 +-
sample/invoice/CreateInvoice.php | 11 +
4 files changed, 196 insertions(+), 299 deletions(-)
rename sample/doc/notifications/{createWebhook.html => CreateWebhook.html} (96%)
diff --git a/sample/doc/assets/behavior.js b/sample/doc/assets/behavior.js
index 393b104..816a63f 100644
--- a/sample/doc/assets/behavior.js
+++ b/sample/doc/assets/behavior.js
@@ -310,7 +310,104 @@ f.event={add:function(a,c,d,e,g){var h,i,j,k,l,m,n,o,p,q,r,s;if(!(a.nodeType===3
"pageTitle": "invoice/CreateInvoice",
"title": "CreateInvoice"
},
- "depth": 2
+ "depth": 2,
+ "outline": [
+ {
+ "type": "heading",
+ "data": {
+ "level": 1,
+ "title": "Create Invoice Sample",
+ "slug": "create-invoice-sample"
+ },
+ "depth": 1,
+ "children": [
+ {
+ "type": "heading",
+ "data": {
+ "level": 3,
+ "title": "Invoice Info",
+ "slug": "invoice-info"
+ },
+ "depth": 3
+ }, {
+ "type": "heading",
+ "data": {
+ "level": 3,
+ "title": "Merchant Info",
+ "slug": "merchant-info"
+ },
+ "depth": 3
+ }, {
+ "type": "heading",
+ "data": {
+ "level": 3,
+ "title": "Address Information",
+ "slug": "address-information"
+ },
+ "depth": 3
+ }, {
+ "type": "heading",
+ "data": {
+ "level": 3,
+ "title": "Billing Information",
+ "slug": "billing-information"
+ },
+ "depth": 3
+ }, {
+ "type": "heading",
+ "data": {
+ "level": 3,
+ "title": "Items List",
+ "slug": "items-list"
+ },
+ "depth": 3,
+ "children": [
+ {
+ "type": "heading",
+ "data": {
+ "level": 4,
+ "title": "Tax Item",
+ "slug": "tax-item"
+ },
+ "depth": 4
+ }, {
+ "type": "heading",
+ "data": {
+ "level": 4,
+ "title": "Tax Item",
+ "slug": "tax-item"
+ },
+ "depth": 4
+ }
+ ]
+ }, {
+ "type": "heading",
+ "data": {
+ "level": 3,
+ "title": "Shipping Information",
+ "slug": "shipping-information"
+ },
+ "depth": 3
+ }, {
+ "type": "heading",
+ "data": {
+ "level": 3,
+ "title": "Logo",
+ "slug": "logo"
+ },
+ "depth": 3
+ }, {
+ "type": "heading",
+ "data": {
+ "level": 3,
+ "title": "Create Invoice",
+ "slug": "create-invoice"
+ },
+ "depth": 3
+ }
+ ]
+ }
+ ]
}, {
"type": "file",
"data": {
@@ -554,18 +651,7 @@ f.event={add:function(a,c,d,e,g){var h,i,j,k,l,m,n,o,p,q,r,s;if(!(a.nodeType===3
"pageTitle": "lipp/ObtainUserConsent",
"title": "ObtainUserConsent"
},
- "depth": 2,
- "outline": [
- {
- "type": "heading",
- "data": {
- "level": 3,
- "title": "Get User Consent URL",
- "slug": "get-user-consent-url"
- },
- "depth": 3
- }
- ]
+ "depth": 2
}, {
"type": "file",
"data": {
@@ -595,6 +681,73 @@ 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": 1,
"children": [
{
+ "type": "file",
+ "data": {
+ "language": {
+ "nameMatchers": [{}, ".fbp"],
+ "pygmentsLexer": "php",
+ "singleLineComment": ["//"],
+ "ignorePrefix": "}",
+ "foldPrefix": "^",
+ "name": "PHP"
+ },
+ "sourcePath": "/Users/japatel/Documents/workspace/paypal/PayPal-PHP-SDK/sample/notifications/CreateWebhook.php",
+ "projectPath": "notifications/CreateWebhook.php",
+ "targetPath": "notifications/CreateWebhook",
+ "pageTitle": "notifications/CreateWebhook",
+ "title": "CreateWebhook"
+ },
+ "depth": 2,
+ "outline": [
+ {
+ "type": "heading",
+ "data": {
+ "level": 1,
+ "title": "Create Webhook Sample",
+ "slug": "create-webhook-sample"
+ },
+ "depth": 1
+ }, {
+ "type": "heading",
+ "data": {
+ "level": 1,
+ "title": "Basic Information",
+ "slug": "basic-information"
+ },
+ "depth": 1,
+ "children": [
+ {
+ "type": "heading",
+ "data": {
+ "level": 4,
+ "title": "NOTE: Please note that you need an https url for paypal webhooks. You can however override the url with https, and accept",
+ "slug": "note-please-note-that-you-need-an-https-url-for-paypal-webhooks-you-can-however-override-the-url-with-https-and-accept"
+ },
+ "depth": 4
+ }
+ ]
+ }, {
+ "type": "heading",
+ "data": {
+ "level": 1,
+ "title": "Event Types",
+ "slug": "event-types"
+ },
+ "depth": 1,
+ "children": [
+ {
+ "type": "heading",
+ "data": {
+ "level": 3,
+ "title": "Create Webhook",
+ "slug": "create-webhook"
+ },
+ "depth": 3
+ }
+ ]
+ }
+ ]
+ }, {
"type": "file",
"data": {
"language": {
@@ -738,24 +891,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
"title": "WebhookEventTypesList"
},
"depth": 2
- }, {
- "type": "file",
- "data": {
- "language": {
- "nameMatchers": [{}, ".fbp"],
- "pygmentsLexer": "php",
- "singleLineComment": ["//"],
- "ignorePrefix": "}",
- "foldPrefix": "^",
- "name": "PHP"
- },
- "sourcePath": "/Users/japatel/Documents/workspace/paypal/PayPal-PHP-SDK/sample/notifications/createWebhook.php",
- "projectPath": "notifications/createWebhook.php",
- "targetPath": "notifications/createWebhook",
- "pageTitle": "notifications/createWebhook",
- "title": "createWebhook"
- },
- "depth": 2
}
]
}, {
@@ -901,29 +1036,7 @@ f.event={add:function(a,c,d,e,g){var h,i,j,k,l,m,n,o,p,q,r,s;if(!(a.nodeType===3
"pageTitle": "payments/AuthorizationCapture",
"title": "AuthorizationCapture"
},
- "depth": 2,
- "outline": [
- {
- "type": "heading",
- "data": {
- "level": 1,
- "title": "AuthorizationCapture",
- "slug": "authorizationcapture"
- },
- "depth": 1,
- "children": [
- {
- "type": "heading",
- "data": {
- "level": 3,
- "title": "Capture Payment",
- "slug": "capture-payment"
- },
- "depth": 3
- }
- ]
- }
- ]
+ "depth": 2
}, {
"type": "file",
"data": {
@@ -941,29 +1054,7 @@ f.event={add:function(a,c,d,e,g){var h,i,j,k,l,m,n,o,p,q,r,s;if(!(a.nodeType===3
"pageTitle": "payments/AuthorizePayment",
"title": "AuthorizePayment"
},
- "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
- }
- ]
- }
- ]
+ "depth": 2
}, {
"type": "file",
"data": {
@@ -1017,93 +1108,7 @@ f.event={add:function(a,c,d,e,g){var h,i,j,k,l,m,n,o,p,q,r,s;if(!(a.nodeType===3
"pageTitle": "payments/CreatePayment",
"title": "CreatePayment"
},
- "depth": 2,
- "outline": [
- {
- "type": "heading",
- "data": {
- "level": 1,
- "title": "CreatePaymentSample",
- "slug": "createpaymentsample"
- },
- "depth": 1,
- "children": [
- {
- "type": "heading",
- "data": {
- "level": 3,
- "title": "CreditCard",
- "slug": "creditcard"
- },
- "depth": 3
- }, {
- "type": "heading",
- "data": {
- "level": 3,
- "title": "FundingInstrument",
- "slug": "fundinginstrument"
- },
- "depth": 3
- }, {
- "type": "heading",
- "data": {
- "level": 3,
- "title": "Payer",
- "slug": "payer"
- },
- "depth": 3
- }, {
- "type": "heading",
- "data": {
- "level": 3,
- "title": "Itemized information",
- "slug": "itemized-information"
- },
- "depth": 3
- }, {
- "type": "heading",
- "data": {
- "level": 3,
- "title": "Additional payment details",
- "slug": "additional-payment-details"
- },
- "depth": 3
- }, {
- "type": "heading",
- "data": {
- "level": 3,
- "title": "Amount",
- "slug": "amount"
- },
- "depth": 3
- }, {
- "type": "heading",
- "data": {
- "level": 3,
- "title": "Transaction",
- "slug": "transaction"
- },
- "depth": 3
- }, {
- "type": "heading",
- "data": {
- "level": 3,
- "title": "Payment",
- "slug": "payment"
- },
- "depth": 3
- }, {
- "type": "heading",
- "data": {
- "level": 3,
- "title": "Create Payment",
- "slug": "create-payment"
- },
- "depth": 3
- }
- ]
- }
- ]
+ "depth": 2
}, {
"type": "file",
"data": {
@@ -1121,93 +1126,7 @@ f.event={add:function(a,c,d,e,g){var h,i,j,k,l,m,n,o,p,q,r,s;if(!(a.nodeType===3
"pageTitle": "payments/CreatePaymentUsingPayPal",
"title": "CreatePaymentUsingPayPal"
},
- "depth": 2,
- "outline": [
- {
- "type": "heading",
- "data": {
- "level": 1,
- "title": "Create Payment using PayPal as payment method",
- "slug": "create-payment-using-paypal-as-payment-method"
- },
- "depth": 1,
- "children": [
- {
- "type": "heading",
- "data": {
- "level": 3,
- "title": "Payer",
- "slug": "payer"
- },
- "depth": 3
- }, {
- "type": "heading",
- "data": {
- "level": 3,
- "title": "Itemized information",
- "slug": "itemized-information"
- },
- "depth": 3
- }, {
- "type": "heading",
- "data": {
- "level": 3,
- "title": "Additional payment details",
- "slug": "additional-payment-details"
- },
- "depth": 3
- }, {
- "type": "heading",
- "data": {
- "level": 3,
- "title": "Amount",
- "slug": "amount"
- },
- "depth": 3
- }, {
- "type": "heading",
- "data": {
- "level": 3,
- "title": "Transaction",
- "slug": "transaction"
- },
- "depth": 3
- }, {
- "type": "heading",
- "data": {
- "level": 3,
- "title": "Redirect urls",
- "slug": "redirect-urls"
- },
- "depth": 3
- }, {
- "type": "heading",
- "data": {
- "level": 3,
- "title": "Payment",
- "slug": "payment"
- },
- "depth": 3
- }, {
- "type": "heading",
- "data": {
- "level": 3,
- "title": "Create Payment",
- "slug": "create-payment"
- },
- "depth": 3
- }, {
- "type": "heading",
- "data": {
- "level": 3,
- "title": "Get redirect url",
- "slug": "get-redirect-url"
- },
- "depth": 3
- }
- ]
- }
- ]
+ "depth": 2
}, {
"type": "file",
"data": {
@@ -1261,29 +1180,7 @@ f.event={add:function(a,c,d,e,g){var h,i,j,k,l,m,n,o,p,q,r,s;if(!(a.nodeType===3
"pageTitle": "payments/GetAuthorization",
"title": "GetAuthorization"
},
- "depth": 2,
- "outline": [
- {
- "type": "heading",
- "data": {
- "level": 1,
- "title": "GetAuthorization",
- "slug": "getauthorization"
- },
- "depth": 1,
- "children": [
- {
- "type": "heading",
- "data": {
- "level": 3,
- "title": "GetAuthorization",
- "slug": "getauthorization"
- },
- "depth": 3
- }
- ]
- }
- ]
+ "depth": 2
}, {
"type": "file",
"data": {
@@ -1301,29 +1198,7 @@ f.event={add:function(a,c,d,e,g){var h,i,j,k,l,m,n,o,p,q,r,s;if(!(a.nodeType===3
"pageTitle": "payments/GetCapture",
"title": "GetCapture"
},
- "depth": 2,
- "outline": [
- {
- "type": "heading",
- "data": {
- "level": 1,
- "title": "GetCapture",
- "slug": "getcapture"
- },
- "depth": 1,
- "children": [
- {
- "type": "heading",
- "data": {
- "level": 3,
- "title": "Retrieve Capture details",
- "slug": "retrieve-capture-details"
- },
- "depth": 3
- }
- ]
- }
- ]
+ "depth": 2
}, {
"type": "file",
"data": {
diff --git a/sample/doc/invoice/CreateInvoice.html b/sample/doc/invoice/CreateInvoice.html
index 722c9f1..2b73711 100644
--- a/sample/doc/invoice/CreateInvoice.html
+++ b/sample/doc/invoice/CreateInvoice.html
@@ -40,7 +40,18 @@ used to identify merchant
$billing = $invoice ->getBillingInfo();
$billing [0 ]
- ->setEmail("example@example.com" );
$items =
array ();
$items [
0 ] =
new InvoiceItem();
diff --git a/sample/doc/notifications/createWebhook.html b/sample/doc/notifications/CreateWebhook.html
similarity index 96%
rename from sample/doc/notifications/createWebhook.html
rename to sample/doc/notifications/CreateWebhook.html
index 059a74d..a63b581 100644
--- a/sample/doc/notifications/createWebhook.html
+++ b/sample/doc/notifications/CreateWebhook.html
@@ -1,4 +1,4 @@
-
notifications/createWebhook
Billing Information
Set the email address for each billing