Skip to content

Instantly share code, notes, and snippets.

@spaomalley
Last active December 15, 2015 10:48
Show Gist options
  • Save spaomalley/5247869 to your computer and use it in GitHub Desktop.
Save spaomalley/5247869 to your computer and use it in GitHub Desktop.
Retrieve specific Payment resource
<?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['getPaymentById'], $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