forked from LiveCarta/PayPal-PHP-SDK
Show response instead of request in ExecutePayment
This commit is contained in:
@@ -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);
|
||||
$response = $payment->execute($execution, $apiContext);
|
||||
|
||||
echo "<html><body><pre>";
|
||||
var_dump($payment->toArray());
|
||||
var_dump($response->toArray());
|
||||
echo "</pre><a href='../index.html'>Back</a></body></html>";
|
||||
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user