From f4df2eea286e6df01f1be1d1f51859e9af135c85 Mon Sep 17 00:00:00 2001 From: Steve Stedman Date: Wed, 25 Apr 2018 15:52:03 -0500 Subject: [PATCH] Fix links to Developer API Reference --- README.md | 2 +- docs/index.html | 4 ++-- lib/PayPal/Api/OpenIdSession.php | 2 +- lib/PayPal/Api/ProcessorResponse.php | 20 ++++++++--------- sample/README.md | 4 ++-- .../CreateBillingAgreementWithPayPal.php | 2 +- sample/billing/CreatePlan.php | 2 +- sample/billing/DeletePlan.php | 2 +- sample/billing/GetBillingAgreement.php | 2 +- sample/billing/GetPlan.php | 2 +- sample/billing/ListPlans.php | 4 ++-- sample/billing/ReactivateBillingAgreement.php | 2 +- sample/billing/SearchBillingTransactions.php | 2 +- sample/billing/SuspendBillingAgreement.php | 2 +- sample/billing/UpdateBillingAgreement.php | 2 +- sample/billing/UpdatePlan.php | 2 +- .../billing/UpdatePlanPaymentDefinitions.php | 2 +- .../CreateBillingAgreementWithPayPal.html | 2 +- sample/doc/billing/CreatePlan.html | 2 +- sample/doc/billing/DeletePlan.html | 2 +- sample/doc/billing/GetBillingAgreement.html | 2 +- sample/doc/billing/GetPlan.html | 2 +- sample/doc/billing/ListPlans.html | 4 ++-- .../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/notifications/CreateWebhook.html | 2 +- sample/doc/notifications/GetWebhook.html | 2 +- .../ListSubscribedWebhookEventTypes.html | 2 +- sample/doc/notifications/ListWebhooks.html | 2 +- sample/doc/notifications/UpdateWebhook.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 | 4 ++-- sample/doc/payments/UpdatePayment.html | 2 +- sample/header.html | 2 +- sample/index.php | 22 +++++++++---------- sample/notifications/CreateWebhook.php | 2 +- sample/notifications/GetWebhook.php | 2 +- .../ListSubscribedWebhookEventTypes.php | 2 +- sample/notifications/ListWebhooks.php | 2 +- sample/notifications/UpdateWebhook.php | 2 +- .../notifications/WebhookEventTypesList.php | 2 +- .../payment-experience/CreateWebProfile.php | 2 +- .../payment-experience/DeleteWebProfile.php | 2 +- sample/payment-experience/GetWebProfile.php | 2 +- sample/payment-experience/ListWebProfiles.php | 2 +- .../PartiallyUpdateWebProfile.php | 2 +- .../payment-experience/UpdateWebProfile.php | 2 +- sample/payments/AuthorizationCapture.php | 6 ++--- sample/payments/UpdatePayment.php | 2 +- .../PayoutsFunctionalTest/testCancel.json | 2 +- 60 files changed, 86 insertions(+), 86 deletions(-) diff --git a/README.md b/README.md index f0c4c11..3e076fe 100644 --- a/README.md +++ b/README.md @@ -56,5 +56,5 @@ Read [here](CONTRIBUTING.md) for more information. * [PayPal-PHP-SDK Home Page](http://paypal.github.io/PayPal-PHP-SDK/) * [SDK Documentation](https://github.com/paypal/PayPal-PHP-SDK/wiki) * [Sample Source Code](http://paypal.github.io/PayPal-PHP-SDK/sample/) - * [API Reference](https://developer.paypal.com/webapps/developer/docs/api/) + * [API Reference](https://developer.paypal.com/docs/api/) * [Reporting Issues / Feature Requests](https://github.com/paypal/PayPal-PHP-SDK/issues) diff --git a/docs/index.html b/docs/index.html index 09cd913..9ae09df 100644 --- a/docs/index.html +++ b/docs/index.html @@ -68,7 +68,7 @@
- +
@@ -100,7 +100,7 @@ class="fa fa-github"> Github
  • - PayPal API Reference
  • diff --git a/lib/PayPal/Api/OpenIdSession.php b/lib/PayPal/Api/OpenIdSession.php index 2411a93..ad26af6 100644 --- a/lib/PayPal/Api/OpenIdSession.php +++ b/lib/PayPal/Api/OpenIdSession.php @@ -17,7 +17,7 @@ class OpenIdSession * @param array $scope The access privilges that you are requesting for * from the user. Pass empty array for all scopes. * @param string $clientId client id from developer portal - * See https://developer.paypal.com/webapps/developer/docs/integration/direct/log-in-with-paypal/detailed/#attributes for more + * See https://developer.paypal.com/docs/integration/direct/log-in-with-paypal/detailed/#attributes for more * @param null $nonce * @param null $state * @param ApiContext $apiContext Optional API Context diff --git a/lib/PayPal/Api/ProcessorResponse.php b/lib/PayPal/Api/ProcessorResponse.php index 5854670..9b903dc 100644 --- a/lib/PayPal/Api/ProcessorResponse.php +++ b/lib/PayPal/Api/ProcessorResponse.php @@ -24,7 +24,7 @@ class ProcessorResponse extends PayPalModel * Paypal normalized response code, generated from the processor's specific response code * * @param string $response_code - * + * * @return $this */ public function setResponseCode($response_code) @@ -44,10 +44,10 @@ class ProcessorResponse extends PayPalModel } /** - * Address Verification System response code. https://developer.paypal.com/webapps/developer/docs/classic/api/AVSResponseCodes/ + * Address Verification System response code. https://developer.paypal.com/docs/classic/api/AVSResponseCodes/ * * @param string $avs_code - * + * * @return $this */ public function setAvsCode($avs_code) @@ -57,7 +57,7 @@ class ProcessorResponse extends PayPalModel } /** - * Address Verification System response code. https://developer.paypal.com/webapps/developer/docs/classic/api/AVSResponseCodes/ + * Address Verification System response code. https://developer.paypal.com/docs/classic/api/AVSResponseCodes/ * * @return string */ @@ -67,10 +67,10 @@ class ProcessorResponse extends PayPalModel } /** - * CVV System response code. https://developer.paypal.com/webapps/developer/docs/classic/api/AVSResponseCodes/ + * CVV System response code. https://developer.paypal.com/docs/classic/api/AVSResponseCodes/ * * @param string $cvv_code - * + * * @return $this */ public function setCvvCode($cvv_code) @@ -80,7 +80,7 @@ class ProcessorResponse extends PayPalModel } /** - * CVV System response code. https://developer.paypal.com/webapps/developer/docs/classic/api/AVSResponseCodes/ + * CVV System response code. https://developer.paypal.com/docs/classic/api/AVSResponseCodes/ * * @return string */ @@ -94,7 +94,7 @@ class ProcessorResponse extends PayPalModel * Valid Values: ["01_NEW_ACCOUNT_INFORMATION", "02_TRY_AGAIN_LATER", "02_STOP_SPECIFIC_PAYMENT", "03_DO_NOT_TRY_AGAIN", "03_REVOKE_AUTHORIZATION_FOR_FUTURE_PAYMENT", "21_DO_NOT_TRY_AGAIN_CARD_HOLDER_CANCELLED_RECURRRING_CHARGE", "21_CANCEL_ALL_RECURRING_PAYMENTS"] * * @param string $advice_code - * + * * @return $this */ public function setAdviceCode($advice_code) @@ -117,7 +117,7 @@ class ProcessorResponse extends PayPalModel * Response back from the authorization. Provided by the processor * * @param string $eci_submitted - * + * * @return $this */ public function setEciSubmitted($eci_submitted) @@ -140,7 +140,7 @@ class ProcessorResponse extends PayPalModel * Visa Payer Authentication Service status. Will be return from processor * * @param string $vpas - * + * * @return $this */ public function setVpas($vpas) diff --git a/sample/README.md b/sample/README.md index 911ede0..6179c45 100644 --- a/sample/README.md +++ b/sample/README.md @@ -17,7 +17,7 @@ Note: The root directory for composer based download would be `vendor` and for d 1. Run `php -f PayPal-PHP-SDK/paypal/rest-api-sdk-php/sample/index.php` from your project root directory. 2. This would host a PHP server at `localhost:5000`. The output should look something like this: - + ``` @@ -399,7 +399,7 @@ if (PHP_SAPI == 'cli') {
    @@ -505,7 +505,7 @@ if (PHP_SAPI == 'cli') {
    @@ -538,7 +538,7 @@ if (PHP_SAPI == 'cli') {
    @@ -662,7 +662,7 @@ if (PHP_SAPI == 'cli') {
    @@ -829,7 +829,7 @@ if (PHP_SAPI == 'cli') {
    @@ -918,7 +918,7 @@ if (PHP_SAPI == 'cli') {
    @@ -1045,7 +1045,7 @@ if (PHP_SAPI == 'cli') {
    @@ -1288,7 +1288,7 @@ if (PHP_SAPI == 'cli') {
    @@ -1353,7 +1353,7 @@ if (PHP_SAPI == 'cli') { class="fa fa-github"> PayPal PHP SDK
  • - REST API Reference
  • diff --git a/sample/notifications/CreateWebhook.php b/sample/notifications/CreateWebhook.php index c82796e..5b3710c 100644 --- a/sample/notifications/CreateWebhook.php +++ b/sample/notifications/CreateWebhook.php @@ -3,7 +3,7 @@ // # Create Webhook Sample // // This sample code demonstrate how you can create a webhook, as documented here at: -// https://developer.paypal.com/webapps/developer/docs/api/#create-a-webhook +// https://developer.paypal.com/docs/api/#create-a-webhook // API used: POST /v1/notifications/webhooks require __DIR__ . '/../bootstrap.php'; diff --git a/sample/notifications/GetWebhook.php b/sample/notifications/GetWebhook.php index ce88368..bbb1f89 100644 --- a/sample/notifications/GetWebhook.php +++ b/sample/notifications/GetWebhook.php @@ -3,7 +3,7 @@ // # Get Webhook Sample // // This sample code demonstrate how you can get a webhook, as documented here at: -// https://developer.paypal.com/webapps/developer/docs/api/#get-a-webhook +// https://developer.paypal.com/docs/api/#get-a-webhook // API used: GET /v1/notifications/webhooks/ // ## Get Webhook ID. diff --git a/sample/notifications/ListSubscribedWebhookEventTypes.php b/sample/notifications/ListSubscribedWebhookEventTypes.php index bfb37e9..a91b296 100644 --- a/sample/notifications/ListSubscribedWebhookEventTypes.php +++ b/sample/notifications/ListSubscribedWebhookEventTypes.php @@ -3,7 +3,7 @@ // # Get Webhook Sample // // This sample code demonstrate how you can get a webhook, as documented here at: -// https://developer.paypal.com/webapps/developer/docs/api/#get-a-webhook +// https://developer.paypal.com/docs/api/#get-a-webhook // API used: GET /v1/notifications/webhooks/ // ## List Subscribed Event Types diff --git a/sample/notifications/ListWebhooks.php b/sample/notifications/ListWebhooks.php index f3b3b18..16d8ee7 100644 --- a/sample/notifications/ListWebhooks.php +++ b/sample/notifications/ListWebhooks.php @@ -3,7 +3,7 @@ // # Get All Webhooks Sample // // Use this call to list all the webhooks, as documented here at: -// https://developer.paypal.com/webapps/developer/docs/api/#list-all-webhooks +// https://developer.paypal.com/docs/api/#list-all-webhooks // API used: GET /v1/notifications/webhooks // ## List Webhooks diff --git a/sample/notifications/UpdateWebhook.php b/sample/notifications/UpdateWebhook.php index c216cf0..e338815 100644 --- a/sample/notifications/UpdateWebhook.php +++ b/sample/notifications/UpdateWebhook.php @@ -3,7 +3,7 @@ // # Update Webhook Sample // // This sample code demonstrate how to use this call to update a webhook; supports the replace operation only, as documented here at: -// https://developer.paypal.com/webapps/developer/docs/api/#update-a-webhook +// https://developer.paypal.com/docs/api/#update-a-webhook // API used: PATCH v1/notifications/webhooks/ // ## Get Webhook ID. diff --git a/sample/notifications/WebhookEventTypesList.php b/sample/notifications/WebhookEventTypesList.php index c8589b5..1607f5b 100644 --- a/sample/notifications/WebhookEventTypesList.php +++ b/sample/notifications/WebhookEventTypesList.php @@ -3,7 +3,7 @@ // # Get Reference List of all Webhook Event Types // // This sample code demonstrate how you can get reference list of all webhook event types, as documented here at: -// https://developer.paypal.com/webapps/developer/docs/api/#get-a-reference-list-of-webhook-event-types +// https://developer.paypal.com/docs/api/#get-a-reference-list-of-webhook-event-types // API used: GET /v1/notifications/webhooks-event-types $apiContext = require __DIR__ . '/../bootstrap.php'; diff --git a/sample/payment-experience/CreateWebProfile.php b/sample/payment-experience/CreateWebProfile.php index 2e15fd2..0f7481e 100644 --- a/sample/payment-experience/CreateWebProfile.php +++ b/sample/payment-experience/CreateWebProfile.php @@ -4,7 +4,7 @@ require __DIR__ . '/../bootstrap.php'; // ### Create Web Profile // Use the /web-profiles resource to create seamless payment experience profiles. See the payment experience overview for further information about using the /payment resource to create the PayPal payment and pass the experience_profile_id. -// Documentation available at https://developer.paypal.com/webapps/developer/docs/api/#create-a-web-experience-profile +// Documentation available at https://developer.paypal.com/docs/api/#create-a-web-experience-profile // Lets create an instance of FlowConfig and add // landing page type information diff --git a/sample/payment-experience/DeleteWebProfile.php b/sample/payment-experience/DeleteWebProfile.php index dc66b9a..f25bde7 100644 --- a/sample/payment-experience/DeleteWebProfile.php +++ b/sample/payment-experience/DeleteWebProfile.php @@ -2,7 +2,7 @@ // #### Delete Web Profile // Use this call to delete a web experience profile. -// Documentation available at https://developer.paypal.com/webapps/developer/docs/api/#delete-a-web-experience-profile +// Documentation available at https://developer.paypal.com/docs/api/#delete-a-web-experience-profile // We are going to re-use the sample code from CreateWebProfile.php. // If you have not visited the sample yet, please visit it before trying GetWebProfile.php diff --git a/sample/payment-experience/GetWebProfile.php b/sample/payment-experience/GetWebProfile.php index 6b06f82..d216d43 100644 --- a/sample/payment-experience/GetWebProfile.php +++ b/sample/payment-experience/GetWebProfile.php @@ -2,7 +2,7 @@ // ### Get Web Profile // If your request is successful, the API returns a web_profile object response that contains the profile details. -// Documentation available at https://developer.paypal.com/webapps/developer/docs/api/#retrieve-a-web-experience-profile +// Documentation available at https://developer.paypal.com/docs/api/#retrieve-a-web-experience-profile // We are going to re-use the sample code from CreateWebProfile.php. // If you have not visited the sample yet, please visit it before trying GetWebProfile.php diff --git a/sample/payment-experience/ListWebProfiles.php b/sample/payment-experience/ListWebProfiles.php index 6b838e1..e0cba22 100644 --- a/sample/payment-experience/ListWebProfiles.php +++ b/sample/payment-experience/ListWebProfiles.php @@ -3,7 +3,7 @@ $apiContext = require __DIR__ . '/../bootstrap.php'; // ### Retrieve List of All Web Profiles -// Documentation available at https://developer.paypal.com/webapps/developer/docs/api/#list-web-experience-profiles +// Documentation available at https://developer.paypal.com/docs/api/#list-web-experience-profiles // Retrieve the list of all web profiles by calling the // static `get_list` method on the WebProfile class. diff --git a/sample/payment-experience/PartiallyUpdateWebProfile.php b/sample/payment-experience/PartiallyUpdateWebProfile.php index 5ab53b5..9e79332 100644 --- a/sample/payment-experience/PartiallyUpdateWebProfile.php +++ b/sample/payment-experience/PartiallyUpdateWebProfile.php @@ -2,7 +2,7 @@ // #### Partially Update Web Profile // Use this call to partially update a web experience profile. -// Documentation available at https://developer.paypal.com/webapps/developer/docs/api/#partially-update-a-web-experience-profile +// Documentation available at https://developer.paypal.com/docs/api/#partially-update-a-web-experience-profile // We will be re-using the sample code to get a web profile. GetWebProfile.php will // create a new web profileId for sample, and return the web profile object. diff --git a/sample/payment-experience/UpdateWebProfile.php b/sample/payment-experience/UpdateWebProfile.php index 697a92b..0752ba4 100644 --- a/sample/payment-experience/UpdateWebProfile.php +++ b/sample/payment-experience/UpdateWebProfile.php @@ -2,7 +2,7 @@ // #### Update Web Profile // Use this call to update an experience profile. -// Documentation available at https://developer.paypal.com/webapps/developer/docs/api/#update-a-web-experience-profile +// Documentation available at https://developer.paypal.com/docs/api/#update-a-web-experience-profile // We will be re-using the sample code to get a web profile. GetWebProfile.php will // create a new web profileId for sample, and return the web profile object. diff --git a/sample/payments/AuthorizationCapture.php b/sample/payments/AuthorizationCapture.php index 03cb715..7a5bed4 100644 --- a/sample/payments/AuthorizationCapture.php +++ b/sample/payments/AuthorizationCapture.php @@ -1,16 +1,16 @@ "; // ### Capture Payment diff --git a/sample/payments/UpdatePayment.php b/sample/payments/UpdatePayment.php index f6cad80..0640270 100644 --- a/sample/payments/UpdatePayment.php +++ b/sample/payments/UpdatePayment.php @@ -6,7 +6,7 @@ // ## NOTE // Note that it can only be updated before the execute is done. Once, the payment is executed it is not // possible to udpate that. -// Docs: https://developer.paypal.com/webapps/developer/docs/api/#update-a-payment-resource +// Docs: https://developer.paypal.com/docs/api/#update-a-payment-resource // API used: PATCH /v1/payments/payment/ /** @var Payment $createdPayment */ diff --git a/tests/PayPal/Test/Functional/resources/PayoutsFunctionalTest/testCancel.json b/tests/PayPal/Test/Functional/resources/PayoutsFunctionalTest/testCancel.json index a3850ae..cd3f36d 100644 --- a/tests/PayPal/Test/Functional/resources/PayoutsFunctionalTest/testCancel.json +++ b/tests/PayPal/Test/Functional/resources/PayoutsFunctionalTest/testCancel.json @@ -57,7 +57,7 @@ "errors":{ "name":"RECEIVER_UNREGISTERED", "message":"Receiver is unregistered", - "information_link": "https://developer.paypal.com/webapps/developer/docs/api/#RECEIVER_UNREGISTERED" + "information_link": "https://developer.paypal.com/docs/api/#RECEIVER_UNREGISTERED" }, "links":[ {