forked from LiveCarta/PayPal-PHP-SDK
Final Webhook Management API Changes
- Updated Samples - Additional Functional Tests - Enabled Travis to do functional tests (with allowed failures) on each build
This commit is contained in:
@@ -6,7 +6,8 @@
|
||||
|
||||
/** @var Authorization $authorization */
|
||||
$authorization = require 'AuthorizePayment.php';
|
||||
|
||||
// Replace $authorizationid with any static Id you might already have. It will do a void on it
|
||||
$authorizationId = '1BF65516U6866543H'; // $authorization->getId();
|
||||
use PayPal\Api\Authorization;
|
||||
|
||||
|
||||
@@ -17,7 +18,7 @@ use PayPal\Api\Authorization;
|
||||
try {
|
||||
|
||||
// Lookup the authorization
|
||||
$authorization = Authorization::get($authorization->getId(), $apiContext);
|
||||
$authorization = Authorization::get($authorizationId, $apiContext);
|
||||
|
||||
// Void the authorization
|
||||
$voidedAuth = $authorization->void($apiContext);
|
||||
|
||||
Reference in New Issue
Block a user