Skip to content
This repository was archived by the owner on Aug 22, 2025. It is now read-only.

Commit 2f35368

Browse files
Fix links to Developer API Reference #1302
* Fix links to Developer API Reference
1 parent 4ddb1de commit 2f35368

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

42 files changed

+73
-73
lines changed

sample/billing/CreateBillingAgreementWithPayPal.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
// # Create Billing Agreement with PayPal as Payment Source
44
//
55
// This sample code demonstrate how you can create a billing agreement, as documented here at:
6-
// https://developer.paypal.com/docs/api/#create-an-agreement
7-
// API used: /v1/payments/billing-agreements
6+
// https://developer.paypal.com/docs/api/payments.billing-agreements/v1/#billing-agreements_post
7+
// API used: POST /v1/payments/billing-agreements
88

99
// Retrieving the Plan from the Create Update Sample. This would be used to
1010
// define Plan information to create an agreement. Make sure the plan you are using is in active state.

sample/billing/CreatePlan.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
// # Create Plan Sample
44
//
55
// This sample code demonstrate how you can create a billing plan, as documented here at:
6-
// https://developer.paypal.com/docs/api/#create-a-plan
7-
// API used: /v1/payments/billing-plans
6+
// https://developer.paypal.com/docs/api/payments.billing-plans/v1/#billing-plans_post
7+
// API used: POST /v1/payments/billing-plans
88

99
require __DIR__ . '/../bootstrap.php';
1010
use PayPal\Api\ChargeModel;

sample/billing/DeletePlan.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
// # Delete Plan Sample
44
//
55
// This sample code demonstrate how you can delete a billing plan, as documented here at:
6-
// https://developer.paypal.com/docs/api/#retrieve-a-plan
7-
// API used: /v1/payments/billing-plans
6+
// https://developer.paypal.com/docs/api/payments.billing-plans/v1/#billing-plans_patch
7+
// API used: PATCH /v1/payments/billing-plans/{plan_id}
88

99
// Retrieving the Plan object from Create Plan Sample
1010
/** @var Plan $createdPlan */

sample/billing/GetBillingAgreement.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
// # Get Billing Agreement Sample
44
//
55
// This sample code demonstrate how you can get a billing agreement, as documented here at:
6-
// https://developer.paypal.com/docs/api/#retrieve-an-agreement
7-
// API used: /v1/payments/billing-agreements/<Agreement-Id>
6+
// https://developer.paypal.com/docs/api/payments.billing-agreements/v1/#billing-agreements_get
7+
// API used: GET /v1/payments/billing-agreements/{agreement_id}
88
require __DIR__ . '/../bootstrap.php';
99

1010
// Retrieving the Agreement object from Create Agreement From Credit Card Sample

sample/billing/GetPlan.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
// # Get Plan Sample
44
//
55
// This sample code demonstrate how you can get a billing plan, as documented here at:
6-
// https://developer.paypal.com/docs/api/#retrieve-a-plan
7-
// API used: /v1/payments/billing-plans
6+
// https://developer.paypal.com/docs/api/payments.billing-plans/v1/#billing-plans_get
7+
// API used: GET /v1/payments/billing-plans
88

99
// Retrieving the Plan object from Create Plan Sample
1010
/** @var Plan $createdPlan */

sample/billing/ListPlans.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
// # Get List of Plan Sample
44
//
55
// This sample code demonstrate how you can get a list of billing plan, as documented here at:
6-
// https://developer.paypal.com/docs/api/#list-plans
7-
// API used: /v1/payments/billing-plans
6+
// https://developer.paypal.com/docs/api/payments.billing-plans/v1/#billing-plans_list
7+
// API used: GET /v1/payments/billing-plans
88

99
// Retrieving the Plan object from Create Plan Sample to demonstrate the List
1010
/** @var Plan $createdPlan */

sample/billing/ReactivateBillingAgreement.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
// # Reactivate an agreement
44
//
55
// This sample code demonstrate how you can reactivate a billing agreement, as documented here at:
6-
// https://developer.paypal.com/docs/api/#suspend-an-agreement
7-
// API used: /v1/payments/billing-agreements/<Agreement-Id>/suspend
6+
// https://developer.paypal.com/docs/api/payments.billing-agreements/v1/#billing-agreements_re-activate
7+
// API used: POST /v1/payments/billing-agreements/{agreement_id}/re-activate
88

99
// Retrieving the Agreement object from Suspend Agreement Sample to demonstrate the List
1010
/** @var Agreement $suspendedAgreement */

sample/billing/SearchBillingTransactions.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
// # Search Billing Transactions Sample
44
//
55
// This sample code demonstrate how you can search all billing transactions, as documented here at:
6-
// https://developer.paypal.com/docs/api/#search-for-transactions
7-
// API used: GET /v1/payments/billing-agreements/<Agreement-Id>/transactions? start-date=yyyy-mm-dd&end-date=yyyy-mm-dd
6+
// https://developer.paypal.com/docs/api/payments.billing-agreements/v1/#billing-agreements_transactions
7+
// API used: GET /v1/payments/billing-agreements/{agreement_id}/transactions? start-date=yyyy-mm-dd&end-date=yyyy-mm-dd
88

99
// Retrieving the Agreement object from Get Billing Agreement. This may not be necessary if you are trying to search for transactions of already created Agreement.
1010
/** @var Agreement $agreement */

sample/billing/SuspendBillingAgreement.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
// # Suspend an agreement
44
//
55
// This sample code demonstrate how you can suspend a billing agreement, as documented here at:
6-
// https://developer.paypal.com/docs/api/#suspend-an-agreement
7-
// API used: /v1/payments/billing-agreements/<Agreement-Id>/suspend
6+
// https://developer.paypal.com/docs/api/payments.billing-agreements/v1/#billing-agreements_suspend
7+
// API used: POST /v1/payments/billing-agreements/{agreement_id}/suspend
88

99
// Retrieving the Agreement object from Create Agreement Sample to demonstrate the List
1010
require __DIR__ . '/../bootstrap.php';

sample/billing/UpdateBillingAgreement.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
// # Update an agreement
44
//
55
// This sample code demonstrate how you can update a billing agreement, as documented here at:
6-
// https://developer.paypal.com/docs/api/#update-an-agreement
7-
// API used: /v1/payments/billing-agreements/<Agreement-Id>
6+
// https://developer.paypal.com/docs/api/payments.billing-agreements/v1/#billing-agreements_patch
7+
// API used: PATCH /v1/payments/billing-agreements/{agreement_id}
88

99
require __DIR__ . '/../bootstrap.php';
1010

0 commit comments

Comments
 (0)