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 398aaba..cf6d0b5 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 da6cbc2..089ae2c 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 5929cb4..2f0d3cf 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-templates/CreateInvoiceTemplate.html b/sample/doc/invoice-templates/CreateInvoiceTemplate.html index 8657e0e..11d5bde 100644 --- a/sample/doc/invoice-templates/CreateInvoiceTemplate.html +++ b/sample/doc/invoice-templates/CreateInvoiceTemplate.html @@ -40,4 +40,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 Template", "Template", $invoiceTemplate->getTemplateId(), $request, $invoiceTemplate); -return $invoiceTemplate;
\ No newline at end of file +return $invoiceTemplate; diff --git a/sample/doc/invoice-templates/DeleteInvoiceTemplate.html b/sample/doc/invoice-templates/DeleteInvoiceTemplate.html index d2669dd..0fc3933 100644 --- a/sample/doc/invoice-templates/DeleteInvoiceTemplate.html +++ b/sample/doc/invoice-templates/DeleteInvoiceTemplate.html @@ -13,4 +13,4 @@ notification object (See bootstrap.php for more on ApiContext)

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

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

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

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

ResultPrinter::printResult("Delete Invoice Template", "Template", $template->getTemplateId(), 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 Template", "Template", $template->getTemplateId(), null, null);
diff --git a/sample/doc/invoice-templates/GetAllInvoiceTemplates.html b/sample/doc/invoice-templates/GetAllInvoiceTemplates.html index 892fe09..dbfb454 100644 --- a/sample/doc/invoice-templates/GetAllInvoiceTemplates.html +++ b/sample/doc/invoice-templates/GetAllInvoiceTemplates.html @@ -10,4 +10,4 @@ exit(1); }

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

ResultPrinter::printResult("Get all Templates", "Templates", null, null, $templates); -return $templates;
\ No newline at end of file +return $templates; diff --git a/sample/doc/invoice-templates/GetInvoiceTemplate.html b/sample/doc/invoice-templates/GetInvoiceTemplate.html index 716461a..d9e6f8a 100644 --- a/sample/doc/invoice-templates/GetInvoiceTemplate.html +++ b/sample/doc/invoice-templates/GetInvoiceTemplate.html @@ -16,4 +16,4 @@ Template ID exit(1); }

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

ResultPrinter::printResult("Get Invoice Template", "Template", $template->getTemplateId(), $templateId, $template); -return $template;
\ No newline at end of file +return $template; diff --git a/sample/doc/invoice-templates/UpdateInvoiceTemplate.html b/sample/doc/invoice-templates/UpdateInvoiceTemplate.html index a6b3a22..22ad5c0 100644 --- a/sample/doc/invoice-templates/UpdateInvoiceTemplate.html +++ b/sample/doc/invoice-templates/UpdateInvoiceTemplate.html @@ -9,4 +9,4 @@ an invoice.

$template->update($apiContext); } catch (Exception $ex) {

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

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

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

ResultPrinter::printResult("Invoice Template Updated", "Invoice", $template->getTemplateId(), $request, $template);
\ No newline at end of file +}

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

ResultPrinter::printResult("Invoice Template Updated", "Invoice", $template->getTemplateId(), $request, $template);
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 fe4fb5c..7518d57 100644 --- a/sample/doc/invoice/CreateThirdPartyInvoice.html +++ b/sample/doc/invoice/CreateThirdPartyInvoice.html @@ -73,4 +73,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("Send Third Party 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/GetThirdPartyInvoice.html b/sample/doc/invoice/GetThirdPartyInvoice.html index 0bcd956..498b976 100644 --- a/sample/doc/invoice/GetThirdPartyInvoice.html +++ b/sample/doc/invoice/GetThirdPartyInvoice.html @@ -18,4 +18,4 @@ Similar calls can be done to search invoices, delete, and update.

exit(1); } -return $retrievedInvoice; \ No newline at end of file +return $retrievedInvoice; 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 cf1b421..0fdb7cb 100644 --- a/sample/doc/invoice/UpdateInvoice.html +++ b/sample/doc/invoice/UpdateInvoice.html @@ -23,4 +23,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 300e8e8..a75bee5 100644 --- a/sample/doc/notifications/ValidateWebhookEvent.html +++ b/sample/doc/notifications/ValidateWebhookEvent.html @@ -60,4 +60,4 @@ To resolve that, we need to use alternative, which makes a call to PayPal's $output = $signatureVerification->post($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, $request->toJSON(), $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->getVerificationStatus(), $request->toJSON(), $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->getVerificationStatus(), $request->toJSON(), $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 8bc5005..6868ac1 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 ec08714..233b279 100644 --- a/sample/doc/payments/AuthorizationCapture.html +++ b/sample/doc/payments/AuthorizationCapture.html @@ -20,4 +20,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/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/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/CreateThirdPartyPayment.html b/sample/doc/payments/CreateThirdPartyPayment.html index df5c58a..fd4a47a 100644 --- a/sample/doc/payments/CreateThirdPartyPayment.html +++ b/sample/doc/payments/CreateThirdPartyPayment.html @@ -79,4 +79,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/ExecutePayment.html b/sample/doc/payments/ExecutePayment.html index a24bcb1..8e94d5f 100644 --- a/sample/doc/payments/ExecutePayment.html +++ b/sample/doc/payments/ExecutePayment.html @@ -53,4 +53,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 020c901..8dec7da 100644 --- a/sample/doc/payments/GetAuthorization.html +++ b/sample/doc/payments/GetAuthorization.html @@ -10,4 +10,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 d8906dc..cf19b5c 100644 --- a/sample/doc/payments/GetCapture.html +++ b/sample/doc/payments/GetCapture.html @@ -7,4 +7,4 @@ with a valid ApiContext (See bootstrap.php for more on ApiContext)< $capture = Capture::get($captureId, $apiContext); } catch (Exception $ex) {

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

ResultPrinter::printError("Get Captured Payment", "Capture", $captureId, 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 063b6a2..4a3cf97 100644 --- a/sample/doc/payments/GetPayment.html +++ b/sample/doc/payments/GetPayment.html @@ -19,4 +19,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 06ff210..4e0a0bf 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 c1b600a..2c2edb4 100644 --- a/sample/doc/payments/Reauthorization.html +++ b/sample/doc/payments/Reauthorization.html @@ -19,4 +19,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", $authorizationId, 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", $authorizationId, null, $reAuthorization);
diff --git a/sample/doc/payments/RefundCapture.html b/sample/doc/payments/RefundCapture.html index 228a2c7..9f0e248 100644 --- a/sample/doc/payments/RefundCapture.html +++ b/sample/doc/payments/RefundCapture.html @@ -17,4 +17,4 @@ PayPal-Request-Id (idempotency) header for this resource

catch (Exception $ex) {

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

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

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

ResultPrinter::printResult("Refund Capture", "Capture", $captureRefund->getId(), $refundRequest, $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(), $refundRequest, $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 ffdb650..1e281c9 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 22b532c..6e46ec6 100644 --- a/sample/doc/sale/GetSale.html +++ b/sample/doc/sale/GetSale.html @@ -13,4 +13,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 fafdf34..2022484 100644 --- a/sample/doc/sale/RefundSale.html +++ b/sample/doc/sale/RefundSale.html @@ -27,4 +27,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(), $refundRequest, $refundedSale); -return $refundedSale;
\ No newline at end of file +return $refundedSale;