Skip to content

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

sample/billing/UpdatePlan.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
// # Update a plan
44
//
55
// This sample code demonstrate how you can update a billing plan, as documented here at:
6-
// https://developer.paypal.com/docs/api/#update-a-plan
7-
// API used: /v1/payments/billing-plans/<Plan-Id>
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
// ### Making Plan Active
1010
// This example demonstrate how you could activate the Plan.

sample/billing/UpdatePlanPaymentDefinitions.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
// # Update a plan
44
//
55
// This sample code demonstrate how you can update a billing plan, as documented here at:
6-
// https://developer.paypal.com/docs/api/#update-a-plan
7-
// API used: /v1/payments/billing-plans/<Plan-Id>
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
// ### Changing Plan Amount
1010
// This example demonstrate how you could change the plan amount

sample/doc/billing/CreateBillingAgreementWithPayPal.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<!DOCTYPE html><html lang="en"><head><title>billing/CreateBillingAgreementWithPayPal</title></head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0"><meta name="groc-relative-root" content="../"><meta name="groc-document-path" content="billing/CreateBillingAgreementWithPayPal"><meta name="groc-project-path" content="billing/CreateBillingAgreementWithPayPal.php"><link rel="stylesheet" type="text/css" media="all" href="../assets/style.css"><script type="text/javascript" src="../assets/behavior.js"></script><body><div id="meta"><div class="file-path">billing/CreateBillingAgreementWithPayPal.php</div></div><div id="document"><div class="segment"><div class="code"><div class="wrapper"><span class="hljs-preprocessor">&lt;?php</span></div></div></div><div class="segment"><div class="comments "><div class="wrapper"><h1 id="create-billing-agreement-with-paypal-as-payment-source">Create Billing Agreement with PayPal as Payment Source</h1>
22
<p>This sample code demonstrate how you can create a billing agreement, as documented here at:
3-
<a href="https://developer.paypal.com/docs/api/#create-an-agreement">https://developer.paypal.com/docs/api/#create-an-agreement</a>
4-
API used: /v1/payments/billing-agreements</p></div></div></div><div class="segment"><div class="comments "><div class="wrapper"><p>Retrieving the Plan from the Create Update Sample. This would be used to
3+
<a href="https://developer.paypal.com/docs/api/payments.billing-agreements/v1/#billing-agreements_post">https://developer.paypal.com/docs/api/payments.billing-agreements/v1/#billing-agreements_post</a>
4+
API used: POST /v1/payments/billing-agreements</p></div></div></div><div class="segment"><div class="comments "><div class="wrapper"><p>Retrieving the Plan from the Create Update Sample. This would be used to
55
define Plan information to create an agreement. Make sure the plan you are using is in active state.</p></div></div><div class="code"><div class="wrapper"><span class="hljs-comment">/** <span class="hljs-doctag">@var</span> Plan $createdPlan */</span>
66
<span class="hljs-variable">$createdPlan</span> = <span class="hljs-keyword">require</span> <span class="hljs-string">'UpdatePlan.php'</span>;
77

sample/doc/billing/CreatePlan.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<!DOCTYPE html><html lang="en"><head><title>billing/CreatePlan</title></head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0"><meta name="groc-relative-root" content="../"><meta name="groc-document-path" content="billing/CreatePlan"><meta name="groc-project-path" content="billing/CreatePlan.php"><link rel="stylesheet" type="text/css" media="all" href="../assets/style.css"><script type="text/javascript" src="../assets/behavior.js"></script><body><div id="meta"><div class="file-path">billing/CreatePlan.php</div></div><div id="document"><div class="segment"><div class="code"><div class="wrapper"><span class="hljs-preprocessor">&lt;?php</span></div></div></div><div class="segment"><div class="comments "><div class="wrapper"><h1 id="create-plan-sample">Create Plan Sample</h1>
22
<p>This sample code demonstrate how you can create a billing plan, as documented here at:
3-
<a href="https://developer.paypal.com/docs/api/#create-a-plan">https://developer.paypal.com/docs/api/#create-a-plan</a>
4-
API used: /v1/payments/billing-plans</p></div></div><div class="code"><div class="wrapper"><span class="hljs-keyword">require</span> <span class="hljs-keyword">__DIR__</span> . <span class="hljs-string">'/../bootstrap.php'</span>;
3+
<a href="https://developer.paypal.com/docs/api/payments.billing-plans/v1/#billing-plans_post">https://developer.paypal.com/docs/api/payments.billing-plans/v1/#billing-plans_post</a>
4+
API used: POST /v1/payments/billing-plans</p></div></div><div class="code"><div class="wrapper"><span class="hljs-keyword">require</span> <span class="hljs-keyword">__DIR__</span> . <span class="hljs-string">'/../bootstrap.php'</span>;
55
<span class="hljs-keyword">use</span> <span class="hljs-title">PayPal</span>\<span class="hljs-title">Api</span>\<span class="hljs-title">ChargeModel</span>;
66
<span class="hljs-keyword">use</span> <span class="hljs-title">PayPal</span>\<span class="hljs-title">Api</span>\<span class="hljs-title">Currency</span>;
77
<span class="hljs-keyword">use</span> <span class="hljs-title">PayPal</span>\<span class="hljs-title">Api</span>\<span class="hljs-title">MerchantPreferences</span>;

sample/doc/billing/DeletePlan.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<!DOCTYPE html><html lang="en"><head><title>billing/DeletePlan</title></head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0"><meta name="groc-relative-root" content="../"><meta name="groc-document-path" content="billing/DeletePlan"><meta name="groc-project-path" content="billing/DeletePlan.php"><link rel="stylesheet" type="text/css" media="all" href="../assets/style.css"><script type="text/javascript" src="../assets/behavior.js"></script><body><div id="meta"><div class="file-path">billing/DeletePlan.php</div></div><div id="document"><div class="segment"><div class="code"><div class="wrapper"><span class="hljs-preprocessor">&lt;?php</span></div></div></div><div class="segment"><div class="comments "><div class="wrapper"><h1 id="delete-plan-sample">Delete Plan Sample</h1>
22
<p>This sample code demonstrate how you can delete a billing plan, as documented here at:
3-
<a href="https://developer.paypal.com/docs/api/#retrieve-a-plan">https://developer.paypal.com/docs/api/#retrieve-a-plan</a>
4-
API used: /v1/payments/billing-plans</p></div></div></div><div class="segment"><div class="comments "><div class="wrapper"><p>Retrieving the Plan object from Create Plan Sample</p></div></div><div class="code"><div class="wrapper"><span class="hljs-comment">/** <span class="hljs-doctag">@var</span> Plan $createdPlan */</span>
3+
<a href="https://developer.paypal.com/docs/api/payments.billing-plans/v1/#billing-plans_patch">https://developer.paypal.com/docs/api/payments.billing-plans/v1/#billing-plans_patch</a>
4+
API used: PATCH /v1/payments/billing-plans/{plan_id}</p></div></div></div><div class="segment"><div class="comments "><div class="wrapper"><p>Retrieving the Plan object from Create Plan Sample</p></div></div><div class="code"><div class="wrapper"><span class="hljs-comment">/** <span class="hljs-doctag">@var</span> Plan $createdPlan */</span>
55
<span class="hljs-variable">$createdPlan</span> = <span class="hljs-keyword">require</span> <span class="hljs-string">'CreatePlan.php'</span>;
66

77
<span class="hljs-keyword">use</span> <span class="hljs-title">PayPal</span>\<span class="hljs-title">Api</span>\<span class="hljs-title">Plan</span>;

sample/doc/billing/GetBillingAgreement.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<!DOCTYPE html><html lang="en"><head><title>billing/GetBillingAgreement</title></head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0"><meta name="groc-relative-root" content="../"><meta name="groc-document-path" content="billing/GetBillingAgreement"><meta name="groc-project-path" content="billing/GetBillingAgreement.php"><link rel="stylesheet" type="text/css" media="all" href="../assets/style.css"><script type="text/javascript" src="../assets/behavior.js"></script><body><div id="meta"><div class="file-path">billing/GetBillingAgreement.php</div></div><div id="document"><div class="segment"><div class="code"><div class="wrapper"><span class="hljs-preprocessor">&lt;?php</span></div></div></div><div class="segment"><div class="comments "><div class="wrapper"><h1 id="get-billing-agreement-sample">Get Billing Agreement Sample</h1>
22
<p>This sample code demonstrate how you can get a billing agreement, as documented here at:
3-
<a href="https://developer.paypal.com/docs/api/#retrieve-an-agreement">https://developer.paypal.com/docs/api/#retrieve-an-agreement</a>
4-
API used: /v1/payments/billing-agreements/<Agreement-Id></p></div></div><div class="code"><div class="wrapper"><span class="hljs-keyword">require</span> <span class="hljs-keyword">__DIR__</span> . <span class="hljs-string">'/../bootstrap.php'</span>;</div></div></div><div class="segment"><div class="comments "><div class="wrapper"><p>Retrieving the Agreement object from Create Agreement From Credit Card Sample</p></div></div><div class="code"><div class="wrapper"><span class="hljs-comment">/** <span class="hljs-doctag">@var</span> Agreement $createdAgreement */</span>
3+
<a href="https://developer.paypal.com/docs/api/payments.billing-agreements/v1/#billing-agreements_get">https://developer.paypal.com/docs/api/payments.billing-agreements/v1/#billing-agreements_get</a>
4+
API used: GET /v1/payments/billing-agreements/{agreement_id}</p></div></div><div class="code"><div class="wrapper"><span class="hljs-keyword">require</span> <span class="hljs-keyword">__DIR__</span> . <span class="hljs-string">'/../bootstrap.php'</span>;</div></div></div><div class="segment"><div class="comments "><div class="wrapper"><p>Retrieving the Agreement object from Create Agreement From Credit Card Sample</p></div></div><div class="code"><div class="wrapper"><span class="hljs-comment">/** <span class="hljs-doctag">@var</span> Agreement $createdAgreement */</span>
55
<span class="hljs-variable">$createdAgreement</span> = <span class="hljs-string">"your billing agreement id"</span>;
66

77
<span class="hljs-keyword">use</span> <span class="hljs-title">PayPal</span>\<span class="hljs-title">Api</span>\<span class="hljs-title">Agreement</span>;

sample/doc/billing/GetPlan.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<!DOCTYPE html><html lang="en"><head><title>billing/GetPlan</title></head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0"><meta name="groc-relative-root" content="../"><meta name="groc-document-path" content="billing/GetPlan"><meta name="groc-project-path" content="billing/GetPlan.php"><link rel="stylesheet" type="text/css" media="all" href="../assets/style.css"><script type="text/javascript" src="../assets/behavior.js"></script><body><div id="meta"><div class="file-path">billing/GetPlan.php</div></div><div id="document"><div class="segment"><div class="code"><div class="wrapper"><span class="hljs-preprocessor">&lt;?php</span></div></div></div><div class="segment"><div class="comments "><div class="wrapper"><h1 id="get-plan-sample">Get Plan Sample</h1>
22
<p>This sample code demonstrate how you can get a billing plan, as documented here at:
3-
<a href="https://developer.paypal.com/docs/api/#retrieve-a-plan">https://developer.paypal.com/docs/api/#retrieve-a-plan</a>
4-
API used: /v1/payments/billing-plans</p></div></div></div><div class="segment"><div class="comments "><div class="wrapper"><p>Retrieving the Plan object from Create Plan Sample</p></div></div><div class="code"><div class="wrapper"><span class="hljs-comment">/** <span class="hljs-doctag">@var</span> Plan $createdPlan */</span>
3+
<a href="https://developer.paypal.com/docs/api/payments.billing-plans/v1/#billing-plans_list">https://developer.paypal.com/docs/api/payments.billing-plans/v1/#billing-plans_list</a>
4+
API used: GET /v1/payments/billing-plans/{plan_id}</p></div></div></div><div class="segment"><div class="comments "><div class="wrapper"><p>Retrieving the Plan object from Create Plan Sample</p></div></div><div class="code"><div class="wrapper"><span class="hljs-comment">/** <span class="hljs-doctag">@var</span> Plan $createdPlan */</span>
55
<span class="hljs-variable">$createdPlan</span> = <span class="hljs-keyword">require</span> <span class="hljs-string">'CreatePlan.php'</span>;
66

77
<span class="hljs-keyword">use</span> <span class="hljs-title">PayPal</span>\<span class="hljs-title">Api</span>\<span class="hljs-title">Plan</span>;

0 commit comments

Comments
 (0)