Fix links to Developer API Reference #1302

* Fix links to Developer API Reference
This commit is contained in:
Prakash Gangadharan
2019-10-15 23:30:16 +05:30
committed by GitHub
parent 4ddb1de829
commit 2f353688b4
42 changed files with 73 additions and 73 deletions

View File

@@ -3,8 +3,8 @@
// # Create Billing Agreement with PayPal as Payment Source
//
// This sample code demonstrate how you can create a billing agreement, as documented here at:
// https://developer.paypal.com/docs/api/#create-an-agreement
// API used: /v1/payments/billing-agreements
// https://developer.paypal.com/docs/api/payments.billing-agreements/v1/#billing-agreements_post
// API used: POST /v1/payments/billing-agreements
// Retrieving the Plan from the Create Update Sample. This would be used to
// define Plan information to create an agreement. Make sure the plan you are using is in active state.

View File

@@ -3,8 +3,8 @@
// # Create Plan Sample
//
// This sample code demonstrate how you can create a billing plan, as documented here at:
// https://developer.paypal.com/docs/api/#create-a-plan
// API used: /v1/payments/billing-plans
// https://developer.paypal.com/docs/api/payments.billing-plans/v1/#billing-plans_post
// API used: POST /v1/payments/billing-plans
require __DIR__ . '/../bootstrap.php';
use PayPal\Api\ChargeModel;

View File

@@ -3,8 +3,8 @@
// # Delete Plan Sample
//
// This sample code demonstrate how you can delete a billing plan, as documented here at:
// https://developer.paypal.com/docs/api/#retrieve-a-plan
// API used: /v1/payments/billing-plans
// https://developer.paypal.com/docs/api/payments.billing-plans/v1/#billing-plans_patch
// API used: PATCH /v1/payments/billing-plans/{plan_id}
// Retrieving the Plan object from Create Plan Sample
/** @var Plan $createdPlan */

View File

@@ -3,8 +3,8 @@
// # Get Billing Agreement Sample
//
// This sample code demonstrate how you can get a billing agreement, as documented here at:
// https://developer.paypal.com/docs/api/#retrieve-an-agreement
// API used: /v1/payments/billing-agreements/<Agreement-Id>
// https://developer.paypal.com/docs/api/payments.billing-agreements/v1/#billing-agreements_get
// API used: GET /v1/payments/billing-agreements/{agreement_id}
require __DIR__ . '/../bootstrap.php';
// Retrieving the Agreement object from Create Agreement From Credit Card Sample

View File

@@ -3,8 +3,8 @@
// # Get Plan Sample
//
// This sample code demonstrate how you can get a billing plan, as documented here at:
// https://developer.paypal.com/docs/api/#retrieve-a-plan
// API used: /v1/payments/billing-plans
// https://developer.paypal.com/docs/api/payments.billing-plans/v1/#billing-plans_get
// API used: GET /v1/payments/billing-plans
// Retrieving the Plan object from Create Plan Sample
/** @var Plan $createdPlan */

View File

@@ -3,8 +3,8 @@
// # Get List of Plan Sample
//
// This sample code demonstrate how you can get a list of billing plan, as documented here at:
// https://developer.paypal.com/docs/api/#list-plans
// API used: /v1/payments/billing-plans
// https://developer.paypal.com/docs/api/payments.billing-plans/v1/#billing-plans_list
// API used: GET /v1/payments/billing-plans
// Retrieving the Plan object from Create Plan Sample to demonstrate the List
/** @var Plan $createdPlan */

View File

@@ -3,8 +3,8 @@
// # Reactivate an agreement
//
// This sample code demonstrate how you can reactivate a billing agreement, as documented here at:
// https://developer.paypal.com/docs/api/#suspend-an-agreement
// API used: /v1/payments/billing-agreements/<Agreement-Id>/suspend
// https://developer.paypal.com/docs/api/payments.billing-agreements/v1/#billing-agreements_re-activate
// API used: POST /v1/payments/billing-agreements/{agreement_id}/re-activate
// Retrieving the Agreement object from Suspend Agreement Sample to demonstrate the List
/** @var Agreement $suspendedAgreement */

View File

@@ -3,8 +3,8 @@
// # Search Billing Transactions Sample
//
// This sample code demonstrate how you can search all billing transactions, as documented here at:
// https://developer.paypal.com/docs/api/#search-for-transactions
// API used: GET /v1/payments/billing-agreements/<Agreement-Id>/transactions? start-date=yyyy-mm-dd&end-date=yyyy-mm-dd
// https://developer.paypal.com/docs/api/payments.billing-agreements/v1/#billing-agreements_transactions
// API used: GET /v1/payments/billing-agreements/{agreement_id}/transactions? start-date=yyyy-mm-dd&end-date=yyyy-mm-dd
// 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.
/** @var Agreement $agreement */

View File

@@ -3,8 +3,8 @@
// # Suspend an agreement
//
// This sample code demonstrate how you can suspend a billing agreement, as documented here at:
// https://developer.paypal.com/docs/api/#suspend-an-agreement
// API used: /v1/payments/billing-agreements/<Agreement-Id>/suspend
// https://developer.paypal.com/docs/api/payments.billing-agreements/v1/#billing-agreements_suspend
// API used: POST /v1/payments/billing-agreements/{agreement_id}/suspend
// Retrieving the Agreement object from Create Agreement Sample to demonstrate the List
require __DIR__ . '/../bootstrap.php';

View File

@@ -3,8 +3,8 @@
// # Update an agreement
//
// This sample code demonstrate how you can update a billing agreement, as documented here at:
// https://developer.paypal.com/docs/api/#update-an-agreement
// API used: /v1/payments/billing-agreements/<Agreement-Id>
// https://developer.paypal.com/docs/api/payments.billing-agreements/v1/#billing-agreements_patch
// API used: PATCH /v1/payments/billing-agreements/{agreement_id}
require __DIR__ . '/../bootstrap.php';

View File

@@ -3,8 +3,8 @@
// # Update a plan
//
// This sample code demonstrate how you can update a billing plan, as documented here at:
// https://developer.paypal.com/docs/api/#update-a-plan
// API used: /v1/payments/billing-plans/<Plan-Id>
// https://developer.paypal.com/docs/api/payments.billing-plans/v1/#billing-plans_patch
// API used: PATCH /v1/payments/billing-plans/{plan_id}
// ### Making Plan Active
// This example demonstrate how you could activate the Plan.

View File

@@ -3,8 +3,8 @@
// # Update a plan
//
// This sample code demonstrate how you can update a billing plan, as documented here at:
// https://developer.paypal.com/docs/api/#update-a-plan
// API used: /v1/payments/billing-plans/<Plan-Id>
// https://developer.paypal.com/docs/api/payments.billing-plans/v1/#billing-plans_patch
// API used: PATCH /v1/payments/billing-plans/{plan_id}
// ### Changing Plan Amount
// This example demonstrate how you could change the plan amount