Last active
December 15, 2015 10:48
-
-
Save spaomalley/5247927 to your computer and use it in GitHub Desktop.
Payment Deletion. This is only available to use when the 'status' attribute of the payment resource is NOT set to 'Settled'. If so, you must is issue a refund.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
require 'ConfigFactory.php'; | |
require 'OAuthRequest.php'; | |
$c = new Creds(); | |
$creds = $c->creds(); | |
$links = $c->links(); | |
$accessTokenData = getAccessToken($links, $creds); | |
$paymentId = ""; | |
$payment = new OAuthRequest($endpoint['deletePaymentById'], $accessTokenData, null, $paymentId); | |
$payment->createHeader(); | |
echo $payment->sendRequest(); | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment