try {
$card = CreditCard::get($cardId, $apiContext);
} catch (\PPConnectionException $ex) {
echo "Exception: " . $ex->getMessage() . PHP_EOL;
var_dump($ex->getData());
exit(1);
}
?>
<html>
<body>
<div>Retrieving credit card: <?php echo $cardId;?></div>
<pre><?php var_dump($card);?></pre>
<a href='../index.html'>Back</a>
</body>
</html>
Get Credit Card Sample
The CreditCard resource allows you to retrieve previously saved CreditCards, by sending a GET request to the URI '/v1/vault/credit-card' The following code takes you through the process of retrieving a saved CreditCard