Capture the result of $payment->execute

The important info is not included in the Payment object, but in the object that is returned from $payment->execute
This commit is contained in:
Kale
2013-11-03 11:48:14 -08:00
parent 3e9f2a400f
commit da89241b83

View File

@@ -29,10 +29,10 @@ if(isset($_GET['success']) && $_GET['success'] == 'true') {
//Execute the payment
// (See bootstrap.php for more on `ApiContext`)
$payment->execute($execution, $apiContext);
$result = $payment->execute($execution, $apiContext);
echo "<html><body><pre>";
var_dump($payment->toArray());
var_dump($result);
echo "</pre><a href='../index.html'>Back</a></body></html>";
} else {