post https://api.cartgateway.com/payment/lookup
Do a Lookup Payment Request
Using the PHP SDK
You can also use the PHP SDK to trigger a request to Lookup a Charged or Captured Payment.
<?php
require '../vendor/autoload.php';
try {
$client = new CartGateway\CartGateway([
'account_id' => 123,
'access_token' => 'access-token',
]);
$model = new CartGateway\Models\LookupPayment([
'payment_id' => '',
]);
$response = $client->lookupPayment($model);
} catch (CartGateway\Exceptions\ApiException $e) {
echo $e->message;
exit;
}
// payment information
var_dump($response);
d