forked from LiveCarta/PayPal-PHP-SDK
Fix links to Developer API Reference
This commit is contained in:
@@ -1,16 +1,16 @@
|
||||
<?php
|
||||
// # AuthorizationCapture
|
||||
// This sample code demonstrates how you can capture
|
||||
// This sample code demonstrates how you can capture
|
||||
// a previously authorized payment.
|
||||
// API used: /v1/payments/payment
|
||||
// https://developer.paypal.com/webapps/developer/docs/api/#capture-an-authorization
|
||||
// https://developer.paypal.com/docs/api/#capture-an-authorization
|
||||
|
||||
use PayPal\Api\Amount;
|
||||
use PayPal\Api\Authorization;
|
||||
use PayPal\Api\Capture;
|
||||
|
||||
|
||||
// Replace $authorizationId with any static Id you might already have.
|
||||
// Replace $authorizationId with any static Id you might already have.
|
||||
$authorizationId = "<your authorization id here>";
|
||||
|
||||
// ### Capture Payment
|
||||
|
||||
@@ -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/<Payment-Id>
|
||||
|
||||
/** @var Payment $createdPayment */
|
||||
|
||||
Reference in New Issue
Block a user