Skip to content

Instantly share code, notes, and snippets.

@spaomalley
Last active December 15, 2015 10:48
Show Gist options
  • Select an option

  • Save spaomalley/5247927 to your computer and use it in GitHub Desktop.

Select an option

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.
<?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