From d62e8db407827229c6c7aabfa54792d0113b99e4 Mon Sep 17 00:00:00 2001 From: Bhavani Bheemanadham Date: Fri, 15 Jul 2016 15:42:18 -0500 Subject: [PATCH] Preparing for 1.7.4 - Updated Changelog - Updated PayPalConstants.php with latest version - Added new line at the end of file --- CHANGELOG.md | 254 +++++++++--------- lib/PayPal/Core/PayPalConstants.php | 2 +- .../CreateBillingAgreementWithCreditCard.html | 2 +- .../CreateBillingAgreementWithPayPal.html | 2 +- sample/doc/billing/CreatePlan.html | 2 +- sample/doc/billing/DeletePlan.html | 2 +- sample/doc/billing/ExecuteAgreement.html | 2 +- sample/doc/billing/GetBillingAgreement.html | 2 +- sample/doc/billing/GetPlan.html | 2 +- sample/doc/billing/ListPlans.html | 2 +- .../billing/ReactivateBillingAgreement.html | 2 +- .../billing/SearchBillingTransactions.html | 2 +- .../doc/billing/SuspendBillingAgreement.html | 2 +- .../doc/billing/UpdateBillingAgreement.html | 2 +- sample/doc/billing/UpdatePlan.html | 2 +- .../billing/UpdatePlanPaymentDefinitions.html | 2 +- sample/doc/invoice/CancelInvoice.html | 2 +- sample/doc/invoice/CreateInvoice.html | 2 +- .../doc/invoice/CreateThirdPartyInvoice.html | 2 +- sample/doc/invoice/DeleteInvoice.html | 2 +- sample/doc/invoice/GetInvoice.html | 2 +- sample/doc/invoice/GetNextInvoiceNumber.html | 2 +- sample/doc/invoice/ListInvoice.html | 2 +- sample/doc/invoice/RecordPayment.html | 2 +- sample/doc/invoice/RecordRefund.html | 2 +- sample/doc/invoice/RemindInvoice.html | 2 +- sample/doc/invoice/RetrieveQRCode.html | 2 +- sample/doc/invoice/SearchInvoices.html | 2 +- sample/doc/invoice/SendInvoice.html | 2 +- sample/doc/invoice/UpdateInvoice.html | 2 +- .../GenerateAccessTokenFromRefreshToken.html | 2 +- sample/doc/lipp/GetUserInfo.html | 2 +- sample/doc/lipp/ObtainUserConsent.html | 2 +- sample/doc/lipp/UserConsentRedirect.html | 2 +- sample/doc/notifications/CreateWebhook.html | 2 +- .../doc/notifications/DeleteAllWebhooks.html | 2 +- sample/doc/notifications/DeleteWebhook.html | 2 +- sample/doc/notifications/GetWebhook.html | 2 +- .../ListSubscribedWebhookEventTypes.html | 2 +- sample/doc/notifications/ListWebhooks.html | 2 +- .../notifications/SearchWebhookEvents.html | 2 +- sample/doc/notifications/UpdateWebhook.html | 2 +- .../notifications/ValidateWebhookEvent.html | 2 +- .../notifications/WebhookEventTypesList.html | 2 +- .../payment-experience/CreateWebProfile.html | 2 +- .../payment-experience/DeleteWebProfile.html | 2 +- .../doc/payment-experience/GetWebProfile.html | 2 +- .../payment-experience/ListWebProfiles.html | 2 +- .../PartiallyUpdateWebProfile.html | 2 +- .../payment-experience/UpdateWebProfile.html | 2 +- sample/doc/payments/AuthorizationCapture.html | 2 +- sample/doc/payments/AuthorizePayment.html | 2 +- .../payments/AuthorizePaymentUsingPayPal.html | 2 +- sample/doc/payments/CreateFuturePayment.html | 2 +- sample/doc/payments/CreatePayment.html | 2 +- .../payments/CreatePaymentUsingPayPal.html | 2 +- .../payments/CreatePaymentUsingSavedCard.html | 2 +- sample/doc/payments/ExecutePayment.html | 2 +- sample/doc/payments/GetAuthorization.html | 2 +- sample/doc/payments/GetCapture.html | 2 +- sample/doc/payments/GetPayment.html | 2 +- sample/doc/payments/ListPayments.html | 2 +- sample/doc/payments/OrderAuthorize.html | 2 +- sample/doc/payments/OrderCapture.html | 2 +- .../payments/OrderCreateForAuthorization.html | 2 +- .../doc/payments/OrderCreateForCapture.html | 2 +- sample/doc/payments/OrderCreateForVoid.html | 2 +- .../doc/payments/OrderCreateUsingPayPal.html | 2 +- sample/doc/payments/OrderDoVoid.html | 2 +- sample/doc/payments/OrderGet.html | 2 +- sample/doc/payments/Reauthorization.html | 2 +- sample/doc/payments/RefundCapture.html | 2 +- sample/doc/payments/UpdatePayment.html | 2 +- sample/doc/payments/VoidAuthorization.html | 2 +- sample/doc/payouts/CancelPayoutItem.html | 2 +- sample/doc/payouts/CreateBatchPayout.html | 2 +- sample/doc/payouts/CreateSinglePayout.html | 2 +- sample/doc/payouts/GetPayoutBatchStatus.html | 2 +- sample/doc/payouts/GetPayoutItemStatus.html | 2 +- sample/doc/sale/GetSale.html | 2 +- sample/doc/sale/RefundSale.html | 2 +- sample/doc/tls/TlsCheck.html | 2 +- sample/doc/vault/CreateBankAccount.html | 2 +- sample/doc/vault/CreateCreditCard.html | 2 +- sample/doc/vault/DeleteBankAccount.html | 2 +- sample/doc/vault/DeleteCreditCard.html | 2 +- sample/doc/vault/GetBankAccount.html | 2 +- sample/doc/vault/GetCreditCard.html | 2 +- sample/doc/vault/ListCreditCards.html | 2 +- sample/doc/vault/UpdateCreditCard.html | 2 +- 90 files changed, 219 insertions(+), 213 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index b95e14b..881ce26 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,18 +1,24 @@ PayPal PHP SDK release notes ============================ +1.7.4 +----- +* Fixed Duplicate conditional expression in PayPalCredentialManager.php [#594](https://github.com/paypal/PayPal-PHP-SDK/pull/594). +* Updated Invoicing APIs [#605](https://github.com/paypal/PayPal-PHP-SDK/pull/605). +* Fixed PSR code style errors [#607](https://github.com/paypal/PayPal-PHP-SDK/pull/607). + 1.7.3 ----- -* Enabled Third Party Invoicing [#581](https://github.com/paypal/PayPal-PHP-SDK/pull/581) +* Enabled Third Party Invoicing [#581](https://github.com/paypal/PayPal-PHP-SDK/pull/581). 1.7.2 ---- -* Vault API updates -* Fixes #575 +* Vault API updates. +* Fixes #575. 1.7.1 ---- -* Fixes #559 +* Fixes #559. 1.7.0 ---- @@ -21,236 +27,236 @@ PayPal PHP SDK release notes 1.6.4 ---- -* SSL Connect Error Fix -* Fixes #474 +* SSL Connect Error Fix. +* Fixes #474. 1.6.3 ---- -* Fixes Continue 100 Header -* Minor Bug Fixes #452 +* Fixes Continue 100 Header. +* Minor Bug Fixes #452. 1.6.2 ---- -* TLS Check Sample Added -* Updated README +* TLS Check Sample Added. +* Updated README. 1.6.1 ---- -* User Agent Changes -* SDK Version Fix +* User Agent Changes. +* SDK Version Fix. 1.6.0 ---- -* Updated Payments API to latest version -* Removed ModelAccessValidator -* Minor Bug Fixes #399 +* Updated Payments API to latest version. +* Removed ModelAccessValidator. +* Minor Bug Fixes #399. 1.5.1 ---- -* Fixed a bug #343 in Future Payment -* Minor Improvements -* Updates to Sample Docs +* Fixed a bug #343 in Future Payment. +* Minor Improvements. +* Updates to Sample Docs. 1.5.0 ---- -* Enabled Vault List API -* Added More Fields to Vault Credit Card Object -* Minor Fixes +* Enabled Vault List API. +* Added More Fields to Vault Credit Card Object. +* Minor Fixes. 1.4.0 ---- -* Ability to validate Webhook -* Fixes to Logging Manager to skip if mode is not set -* SDK updates and fixes +* Ability to validate Webhook. +* Fixes to Logging Manager to skip if mode is not set. +* SDK updates and fixes. 1.3.2 ---- -* Minor Fix for Agreement Details +* Minor Fix for Agreement Details. 1.3.1 ---- -* PayPalModel to differentiate between empty objects and array -* Fixed CURLINFO_HEADER_SIZE miscalculations if Proxy Enabled +* PayPalModel to differentiate between empty objects and array. +* Fixed CURLINFO_HEADER_SIZE miscalculations if Proxy Enabled. 1.3.0 ---- -* Updated Payment APIs -* Updating ModelAccessValidator to be disabled if not set explicitly +* Updated Payment APIs. +* Updating ModelAccessValidator to be disabled if not set explicitly. 1.2.1 ---- -* Ability to handle missing accessors for unknown objects in json +* Ability to handle missing accessors for unknown objects in json. 1.2.0 ---- -* Order API Support +* Order API Support. * Introduced DEBUG mode in Logging. Deprecated FINE. -* Ability to not Log on DEBUG, while on live environment -* Vault APIs Update API Support -* Transaction Fee Added in Sale Object -* Fixed #237, #234, #233, #215 +* Ability to not Log on DEBUG, while on live environment. +* Vault APIs Update API Support. +* Transaction Fee Added in Sale Object. +* Fixed #237, #234, #233, #215. 1.1.1 ---- -* Fix to Cipher Encryption (Critical) +* Fix to Cipher Encryption (Critical). 1.1.0 ---- -* Enabled Payouts Cancel API Support for Unclaimed Payouts -* Encrypting Access Token in Cached Storage -* Updated Billing Agreement Search Transaction code to pass start_date and end_date -* Updated OAuthToken to throw proper error on not receiving access token -* Minor Bug Fixes and Documentation Updates +* Enabled Payouts Cancel API Support for Unclaimed Payouts. +* Encrypting Access Token in Cached Storage. +* Updated Billing Agreement Search Transaction code to pass start_date and end_date. +* Updated OAuthToken to throw proper error on not receiving access token. +* Minor Bug Fixes and Documentation Updates. 1.0.0 ---- -* Enabled Payouts API Support -* Authorization Cache Custom Path Directory Configuration -* Helper Functions to retrieve specific HATEOS Links -* Default Mode set to Sandbox +* Enabled Payouts API Support. +* Authorization Cache Custom Path Directory Configuration. +* Helper Functions to retrieve specific HATEOS Links. +* Default Mode set to Sandbox. * Enabled Rest SDK to work nicely with Classic SDKs. -* If missing annotation of return type in Getters, it throws a proper exception -* `echo` on PayPalModel Objects will print nice looking JSON -* Updated Invoice Object to retrieve payments and refunds +* If missing annotation of return type in Getters, it throws a proper exception. +* `echo` on PayPalModel Objects will print nice looking JSON. +* Updated Invoice Object to retrieve payments and refunds. > ## Breaking Changes -* Removed Deprecated Getter Setters from all Model Classes - * All Camelcase getters and setters are removed. Please use first letter uppercase syntax - * E.g. instead of using get_notify_url(), use getNotifyUrl() instead -* Renamed Classes - * PayPal\Common\PPModel => PayPal\Common\PayPalModel - * PayPal\Common\ResourceModel => PayPal\Common\PayPalResourceModel - * PayPal\Common\PPUserAgent => PayPal\Common\PayPalUserAgent - * PayPal\Core\PPConfigManager => PayPal\Core\PayPalConfigManager - * PayPal\Core\PPConstants => PayPal\Core\PayPalConstants - * PayPal\Core\PPCredentialManager => PayPal\Core\PayPalCredentialManager - * PayPal\Core\PPHttpConfig => PayPal\Core\PayPalHttpConfig - * PayPal\Core\PPHttpConnection => PayPal\Core\PayPalHttpConnection - * PayPal\Core\PPLoggingLevel => PayPal\Core\PayPalLoggingLevel - * PayPal\Core\PPLoggingManager => PayPal\Core\PayPalLoggingManager - * PayPal\Exception\PPConfigurationException => PayPal\Exception\PayPalConfigurationException - * PayPal\Exception\PPConnectionException => PayPal\Exception\PayPalConnectionException - * PayPal\Exception\PPInvalidCredentialException => PayPal\Exception\PayPalInvalidCredentialException - * PayPal\Exception\PPMissingCredentialException => PayPal\Exception\PayPalMissingCredentialException - * PayPal\Handler\IPPHandler => PayPal\Handler\IPayPalHandler - * PayPal\Transport\PPRestCall => PayPal\Transport\PayPalRestCall -* Namespace Changes and Class Naming Convention - * PayPal\Common\FormatConverter => PayPal\Converter\FormatConverter - * PayPal\Rest\RestHandler => PayPal\Handler\RestHandler - * PayPal\Rest\OauthHandler => PayPal\Handler\OauthHandler -* Fixes to Methods - * PayPal\Api\Invoice->getPaymentDetails() was renamed to getPayments() - * PayPal\Api\Invoice->getRefundDetails() was renamed to getRefunds() +* Removed Deprecated Getter Setters from all Model Classes. + * All Camelcase getters and setters are removed. Please use first letter uppercase syntax. + * E.g. instead of using get_notify_url(), use getNotifyUrl() instead. +* Renamed Classes. + * PayPal\Common\PPModel => PayPal\Common\PayPalModel. + * PayPal\Common\ResourceModel => PayPal\Common\PayPalResourceModel. + * PayPal\Common\PPUserAgent => PayPal\Common\PayPalUserAgent. + * PayPal\Core\PPConfigManager => PayPal\Core\PayPalConfigManager. + * PayPal\Core\PPConstants => PayPal\Core\PayPalConstants. + * PayPal\Core\PPCredentialManager => PayPal\Core\PayPalCredentialManager. + * PayPal\Core\PPHttpConfig => PayPal\Core\PayPalHttpConfig. + * PayPal\Core\PPHttpConnection => PayPal\Core\PayPalHttpConnection. + * PayPal\Core\PPLoggingLevel => PayPal\Core\PayPalLoggingLevel. + * PayPal\Core\PPLoggingManager => PayPal\Core\PayPalLoggingManager. + * PayPal\Exception\PPConfigurationException => PayPal\Exception\PayPalConfigurationException. + * PayPal\Exception\PPConnectionException => PayPal\Exception\PayPalConnectionException. + * PayPal\Exception\PPInvalidCredentialException => PayPal\Exception\PayPalInvalidCredentialException. + * PayPal\Exception\PPMissingCredentialException => PayPal\Exception\PayPalMissingCredentialException. + * PayPal\Handler\IPPHandler => PayPal\Handler\IPayPalHandler. + * PayPal\Transport\PPRestCall => PayPal\Transport\PayPalRestCall. +* Namespace Changes and Class Naming Convention. + * PayPal\Common\FormatConverter => PayPal\Converter\FormatConverter. + * PayPal\Rest\RestHandler => PayPal\Handler\RestHandler. + * PayPal\Rest\OauthHandler => PayPal\Handler\OauthHandler. +* Fixes to Methods. + * PayPal\Api\Invoice->getPaymentDetails() was renamed to getPayments(). + * PayPal\Api\Invoice->getRefundDetails() was renamed to getRefunds(). 1.0.0-beta ---- -* Namespace Changes and Class Naming Convention -* Helper Functions to retrieve specific HATEOS Links -* Default Mode set to Sandbox +* Namespace Changes and Class Naming Convention. +* Helper Functions to retrieve specific HATEOS Links. +* Default Mode set to Sandbox. 0.16.1 ---- -* Configurable Headers for all requests to PayPal -* Allows adding additional headers to every call to PayPal APIs -* SDK Config to add headers with http.headers.* syntax +* Configurable Headers for all requests to PayPal. +* Allows adding additional headers to every call to PayPal APIs. +* SDK Config to add headers with http.headers.* syntax. 0.16.0 ---- -* Enabled Webhook Management Capabilities -* Enabled Caching Abilities for Access Tokens +* Enabled Webhook Management Capabilities. +* Enabled Caching Abilities for Access Tokens. 0.15.1 ---- -* Enabled Deleting Billing Plans -* Updated Samples +* Enabled Deleting Billing Plans. +* Updated Samples. 0.15.0 ---- -* Extended Invoicing Capabilities -* Allows QR Code Generation for Invoices -* Updated Formatter to work with multiple locales -* Removed Future Payments mandate on Correlation Id +* Extended Invoicing Capabilities. +* Allows QR Code Generation for Invoices. +* Updated Formatter to work with multiple locales. +* Removed Future Payments mandate on Correlation Id. 0.14.2 ---- -* Quick Patch to Unset Cipher List for NSS +* Quick Patch to Unset Cipher List for NSS. 0.14.1 ---- -* Updated HttpConfig to use TLSv1 as Cipher List -* Added resetRequestId in ApiContext to enable multiple create calls in succession -* Sanitize Input for Price Variables -* Made samples look better and work best +* Updated HttpConfig to use TLSv1 as Cipher List. +* Added resetRequestId in ApiContext to enable multiple create calls in succession. +* Sanitize Input for Price Variables. +* Made samples look better and work best. 0.14.0 ---- -* Enabled Billing Plans and Agreements APIs -* Renamed SDK name to PayPal-PHP-SDK +* Enabled Billing Plans and Agreements APIs. +* Renamed SDK name to PayPal-PHP-SDK. 0.13.2 ---- -* Updated Future Payments and LIPP Support -* Updated Logging Syntax +* Updated Future Payments and LIPP Support. +* Updated Logging Syntax. 0.13.1 ---- -* Enabled TLS version 1.x for SSL Negotiation -* Updated Identity Support from SDK Core -* Fixed Backward Compatibility changes +* Enabled TLS version 1.x for SSL Negotiation. +* Updated Identity Support from SDK Core. +* Fixed Backward Compatibility changes. 0.13.0 ---- -* Enabled Payment Experience +* Enabled Payment Experience. 0.12.0 ---- -* Enabled EC Parameters Support for Payment APIs -* Enabled Validation for Missing Accessors +* Enabled EC Parameters Support for Payment APIs. +* Enabled Validation for Missing Accessors. 0.11.1 ---- -* Removed Dependency from SDK Core Project -* Enabled Future Payments +* Removed Dependency from SDK Core Project. +* Enabled Future Payments. 0.11.0 ---- -* Ability for PUT and PATCH requests -* Invoice number, custom and soft descriptor -* Order API and tests, more Authorization tests -* remove references to sdk-packages -* patch for retrieving paid invoices -* Shipping address docs patch -* Remove @array annotation -* Validate return cancel url -* type hinting, comment cleaning, and getters and setters for Shipping +* Ability for PUT and PATCH requests. +* Invoice number, custom and soft descriptor. +* Order API and tests, more Authorization tests. +* remove references to sdk-packages. +* patch for retrieving paid invoices. +* Shipping address docs patch. +* Remove @array annotation. +* Validate return cancel url. +* type hinting, comment cleaning, and getters and setters for Shipping. 0.10.0 ----- -* N/A +* N/A. 0.9.0 ----- -* N/A +* N/A. 0.8.0 ----- -* Invoicing API support added +* Invoicing API support added. 0.7.1 ----- -* Added support for Reauthorization +* Added support for Reauthorization. 0.7.0 ----- -* Added support for Auth and Capture APIs -* Types modified to match the API Spec -* Updated SDK to use namespace supported core library +* Added support for Auth and Capture APIs. +* Types modified to match the API Spec. +* Updated SDK to use namespace supported core library. 0.6.0 ----- -* Adding support for dynamic configuration of SDK (Upgrading sdk-core-php dependency to V1.4.0) +* Adding support for dynamic configuration of SDK (Upgrading sdk-core-php dependency to V1.4.0). * Deprecating the setCredential method and changing resource class methods to take an ApiContext argument instead of a OauthTokenCredential argument. 0.5.0 ----- -* Initial Release +* Initial Release. diff --git a/lib/PayPal/Core/PayPalConstants.php b/lib/PayPal/Core/PayPalConstants.php index 239943f..9ef145c 100644 --- a/lib/PayPal/Core/PayPalConstants.php +++ b/lib/PayPal/Core/PayPalConstants.php @@ -12,7 +12,7 @@ class PayPalConstants { const SDK_NAME = 'PayPal-PHP-SDK'; - const SDK_VERSION = '1.7.3'; + const SDK_VERSION = '1.7.4'; /** * Approval URL for Payment diff --git a/sample/doc/billing/CreateBillingAgreementWithCreditCard.html b/sample/doc/billing/CreateBillingAgreementWithCreditCard.html index e7950d3..a44290c 100644 --- a/sample/doc/billing/CreateBillingAgreementWithCreditCard.html +++ b/sample/doc/billing/CreateBillingAgreementWithCreditCard.html @@ -77,4 +77,4 @@ Please note that the plan Id should be only set in this case.

exit(1); }

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

ResultPrinter::printResult("Created Billing Agreement.", "Agreement", $agreement->getId(), $request, $agreement); -return $agreement;
\ No newline at end of file +return $agreement; diff --git a/sample/doc/billing/CreateBillingAgreementWithPayPal.html b/sample/doc/billing/CreateBillingAgreementWithPayPal.html index 1ca1573..f0e15a0 100644 --- a/sample/doc/billing/CreateBillingAgreementWithPayPal.html +++ b/sample/doc/billing/CreateBillingAgreementWithPayPal.html @@ -52,4 +52,4 @@ method

exit(1); }

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

ResultPrinter::printResult("Created Billing Agreement. Please visit the URL to Approve.", "Agreement", "<a href='$approvalUrl' >$approvalUrl</a>", $request, $agreement); -return $agreement;
\ No newline at end of file +return $agreement; diff --git a/sample/doc/billing/CreatePlan.html b/sample/doc/billing/CreatePlan.html index 1af774b..e4ad20a 100644 --- a/sample/doc/billing/CreatePlan.html +++ b/sample/doc/billing/CreatePlan.html @@ -40,4 +40,4 @@ This will keep your plan compatible with both the possible scenarios on how it i exit(1); }

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

ResultPrinter::printResult("Created Plan", "Plan", $output->getId(), $request, $output); -return $output;
\ No newline at end of file +return $output; diff --git a/sample/doc/billing/DeletePlan.html b/sample/doc/billing/DeletePlan.html index b35510e..0b0b103 100644 --- a/sample/doc/billing/DeletePlan.html +++ b/sample/doc/billing/DeletePlan.html @@ -12,4 +12,4 @@ API used: /v1/payments/billing-plans

< exit(1); }

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

ResultPrinter::printResult("Deleted a Plan", "Plan", $createdPlan->getId(), null, null); -return $createdPlan;
\ No newline at end of file +return $createdPlan; diff --git a/sample/doc/billing/ExecuteAgreement.html b/sample/doc/billing/ExecuteAgreement.html index 6078686..3e571f5 100644 --- a/sample/doc/billing/ExecuteAgreement.html +++ b/sample/doc/billing/ExecuteAgreement.html @@ -15,4 +15,4 @@ Use this call to execute an agreement after the buyer approves it

exit(1); }

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

ResultPrinter::printResult("Get Agreement", "Agreement", $agreement->getId(), null, $agreement); } else {

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

ResultPrinter::printResult("User Cancelled the Approval", null); -}
\ No newline at end of file +} diff --git a/sample/doc/billing/GetBillingAgreement.html b/sample/doc/billing/GetBillingAgreement.html index 66e6fd5..db086ec 100644 --- a/sample/doc/billing/GetBillingAgreement.html +++ b/sample/doc/billing/GetBillingAgreement.html @@ -12,4 +12,4 @@ API used: /v1/payments/billing-agreements/

exit(1); }

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

ResultPrinter::printResult("Retrieved an Agreement", "Agreement", $agreement->getId(), $createdAgreement->getId(), $agreement); -return $agreement;
\ No newline at end of file +return $agreement; diff --git a/sample/doc/billing/GetPlan.html b/sample/doc/billing/GetPlan.html index 55c2544..9f9aa2a 100644 --- a/sample/doc/billing/GetPlan.html +++ b/sample/doc/billing/GetPlan.html @@ -12,4 +12,4 @@ API used: /v1/payments/billing-plans

< exit(1); }

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

ResultPrinter::printResult("Retrieved a Plan", "Plan", $plan->getId(), null, $plan); -return $plan;
\ No newline at end of file +return $plan; diff --git a/sample/doc/billing/ListPlans.html b/sample/doc/billing/ListPlans.html index f131b17..79a6d77 100644 --- a/sample/doc/billing/ListPlans.html +++ b/sample/doc/billing/ListPlans.html @@ -15,4 +15,4 @@ at exit(1); }

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

ResultPrinter::printResult("List of Plans", "Plan", null, $params, $planList); -return $planList;
\ No newline at end of file +return $planList; diff --git a/sample/doc/billing/ReactivateBillingAgreement.html b/sample/doc/billing/ReactivateBillingAgreement.html index 103fec4..c0dd49a 100644 --- a/sample/doc/billing/ReactivateBillingAgreement.html +++ b/sample/doc/billing/ReactivateBillingAgreement.html @@ -17,4 +17,4 @@ API used: /v1/payments/billing-agreements//suspend

exit(1); }

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

ResultPrinter::printResult("Reactivate the Agreement", "Agreement", $agreement->getId(), $suspendedAgreement, $agreement); -return $agreement;
\ No newline at end of file +return $agreement; diff --git a/sample/doc/billing/SearchBillingTransactions.html b/sample/doc/billing/SearchBillingTransactions.html index ae4a0be..2bfbeb0 100644 --- a/sample/doc/billing/SearchBillingTransactions.html +++ b/sample/doc/billing/SearchBillingTransactions.html @@ -12,4 +12,4 @@ API used: GET /v1/payments/billing-agreements//transactions? start exit(1); }

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

ResultPrinter::printResult("Search for Transactions", "AgreementTransaction", $agreementId, $params, $result); -return $agreement;
\ No newline at end of file +return $agreement; diff --git a/sample/doc/billing/SuspendBillingAgreement.html b/sample/doc/billing/SuspendBillingAgreement.html index 42de872..52a5e19 100644 --- a/sample/doc/billing/SuspendBillingAgreement.html +++ b/sample/doc/billing/SuspendBillingAgreement.html @@ -17,4 +17,4 @@ API used: /v1/payments/billing-agreements//suspend

exit(1); }

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

ResultPrinter::printResult("Suspended the Agreement", "Agreement", $agreement->getId(), $agreementStateDescriptor, $agreement); -return $agreement;
\ No newline at end of file +return $agreement; diff --git a/sample/doc/billing/UpdateBillingAgreement.html b/sample/doc/billing/UpdateBillingAgreement.html index 94d22f7..ce7d98f 100644 --- a/sample/doc/billing/UpdateBillingAgreement.html +++ b/sample/doc/billing/UpdateBillingAgreement.html @@ -30,4 +30,4 @@ API used: /v1/payments/billing-agreements/

exit(1); }

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

ResultPrinter::printResult("Updated the Agreement with new Description and Updated Shipping Address", "Agreement", $agreement->getId(), $patchRequest, $agreement); -return $agreement;
\ No newline at end of file +return $agreement; diff --git a/sample/doc/billing/UpdatePlan.html b/sample/doc/billing/UpdatePlan.html index 90c7184..6a6f89b 100644 --- a/sample/doc/billing/UpdatePlan.html +++ b/sample/doc/billing/UpdatePlan.html @@ -30,4 +30,4 @@ API used: /v1/payments/billing-plans/

exit(1); }

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

ResultPrinter::printResult("Updated the Plan to Active State", "Plan", $plan->getId(), $patchRequest, $plan); -return $plan;
\ No newline at end of file +return $plan; diff --git a/sample/doc/billing/UpdatePlanPaymentDefinitions.html b/sample/doc/billing/UpdatePlanPaymentDefinitions.html index a7481e6..437eb7c 100644 --- a/sample/doc/billing/UpdatePlanPaymentDefinitions.html +++ b/sample/doc/billing/UpdatePlanPaymentDefinitions.html @@ -36,4 +36,4 @@ API used: /v1/payments/billing-plans/

exit(1); }

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

ResultPrinter::printResult("Updated the Plan Payment Definition", "Plan", $plan->getId(), $patchRequest, $plan); -return $plan;
\ No newline at end of file +return $plan; diff --git a/sample/doc/invoice/CancelInvoice.html b/sample/doc/invoice/CancelInvoice.html index 878ae92..712cced 100644 --- a/sample/doc/invoice/CancelInvoice.html +++ b/sample/doc/invoice/CancelInvoice.html @@ -22,4 +22,4 @@ notification object (See bootstrap.php for more on ApiContext)

$cancelStatus = $invoice->cancel($notify, $apiContext); } catch (Exception $ex) {

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

ResultPrinter::printError("Cancel Invoice", "Invoice", null, $notify, $ex); exit(1); -}

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

ResultPrinter::printResult("Cancel Invoice", "Invoice", $invoice->getId(), $notify, null);
\ No newline at end of file +}

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

ResultPrinter::printResult("Cancel Invoice", "Invoice", $invoice->getId(), $notify, null);
diff --git a/sample/doc/invoice/CreateInvoice.html b/sample/doc/invoice/CreateInvoice.html index d5f2d71..d63f31e 100644 --- a/sample/doc/invoice/CreateInvoice.html +++ b/sample/doc/invoice/CreateInvoice.html @@ -113,4 +113,4 @@ with a valid ApiContext (See bootstrap.php for more on ApiContext)< exit(1); }

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

ResultPrinter::printResult("Create Invoice", "Invoice", $invoice->getId(), $request, $invoice); -return $invoice;
\ No newline at end of file +return $invoice; diff --git a/sample/doc/invoice/CreateThirdPartyInvoice.html b/sample/doc/invoice/CreateThirdPartyInvoice.html index 727e4aa..ae2b318 100644 --- a/sample/doc/invoice/CreateThirdPartyInvoice.html +++ b/sample/doc/invoice/CreateThirdPartyInvoice.html @@ -72,4 +72,4 @@ with a valid ApiContext (See bootstrap.php for more on ApiContext)< }

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

ResultPrinter::printResult("Send Invoice", "Invoice", $invoice->getId(), $request, $invoice); -return $invoice;
\ No newline at end of file +return $invoice; diff --git a/sample/doc/invoice/DeleteInvoice.html b/sample/doc/invoice/DeleteInvoice.html index 4db205e..dfafafc 100644 --- a/sample/doc/invoice/DeleteInvoice.html +++ b/sample/doc/invoice/DeleteInvoice.html @@ -13,4 +13,4 @@ notification object (See bootstrap.php for more on ApiContext)

$deleteStatus = $invoice->delete($apiContext); } catch (Exception $ex) {

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

ResultPrinter::printError("Delete Invoice", "Invoice", null, $deleteStatus, $ex); exit(1); -}

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

ResultPrinter::printResult("Delete Invoice", "Invoice", $invoice->getId(), null, null);
\ No newline at end of file +}

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

ResultPrinter::printResult("Delete Invoice", "Invoice", $invoice->getId(), null, null);
diff --git a/sample/doc/invoice/GetInvoice.html b/sample/doc/invoice/GetInvoice.html index 934ca74..eeec8bf 100644 --- a/sample/doc/invoice/GetInvoice.html +++ b/sample/doc/invoice/GetInvoice.html @@ -15,4 +15,4 @@ Invoice ID exit(1); }

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

ResultPrinter::printResult("Get Invoice", "Invoice", $invoice->getId(), $invoiceId, $invoice); -return $invoice;
\ No newline at end of file +return $invoice; diff --git a/sample/doc/invoice/GetNextInvoiceNumber.html b/sample/doc/invoice/GetNextInvoiceNumber.html index dffea61..26633a7 100644 --- a/sample/doc/invoice/GetNextInvoiceNumber.html +++ b/sample/doc/invoice/GetNextInvoiceNumber.html @@ -9,4 +9,4 @@ the next invoice number.

< exit(1); }

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

ResultPrinter::printResult("Get Next Invoice Number", "InvoiceNumber", null, $number, $number); -return $number;
\ No newline at end of file +return $number; diff --git a/sample/doc/invoice/ListInvoice.html b/sample/doc/invoice/ListInvoice.html index 458768c..edeeadd 100644 --- a/sample/doc/invoice/ListInvoice.html +++ b/sample/doc/invoice/ListInvoice.html @@ -11,4 +11,4 @@ Refer the method doc for valid values for keys (See bootstrap.php for more on ApiContext)

$invoices = Invoice::getAll(array('page' => 0, 'page_size' => 4, 'total_count_required' => "true"), $apiContext); } catch (Exception $ex) {

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

ResultPrinter::printError("Lookup Invoice History", "Invoice", null, null, $ex); exit(1); -}

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

ResultPrinter::printResult("Lookup Invoice History", "Invoice", null, null, $invoices);
\ No newline at end of file +}

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

ResultPrinter::printResult("Lookup Invoice History", "Invoice", null, null, $invoices);
diff --git a/sample/doc/invoice/RecordPayment.html b/sample/doc/invoice/RecordPayment.html index 16276ad..dabb9dc 100644 --- a/sample/doc/invoice/RecordPayment.html +++ b/sample/doc/invoice/RecordPayment.html @@ -33,4 +33,4 @@ Invoice ID exit(1); }

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

ResultPrinter::printResult("Get Invoice (Not Required - For Sample Only)", "Invoice", $invoice->getId(), $invoice->getId(), $invoice); -return $invoice;
\ No newline at end of file +return $invoice; diff --git a/sample/doc/invoice/RecordRefund.html b/sample/doc/invoice/RecordRefund.html index b6a9fef..4a5f63d 100644 --- a/sample/doc/invoice/RecordRefund.html +++ b/sample/doc/invoice/RecordRefund.html @@ -32,4 +32,4 @@ Invoice ID exit(1); }

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

ResultPrinter::printResult("Get Invoice (Not Required - For Sample Only)", "Invoice", $invoice->getId(), $invoice->getId(), $invoice); -return $invoice;
\ No newline at end of file +return $invoice; diff --git a/sample/doc/invoice/RemindInvoice.html b/sample/doc/invoice/RemindInvoice.html index 8f4b21f..8d1c88f 100644 --- a/sample/doc/invoice/RemindInvoice.html +++ b/sample/doc/invoice/RemindInvoice.html @@ -32,4 +32,4 @@ Invoice ID exit(1); }

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

ResultPrinter::printResult("Get Invoice (Not Required - For Sample Only)", "Invoice", $invoice->getId(), $invoice->getId(), $invoice); -return $invoice;
\ No newline at end of file +return $invoice; diff --git a/sample/doc/invoice/RetrieveQRCode.html b/sample/doc/invoice/RetrieveQRCode.html index 976db68..abecf44 100644 --- a/sample/doc/invoice/RetrieveQRCode.html +++ b/sample/doc/invoice/RetrieveQRCode.html @@ -18,4 +18,4 @@ This will save the image as /samples/invoice/images/sample.png

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

ResultPrinter::printResult("Retrieved QR Code for Invoice", "Invoice", $invoice->getId(), null, $image);

Show the Image

In PHP, there are many ways to present an images. One of the ways, you could directly inject the base64-encoded string -with proper image information in front of it.

echo '<img src="data:image/png;base64,'. $image->getImage() . '" alt="Invoice QR Code" />';
\ No newline at end of file +with proper image information in front of it.

echo '<img src="data:image/png;base64,'. $image->getImage() . '" alt="Invoice QR Code" />';
diff --git a/sample/doc/invoice/SearchInvoices.html b/sample/doc/invoice/SearchInvoices.html index d9735eb..8b22153 100644 --- a/sample/doc/invoice/SearchInvoices.html +++ b/sample/doc/invoice/SearchInvoices.html @@ -22,4 +22,4 @@ Refer the method doc for valid values for keys (See bootstrap.php for more on ApiContext)

$invoices = Invoice::search($search, $apiContext); } catch (Exception $ex) {

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

ResultPrinter::printError("Search Invoice", "Invoice", null, null, $ex); exit(1); -}

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

ResultPrinter::printResult("Search Invoice", "Invoice", null, $search, $invoices);
\ No newline at end of file +}

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

ResultPrinter::printResult("Search Invoice", "Invoice", null, $search, $invoices);
diff --git a/sample/doc/invoice/SendInvoice.html b/sample/doc/invoice/SendInvoice.html index 05b0b24..5e3e470 100644 --- a/sample/doc/invoice/SendInvoice.html +++ b/sample/doc/invoice/SendInvoice.html @@ -21,4 +21,4 @@ Invoice ID exit(1); }

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

ResultPrinter::printResult("Get Invoice (Not Required - For Sample Only)", "Invoice", $invoice->getId(), $invoice->getId(), $invoice); -return $invoice;
\ No newline at end of file +return $invoice; diff --git a/sample/doc/invoice/UpdateInvoice.html b/sample/doc/invoice/UpdateInvoice.html index 84d41a6..835875e 100644 --- a/sample/doc/invoice/UpdateInvoice.html +++ b/sample/doc/invoice/UpdateInvoice.html @@ -26,4 +26,4 @@ Invoice ID exit(1); }

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

ResultPrinter::printResult("Get Invoice (Not Required - For Sample Only)", "Invoice", $invoice->getId(), $invoice->getId(), $invoice); -return $invoice;
\ No newline at end of file +return $invoice; diff --git a/sample/doc/lipp/GenerateAccessTokenFromRefreshToken.html b/sample/doc/lipp/GenerateAccessTokenFromRefreshToken.html index 1e24725..c25237d 100644 --- a/sample/doc/lipp/GenerateAccessTokenFromRefreshToken.html +++ b/sample/doc/lipp/GenerateAccessTokenFromRefreshToken.html @@ -6,4 +6,4 @@ $tokenInfo = $tokenInfo->createFromRefreshToken(array('refresh_token' => $refreshToken), $apiContext); } catch (Exception $ex) {

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

ResultPrinter::printError("Obtained Access Token From Refresh Token", "Access Token", null, null, $ex); exit(1); -}

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

ResultPrinter::printResult("Obtained Access Token From Refresh Token", "Access Token", $tokenInfo->getAccessToken(), null, $tokenInfo);
\ No newline at end of file +}

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

ResultPrinter::printResult("Obtained Access Token From Refresh Token", "Access Token", $tokenInfo->getAccessToken(), null, $tokenInfo);
diff --git a/sample/doc/lipp/GetUserInfo.html b/sample/doc/lipp/GetUserInfo.html index 62d9eae..ff0ef88 100644 --- a/sample/doc/lipp/GetUserInfo.html +++ b/sample/doc/lipp/GetUserInfo.html @@ -16,4 +16,4 @@ to retreive the information. The short lived access token can be retrieved using $userInfo = OpenIdUserinfo::getUserinfo($params, $apiContext); } catch (Exception $ex) {

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

ResultPrinter::printError("User Information", "User Info", null, $params, $ex); exit(1); -}

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

ResultPrinter::printResult("User Information", "User Info", $userInfo->getUserId(), $params, $userInfo);
\ No newline at end of file +}

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

ResultPrinter::printResult("User Information", "User Info", $userInfo->getUserId(), $params, $userInfo);
diff --git a/sample/doc/lipp/ObtainUserConsent.html b/sample/doc/lipp/ObtainUserConsent.html index 69c66bf..ac3db66 100644 --- a/sample/doc/lipp/ObtainUserConsent.html +++ b/sample/doc/lipp/ObtainUserConsent.html @@ -16,4 +16,4 @@ null, null, $apiContext -);

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

ResultPrinter::printResult("Generated the User Consent URL", "URL", '<a href="'. $redirectUrl . '" >Click Here to Obtain User Consent</a>', $baseUrl, $redirectUrl);
\ No newline at end of file +);

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

ResultPrinter::printResult("Generated the User Consent URL", "URL", '<a href="'. $redirectUrl . '" >Click Here to Obtain User Consent</a>', $baseUrl, $redirectUrl);
diff --git a/sample/doc/lipp/UserConsentRedirect.html b/sample/doc/lipp/UserConsentRedirect.html index 5373232..98b6dd8 100644 --- a/sample/doc/lipp/UserConsentRedirect.html +++ b/sample/doc/lipp/UserConsentRedirect.html @@ -14,4 +14,4 @@ The user would then able to retrieve the access token by getting the code, which } catch (PayPalConnectionException $ex) {

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

ResultPrinter::printError("Obtained Access Token", "Access Token", null, $_GET['code'], $ex); exit(1); }

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

ResultPrinter::printResult("Obtained Access Token", "Access Token", $accessToken->getAccessToken(), $_GET['code'], $accessToken); -}
\ No newline at end of file +} diff --git a/sample/doc/notifications/CreateWebhook.html b/sample/doc/notifications/CreateWebhook.html index 0a76b53..aefb5c0 100644 --- a/sample/doc/notifications/CreateWebhook.html +++ b/sample/doc/notifications/CreateWebhook.html @@ -49,4 +49,4 @@ be using this in production

exit(1); }

Print Success Result

}

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

ResultPrinter::printResult("Created Webhook", "Webhook", $output->getId(), $request, $output); -return $output;
\ No newline at end of file +return $output; diff --git a/sample/doc/notifications/DeleteAllWebhooks.html b/sample/doc/notifications/DeleteAllWebhooks.html index d5c80b0..12089c6 100644 --- a/sample/doc/notifications/DeleteAllWebhooks.html +++ b/sample/doc/notifications/DeleteAllWebhooks.html @@ -9,4 +9,4 @@ To properly use the sample, change the clientId and Secret from bootstrap.php fi exit(1); }

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

ResultPrinter::printResult("Delete all Webhook, as it may have exceed the maximum count.", "WebhookList", null, null, null); -return $output;
\ No newline at end of file +return $output; diff --git a/sample/doc/notifications/DeleteWebhook.html b/sample/doc/notifications/DeleteWebhook.html index 8eb151b..c706cb9 100644 --- a/sample/doc/notifications/DeleteWebhook.html +++ b/sample/doc/notifications/DeleteWebhook.html @@ -8,4 +8,4 @@ API used: DELETE v1/notifications/webhooks/

exit(1); }

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

ResultPrinter::printResult("Delete a Webhook", "Webhook", $webhook->getId(), null, null); -return $output;
\ No newline at end of file +return $output; diff --git a/sample/doc/notifications/GetWebhook.html b/sample/doc/notifications/GetWebhook.html index a03915f..84f4392 100644 --- a/sample/doc/notifications/GetWebhook.html +++ b/sample/doc/notifications/GetWebhook.html @@ -11,4 +11,4 @@ However, in real case scenario, we could use just the ID from database or retrie exit(1); }

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

ResultPrinter::printResult("Get a Webhook", "Webhook", $output->getId(), null, $output); -return $output;
\ No newline at end of file +return $output; diff --git a/sample/doc/notifications/ListSubscribedWebhookEventTypes.html b/sample/doc/notifications/ListSubscribedWebhookEventTypes.html index 2b4a8ec..75f7f28 100644 --- a/sample/doc/notifications/ListSubscribedWebhookEventTypes.html +++ b/sample/doc/notifications/ListSubscribedWebhookEventTypes.html @@ -10,4 +10,4 @@ API used: GET /v1/notifications/webhooks/

exit(1); }

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

ResultPrinter::printResult("List subscribed webhook event types", "WebhookEventTypeList", null, null, $output); -return $output;
\ No newline at end of file +return $output; diff --git a/sample/doc/notifications/ListWebhooks.html b/sample/doc/notifications/ListWebhooks.html index 275db13..0685d3f 100644 --- a/sample/doc/notifications/ListWebhooks.html +++ b/sample/doc/notifications/ListWebhooks.html @@ -10,4 +10,4 @@ In real case, you dont need to create any webhook to make this API call.

exit(1); }

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

ResultPrinter::printResult("List all webhooks", "WebhookList", null, null, $output); -return $output;
\ No newline at end of file +return $output; diff --git a/sample/doc/notifications/SearchWebhookEvents.html b/sample/doc/notifications/SearchWebhookEvents.html index 266f726..db88034 100644 --- a/sample/doc/notifications/SearchWebhookEvents.html +++ b/sample/doc/notifications/SearchWebhookEvents.html @@ -15,4 +15,4 @@ for a webhook events. This is made in a sample just to make sure there is minimu }

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

ResultPrinter::printResult("Search Webhook events", "WebhookEventList", null, $params, $output); -return $output;
\ No newline at end of file +return $output; diff --git a/sample/doc/notifications/UpdateWebhook.html b/sample/doc/notifications/UpdateWebhook.html index c2b7b9d..193d59f 100644 --- a/sample/doc/notifications/UpdateWebhook.html +++ b/sample/doc/notifications/UpdateWebhook.html @@ -37,4 +37,4 @@ However, in real case scenario, we could use just the ID from database or use an exit(1); }

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

ResultPrinter::printResult("Updated a Webhook", "Webhook", $output->getId(), $patchRequest, $output); -return $output;
\ No newline at end of file +return $output; diff --git a/sample/doc/notifications/ValidateWebhookEvent.html b/sample/doc/notifications/ValidateWebhookEvent.html index 51fc598..0ace721 100644 --- a/sample/doc/notifications/ValidateWebhookEvent.html +++ b/sample/doc/notifications/ValidateWebhookEvent.html @@ -16,4 +16,4 @@ This is a sample data, that represents the webhook event data.

$output = \PayPal\Api\WebhookEvent::validateAndGetReceivedEvent($bodyReceived, $apiContext); } catch (Exception $ex) {

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

ResultPrinter::printError("Validate Received Webhook Event", "WebhookEvent", null, $bodyReceived, $ex); exit(1); -}

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

ResultPrinter::printResult("Validate Received Webhook Event", "WebhookEvent", $output->getId(), $bodyReceived, $output);
\ No newline at end of file +}

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

ResultPrinter::printResult("Validate Received Webhook Event", "WebhookEvent", $output->getId(), $bodyReceived, $output);
diff --git a/sample/doc/notifications/WebhookEventTypesList.html b/sample/doc/notifications/WebhookEventTypesList.html index 9be884d..00043e3 100644 --- a/sample/doc/notifications/WebhookEventTypesList.html +++ b/sample/doc/notifications/WebhookEventTypesList.html @@ -7,4 +7,4 @@ API used: GET /v1/notifications/webhooks-event-types

exit(1); }

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

ResultPrinter::printResult("Get List of All Webhook Event Types", "WebhookEventTypeList", null, null, $output); -return $output;
\ No newline at end of file +return $output; diff --git a/sample/doc/payment-experience/CreateWebProfile.html b/sample/doc/payment-experience/CreateWebProfile.html index 1d81b91..f20bba7 100644 --- a/sample/doc/payment-experience/CreateWebProfile.html +++ b/sample/doc/payment-experience/CreateWebProfile.html @@ -10,4 +10,4 @@ landing page type information

exit(1); }

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

ResultPrinter::printResult("Created Web Profile", "Web Profile", $createProfileResponse->getId(), $request, $createProfileResponse); -return $createProfileResponse;
\ No newline at end of file +return $createProfileResponse; diff --git a/sample/doc/payment-experience/DeleteWebProfile.html b/sample/doc/payment-experience/DeleteWebProfile.html index 0c641a1..dfc708b 100644 --- a/sample/doc/payment-experience/DeleteWebProfile.html +++ b/sample/doc/payment-experience/DeleteWebProfile.html @@ -10,4 +10,4 @@ that contains the web profile ID.

try {

Execute the delete method

$webProfile->delete($apiContext); } catch (\PayPal\Exception\PayPalConnectionException $ex) {

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

ResultPrinter::printError("Deleted Web Profile", "Web Profile", $createProfileResponse->getId(), null, $ex); exit(1); -}

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

ResultPrinter::printResult("Deleted Web Profile", "Web Profile", $createProfileResponse->getId(), null, null);
\ No newline at end of file +}

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

ResultPrinter::printResult("Deleted Web Profile", "Web Profile", $createProfileResponse->getId(), null, null);
diff --git a/sample/doc/payment-experience/GetWebProfile.html b/sample/doc/payment-experience/GetWebProfile.html index 2191446..25b8513 100644 --- a/sample/doc/payment-experience/GetWebProfile.html +++ b/sample/doc/payment-experience/GetWebProfile.html @@ -11,4 +11,4 @@ that contains the web profile ID.

exit(1); }

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

ResultPrinter::printResult("Get Web Profile", "Web Profile", $webProfile->getId(), null, $webProfile); -return $webProfile;
\ No newline at end of file +return $webProfile; diff --git a/sample/doc/payment-experience/ListWebProfiles.html b/sample/doc/payment-experience/ListWebProfiles.html index 784dd4c..17e66ae 100644 --- a/sample/doc/payment-experience/ListWebProfiles.html +++ b/sample/doc/payment-experience/ListWebProfiles.html @@ -13,4 +13,4 @@ static get_list method on the WebProfile class. $result .= $object->toJSON(128) . PHP_EOL; }

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

ResultPrinter::printResult("Get List of All Web Profiles", "Web Profiles", null, null, $result); -return $list;
\ No newline at end of file +return $list; diff --git a/sample/doc/payment-experience/PartiallyUpdateWebProfile.html b/sample/doc/payment-experience/PartiallyUpdateWebProfile.html index e94c6d7..36b028c 100644 --- a/sample/doc/payment-experience/PartiallyUpdateWebProfile.html +++ b/sample/doc/payment-experience/PartiallyUpdateWebProfile.html @@ -19,4 +19,4 @@ as shown below

catch (\Exception $ex) {

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

ResultPrinter::printError("Partially Updated Web Profile", "Web Profile", $webProfile->getId(), $patches, $ex); exit(1); -}

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

ResultPrinter::printResult("Partially Updated Web Profile", "Web Profile", $webProfile->getId(), $patches, $webProfile);
\ No newline at end of file +}

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

ResultPrinter::printResult("Partially Updated Web Profile", "Web Profile", $webProfile->getId(), $patches, $webProfile);
diff --git a/sample/doc/payment-experience/UpdateWebProfile.html b/sample/doc/payment-experience/UpdateWebProfile.html index 4519663..1b65dca 100644 --- a/sample/doc/payment-experience/UpdateWebProfile.html +++ b/sample/doc/payment-experience/UpdateWebProfile.html @@ -9,4 +9,4 @@ object

catch (\Exception $ex) {

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

ResultPrinter::printError("Updated Web Profile", "Web Profile", $webProfile->getId(), $webProfile, $ex); exit(1); -}

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

ResultPrinter::printResult("Updated Web Profile", "Web Profile", $updatedWebProfile->getId(), $webProfile, $updatedWebProfile);
\ No newline at end of file +}

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

ResultPrinter::printResult("Updated Web Profile", "Web Profile", $updatedWebProfile->getId(), $webProfile, $updatedWebProfile);
diff --git a/sample/doc/payments/AuthorizationCapture.html b/sample/doc/payments/AuthorizationCapture.html index e7d996a..d4d29c5 100644 --- a/sample/doc/payments/AuthorizationCapture.html +++ b/sample/doc/payments/AuthorizationCapture.html @@ -23,4 +23,4 @@ with a valid ApiContext (See bootstrap.php for more on ApiContext)< exit(1); }

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

ResultPrinter::printResult("Capture Payment", "Authorization", $getCapture->getId(), $capture, $getCapture); -return $getCapture;
\ No newline at end of file +return $getCapture; diff --git a/sample/doc/payments/AuthorizePayment.html b/sample/doc/payments/AuthorizePayment.html index 2920ecc..f220afc 100644 --- a/sample/doc/payments/AuthorizePayment.html +++ b/sample/doc/payments/AuthorizePayment.html @@ -60,4 +60,4 @@ The return object contains the state.

$relatedResources = $transactions[0]->getRelatedResources(); $authorization = $relatedResources[0]->getAuthorization(); -return $authorization;
\ No newline at end of file +return $authorization; diff --git a/sample/doc/payments/AuthorizePaymentUsingPayPal.html b/sample/doc/payments/AuthorizePaymentUsingPayPal.html index 8c4f264..cc1dacc 100644 --- a/sample/doc/payments/AuthorizePaymentUsingPayPal.html +++ b/sample/doc/payments/AuthorizePaymentUsingPayPal.html @@ -74,4 +74,4 @@ for payment approval

$approvalUrl = $payment->getApprovalLink();

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

ResultPrinter::printResult("Created Payment Authorization Using PayPal. Please visit the URL to Authorize.", "Payment", "<a href='$approvalUrl' >$approvalUrl</a>", $request, $payment); -return $payment;
\ No newline at end of file +return $payment; diff --git a/sample/doc/payments/CreateFuturePayment.html b/sample/doc/payments/CreateFuturePayment.html index 14c4516..e32137a 100644 --- a/sample/doc/payments/CreateFuturePayment.html +++ b/sample/doc/payments/CreateFuturePayment.html @@ -50,4 +50,4 @@ Please note that currently future payments works only with PayPal as a funding i exit(1); }

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

ResultPrinter::printResult("Future Payment", "Payment", $payment->getId(), $request, $payment); -return $payment;
\ No newline at end of file +return $payment; diff --git a/sample/doc/payments/CreatePayment.html b/sample/doc/payments/CreatePayment.html index 7035052..272938a 100644 --- a/sample/doc/payments/CreatePayment.html +++ b/sample/doc/payments/CreatePayment.html @@ -81,4 +81,4 @@ The return object contains the state.

exit(1); }

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); -return $payment;
\ No newline at end of file +return $payment; diff --git a/sample/doc/payments/CreatePaymentUsingPayPal.html b/sample/doc/payments/CreatePaymentUsingPayPal.html index 3f2f985..dbad9b3 100644 --- a/sample/doc/payments/CreatePaymentUsingPayPal.html +++ b/sample/doc/payments/CreatePaymentUsingPayPal.html @@ -74,4 +74,4 @@ for payment approval

$approvalUrl = $payment->getApprovalLink();

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

ResultPrinter::printResult("Created Payment Using PayPal. Please visit the URL to Approve.", "Payment", "<a href='$approvalUrl' >$approvalUrl</a>", $request, $payment); -return $payment;
\ No newline at end of file +return $payment; diff --git a/sample/doc/payments/CreatePaymentUsingSavedCard.html b/sample/doc/payments/CreatePaymentUsingSavedCard.html index 452980f..129a539 100644 --- a/sample/doc/payments/CreatePaymentUsingSavedCard.html +++ b/sample/doc/payments/CreatePaymentUsingSavedCard.html @@ -72,4 +72,4 @@ The return object contains the state.

exit(1); }

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

ResultPrinter::printResult("Create Payment using Saved Card", "Payment", $payment->getId(), $request, $payment); -return $card;
\ No newline at end of file +return $card; diff --git a/sample/doc/payments/ExecutePayment.html b/sample/doc/payments/ExecutePayment.html index 98211df..afb4dc3 100644 --- a/sample/doc/payments/ExecutePayment.html +++ b/sample/doc/payments/ExecutePayment.html @@ -54,4 +54,4 @@ Here is the example on how we changed the shipping to $1 more than before.

return $payment; } else {

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

ResultPrinter::printResult("User Cancelled the Approval", null); exit; -}
\ No newline at end of file +} diff --git a/sample/doc/payments/GetAuthorization.html b/sample/doc/payments/GetAuthorization.html index 82401f5..cc8aa03 100644 --- a/sample/doc/payments/GetAuthorization.html +++ b/sample/doc/payments/GetAuthorization.html @@ -13,4 +13,4 @@ The return object contains the authorization state.

exit(1); }

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

ResultPrinter::printResult("Get Authorization", "Authorization", $authorizationId, null, $result); -return $result;
\ No newline at end of file +return $result; diff --git a/sample/doc/payments/GetCapture.html b/sample/doc/payments/GetCapture.html index c054f3e..1047a64 100644 --- a/sample/doc/payments/GetCapture.html +++ b/sample/doc/payments/GetCapture.html @@ -10,4 +10,4 @@ with a valid ApiContext (See bootstrap.php for more on ApiContext)< $capture = Capture::get($request->getId(), $apiContext); } catch (Exception $ex) {

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

ResultPrinter::printError("Get Captured Payment", "Capture", $request->getId(), null, $ex); exit(1); -}

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

ResultPrinter::printResult("Get Captured Payment", "Capture", $capture->getId(), null, $capture);
\ No newline at end of file +}

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

ResultPrinter::printResult("Get Captured Payment", "Capture", $capture->getId(), null, $capture);
diff --git a/sample/doc/payments/GetPayment.html b/sample/doc/payments/GetPayment.html index d8ed527..e4bb1a2 100644 --- a/sample/doc/payments/GetPayment.html +++ b/sample/doc/payments/GetPayment.html @@ -20,4 +20,4 @@ Payment ID exit(1); }

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

ResultPrinter::printResult("Get Payment", "Payment", $payment->getId(), null, $payment); -return $payment;
\ No newline at end of file +return $payment; diff --git a/sample/doc/payments/ListPayments.html b/sample/doc/payments/ListPayments.html index 5ced04c..9fe153d 100644 --- a/sample/doc/payments/ListPayments.html +++ b/sample/doc/payments/ListPayments.html @@ -18,4 +18,4 @@ Refer the method doc for valid values for keys $payments = Payment::all($params, $apiContext); } catch (Exception $ex) {

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

ResultPrinter::printError("List Payments", "Payment", null, $params, $ex); exit(1); -}

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

ResultPrinter::printResult("List Payments", "Payment", null, $params, $payments);
\ No newline at end of file +}

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

ResultPrinter::printResult("List Payments", "Payment", null, $params, $payments);
diff --git a/sample/doc/payments/OrderAuthorize.html b/sample/doc/payments/OrderAuthorize.html index 1f7dcb4..1541ce4 100644 --- a/sample/doc/payments/OrderAuthorize.html +++ b/sample/doc/payments/OrderAuthorize.html @@ -29,4 +29,4 @@ We will get a new authorization object back.

return $result; } else {

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

ResultPrinter::printResult("User Cancelled the Approval", null); exit; -}
\ No newline at end of file +} diff --git a/sample/doc/payments/OrderCapture.html b/sample/doc/payments/OrderCapture.html index 70bd553..8f8ff46 100644 --- a/sample/doc/payments/OrderCapture.html +++ b/sample/doc/payments/OrderCapture.html @@ -30,4 +30,4 @@ We will get a new capture object back.

return $result; } else {

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

ResultPrinter::printResult("User Cancelled the Approval", null); exit; -}
\ No newline at end of file +} diff --git a/sample/doc/payments/OrderCreateForAuthorization.html b/sample/doc/payments/OrderCreateForAuthorization.html index 4a87f53..de72b3c 100644 --- a/sample/doc/payments/OrderCreateForAuthorization.html +++ b/sample/doc/payments/OrderCreateForAuthorization.html @@ -71,4 +71,4 @@ for payment approval

$approvalUrl = $payment->getApprovalLink();

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

ResultPrinter::printResult("Created Payment Order Using PayPal. Please visit the URL to Approve.", "Payment", "<a href='$approvalUrl' >$approvalUrl</a>", $request, $payment); -return $payment;
\ No newline at end of file +return $payment; diff --git a/sample/doc/payments/OrderCreateForCapture.html b/sample/doc/payments/OrderCreateForCapture.html index bff949c..41f25a9 100644 --- a/sample/doc/payments/OrderCreateForCapture.html +++ b/sample/doc/payments/OrderCreateForCapture.html @@ -71,4 +71,4 @@ for payment approval

$approvalUrl = $payment->getApprovalLink();

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

ResultPrinter::printResult("Created Payment Order Using PayPal. Please visit the URL to Approve.", "Payment", "<a href='$approvalUrl' >$approvalUrl</a>", $request, $payment); -return $payment;
\ No newline at end of file +return $payment; diff --git a/sample/doc/payments/OrderCreateForVoid.html b/sample/doc/payments/OrderCreateForVoid.html index 4492e28..809fe9c 100644 --- a/sample/doc/payments/OrderCreateForVoid.html +++ b/sample/doc/payments/OrderCreateForVoid.html @@ -71,4 +71,4 @@ for payment approval

$approvalUrl = $payment->getApprovalLink();

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

ResultPrinter::printResult("Created Payment Order Using PayPal. Please visit the URL to Approve.", "Payment", "<a href='$approvalUrl' >$approvalUrl</a>", $request, $payment); -return $payment;
\ No newline at end of file +return $payment; diff --git a/sample/doc/payments/OrderCreateUsingPayPal.html b/sample/doc/payments/OrderCreateUsingPayPal.html index 835d98f..0d9aa9a 100644 --- a/sample/doc/payments/OrderCreateUsingPayPal.html +++ b/sample/doc/payments/OrderCreateUsingPayPal.html @@ -71,4 +71,4 @@ for payment approval

$approvalUrl = $payment->getApprovalLink();

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

ResultPrinter::printResult("Created Payment Order Using PayPal. Please visit the URL to Approve.", "Payment", "<a href='$approvalUrl' >$approvalUrl</a>", $request, $payment); -return $payment;
\ No newline at end of file +return $payment; diff --git a/sample/doc/payments/OrderDoVoid.html b/sample/doc/payments/OrderDoVoid.html index 13ae352..d61ea79 100644 --- a/sample/doc/payments/OrderDoVoid.html +++ b/sample/doc/payments/OrderDoVoid.html @@ -19,4 +19,4 @@ API used: POST /v1/payments/orders//do-void

return $result; } else {

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

ResultPrinter::printResult("User Cancelled the Approval", null); exit; -}
\ No newline at end of file +} diff --git a/sample/doc/payments/OrderGet.html b/sample/doc/payments/OrderGet.html index 42e5751..7cec47f 100644 --- a/sample/doc/payments/OrderGet.html +++ b/sample/doc/payments/OrderGet.html @@ -18,4 +18,4 @@ API used: GET /v1/payments/orders/

return $result; } else {

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

ResultPrinter::printResult("User Cancelled the Approval", null); exit; -}
\ No newline at end of file +} diff --git a/sample/doc/payments/Reauthorization.html b/sample/doc/payments/Reauthorization.html index a247ab5..6d7898e 100644 --- a/sample/doc/payments/Reauthorization.html +++ b/sample/doc/payments/Reauthorization.html @@ -16,4 +16,4 @@ has expired.

$reAuthorization = $authorization->reauthorize($apiContext); } catch (Exception $ex) {

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

ResultPrinter::printError("Reauthorize Payment", "Payment", null, null, $ex); exit(1); -}

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

ResultPrinter::printResult("Reauthorize Payment", "Payment", $authorization->getId(), null, $reAuthorization);
\ No newline at end of file +}

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

ResultPrinter::printResult("Reauthorize Payment", "Payment", $authorization->getId(), null, $reAuthorization);
diff --git a/sample/doc/payments/RefundCapture.html b/sample/doc/payments/RefundCapture.html index 85a1119..0bb8a31 100644 --- a/sample/doc/payments/RefundCapture.html +++ b/sample/doc/payments/RefundCapture.html @@ -16,4 +16,4 @@ PayPal-Request-Id (idempotency) header for this resource

$captureRefund = $capture->refund($refund, $apiContext); } catch (Exception $ex) {

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

ResultPrinter::printError("Refund Capture", "Capture", null, $refund, $ex); exit(1); -}

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

ResultPrinter::printResult("Refund Capture", "Capture", $captureRefund->getId(), $refund, $captureRefund);
\ No newline at end of file +}

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

ResultPrinter::printResult("Refund Capture", "Capture", $captureRefund->getId(), $refund, $captureRefund);
diff --git a/sample/doc/payments/UpdatePayment.html b/sample/doc/payments/UpdatePayment.html index 153b5ee..1126433 100644 --- a/sample/doc/payments/UpdatePayment.html +++ b/sample/doc/payments/UpdatePayment.html @@ -85,4 +85,4 @@ method

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

ResultPrinter::printResult("Created Payment Using PayPal. Please visit the URL to Approve.", "Payment", "<a href='$approvalUrl' >$approvalUrl</a>", $request, $result); } -return $result;
\ No newline at end of file +return $result; diff --git a/sample/doc/payments/VoidAuthorization.html b/sample/doc/payments/VoidAuthorization.html index ddbe818..3594776 100644 --- a/sample/doc/payments/VoidAuthorization.html +++ b/sample/doc/payments/VoidAuthorization.html @@ -11,4 +11,4 @@ with a valid ApiContext (See bootstrap.php for more on ApiContext)< exit(1); }

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

ResultPrinter::printResult("Void Authorization", "Authorization", $voidedAuth->getId(), null, $voidedAuth); -return $voidedAuth;
\ No newline at end of file +return $voidedAuth; diff --git a/sample/doc/payouts/CancelPayoutItem.html b/sample/doc/payouts/CancelPayoutItem.html index 997397a..9f6b69e 100644 --- a/sample/doc/payouts/CancelPayoutItem.html +++ b/sample/doc/payouts/CancelPayoutItem.html @@ -17,4 +17,4 @@ NOTE: PLEASE DO NOT USE RESULTPRINTER CLASS IN YOUR ORIGINAL CODE. FOR SAMPLE ON exit(1); } -return $output; \ No newline at end of file +return $output; diff --git a/sample/doc/payouts/CreateBatchPayout.html b/sample/doc/payouts/CreateBatchPayout.html index 9933e6b..723b74c 100644 --- a/sample/doc/payouts/CreateBatchPayout.html +++ b/sample/doc/payouts/CreateBatchPayout.html @@ -87,4 +87,4 @@ API used: /v1/payments/payouts

exit(1); }

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

ResultPrinter::printResult("Created Batch Payout", "Payout", $output->getBatchHeader()->getPayoutBatchId(), $request, $output); -return $output;
\ No newline at end of file +return $output; diff --git a/sample/doc/payouts/CreateSinglePayout.html b/sample/doc/payouts/CreateSinglePayout.html index 471a7bc..e33a7e0 100644 --- a/sample/doc/payouts/CreateSinglePayout.html +++ b/sample/doc/payouts/CreateSinglePayout.html @@ -42,4 +42,4 @@ API used: /v1/payments/payouts?sync_mode=true

< exit(1); }

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

ResultPrinter::printResult("Created Single Synchronous Payout", "Payout", $output->getBatchHeader()->getPayoutBatchId(), $request, $output); -return $output;
\ No newline at end of file +return $output; diff --git a/sample/doc/payouts/GetPayoutBatchStatus.html b/sample/doc/payouts/GetPayoutBatchStatus.html index 6f28674..f12fe8e 100644 --- a/sample/doc/payouts/GetPayoutBatchStatus.html +++ b/sample/doc/payouts/GetPayoutBatchStatus.html @@ -9,4 +9,4 @@ API used: GET /v1/payments/payouts/

exit(1); }

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

ResultPrinter::printResult("Get Payout Batch Status", "PayoutBatch", $output->getBatchHeader()->getPayoutBatchId(), null, $output); -return $output;
\ No newline at end of file +return $output; diff --git a/sample/doc/payouts/GetPayoutItemStatus.html b/sample/doc/payouts/GetPayoutItemStatus.html index ccba29f..b2a9688 100644 --- a/sample/doc/payouts/GetPayoutItemStatus.html +++ b/sample/doc/payouts/GetPayoutItemStatus.html @@ -11,4 +11,4 @@ API used: GET /v1/payments/payouts-item/

exit(1); }

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

ResultPrinter::printResult("Get Payout Item Status", "PayoutItem", $output->getPayoutItemId(), null, $output); -return $output;
\ No newline at end of file +return $output; diff --git a/sample/doc/sale/GetSale.html b/sample/doc/sale/GetSale.html index 1105b9e..4ccb7f5 100644 --- a/sample/doc/sale/GetSale.html +++ b/sample/doc/sale/GetSale.html @@ -18,4 +18,4 @@ transaction from your payment resource.

exit(1); }

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

ResultPrinter::printResult("Look Up A Sale", "Sale", $sale->getId(), null, $sale); -return $sale;
\ No newline at end of file +return $sale; diff --git a/sample/doc/sale/RefundSale.html b/sample/doc/sale/RefundSale.html index 8f9909b..fa21d15 100644 --- a/sample/doc/sale/RefundSale.html +++ b/sample/doc/sale/RefundSale.html @@ -26,4 +26,4 @@ PayPal-Request-Id (idempotency) header for this resource

exit(1); }

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

ResultPrinter::printResult("Refund Sale", "Sale", $refundedSale->getId(), $refund, $refundedSale); -return $refundedSale;
\ No newline at end of file +return $refundedSale; diff --git a/sample/doc/tls/TlsCheck.html b/sample/doc/tls/TlsCheck.html index 73836a1..c66cfae 100644 --- a/sample/doc/tls/TlsCheck.html +++ b/sample/doc/tls/TlsCheck.html @@ -43,4 +43,4 @@ Note: Explicitly disabling caching for specific testing. exit(1); }

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

ResultPrinter::printResult("<b>SUCCESS</b>: Your server supports TLS protocols required for secure connection to PayPal Servers. <br /> - Current Curl Version: " . $curl_info['version'] . "<br /> - Current OpenSSL Version:" . $curl_info['ssl_version'], null, null, null, "SUCCESS. Your system supports TLSv1.2"); -return $payment;
\ No newline at end of file +return $payment; diff --git a/sample/doc/vault/CreateBankAccount.html b/sample/doc/vault/CreateBankAccount.html index 39c0a7e..a25c3f0 100644 --- a/sample/doc/vault/CreateBankAccount.html +++ b/sample/doc/vault/CreateBankAccount.html @@ -62,4 +62,4 @@ in future payments. exit(1); }

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

ResultPrinter::printResult("Create Bank Account", "Bank Account", $bankAccount->getId(), $request, $bankAccount); -return $bankAccount;
\ No newline at end of file +return $bankAccount; diff --git a/sample/doc/vault/CreateCreditCard.html b/sample/doc/vault/CreateCreditCard.html index cfcaffd..909d5b9 100644 --- a/sample/doc/vault/CreateCreditCard.html +++ b/sample/doc/vault/CreateCreditCard.html @@ -31,4 +31,4 @@ in future payments. exit(1); }

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

ResultPrinter::printResult("Create Credit Card", "Credit Card", $card->getId(), $request, $card); -return $card;
\ No newline at end of file +return $card; diff --git a/sample/doc/vault/DeleteBankAccount.html b/sample/doc/vault/DeleteBankAccount.html index 439fbd5..f28ce3c 100644 --- a/sample/doc/vault/DeleteBankAccount.html +++ b/sample/doc/vault/DeleteBankAccount.html @@ -10,4 +10,4 @@ NOTE: HTTP method used here is DELETE

ApiContext)

$bankAccount->delete($apiContext); } catch (Exception $ex) {

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

ResultPrinter::printError("Delete Bank Account", "Bank Account", null, null, $ex); exit(1); -}

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

ResultPrinter::printResult("Delete Bank Account", "Bank Account", $bankAccount->getId(), null, null);
\ No newline at end of file +}

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

ResultPrinter::printResult("Delete Bank Account", "Bank Account", $bankAccount->getId(), null, null);
diff --git a/sample/doc/vault/DeleteCreditCard.html b/sample/doc/vault/DeleteCreditCard.html index 25295fd..35a7f2f 100644 --- a/sample/doc/vault/DeleteCreditCard.html +++ b/sample/doc/vault/DeleteCreditCard.html @@ -11,4 +11,4 @@ NOTE: HTTP method used here is DELETE

ApiContext)

$card->delete($apiContext); } catch (Exception $ex) {

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

ResultPrinter::printError("Delete Credit Card", "Credit Card", null, null, $ex); exit(1); -}

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

ResultPrinter::printResult("Delete Credit Card", "Credit Card", $card->getId(), null, null);
\ No newline at end of file +}

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

ResultPrinter::printResult("Delete Credit Card", "Credit Card", $card->getId(), null, null);
diff --git a/sample/doc/vault/GetBankAccount.html b/sample/doc/vault/GetBankAccount.html index bb6c4b3..87dc121 100644 --- a/sample/doc/vault/GetBankAccount.html +++ b/sample/doc/vault/GetBankAccount.html @@ -11,4 +11,4 @@ the process of retrieving a saved Bank Account

exit(1); }

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

ResultPrinter::printResult("Get Bank Account", "Bank Account", $bankAccount->getId(), null, $bankAccount); -return $bankAccount;
\ No newline at end of file +return $bankAccount; diff --git a/sample/doc/vault/GetCreditCard.html b/sample/doc/vault/GetCreditCard.html index 18ad21c..e6210c7 100644 --- a/sample/doc/vault/GetCreditCard.html +++ b/sample/doc/vault/GetCreditCard.html @@ -15,4 +15,4 @@ the process of retrieving a saved CreditCard

exit(1); }

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

ResultPrinter::printResult("Get Credit Card", "Credit Card", $card->getId(), null, $card); -return $card;
\ No newline at end of file +return $card; diff --git a/sample/doc/vault/ListCreditCards.html b/sample/doc/vault/ListCreditCards.html index 099ea39..2549ed5 100644 --- a/sample/doc/vault/ListCreditCards.html +++ b/sample/doc/vault/ListCreditCards.html @@ -18,4 +18,4 @@ Documentation:
exit(1); }

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

ResultPrinter::printResult("List All Credit Cards", "CreditCardList", null, $params, $cards); -return $card;
\ No newline at end of file +return $card; diff --git a/sample/doc/vault/UpdateCreditCard.html b/sample/doc/vault/UpdateCreditCard.html index 3bd162c..fe40acf 100644 --- a/sample/doc/vault/UpdateCreditCard.html +++ b/sample/doc/vault/UpdateCreditCard.html @@ -33,4 +33,4 @@ the process of updating a saved CreditCard

exit(1); }

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

ResultPrinter::printResult("Updated Credit Card", "Credit Card", $card->getId(), $pathRequest, $card); -return $card;
\ No newline at end of file +return $card;