Skip to content

Instantly share code, notes, and snippets.

@Teino1978-Corp
Forked from spaomalley/getPayment.php
Created October 30, 2015 05:20
Show Gist options
  • Save Teino1978-Corp/697c361147c3a22cd2ba to your computer and use it in GitHub Desktop.
Save Teino1978-Corp/697c361147c3a22cd2ba 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