From da89241b83efae5a23e22f544b49192fdfacee8b Mon Sep 17 00:00:00 2001 From: Kale Date: Sun, 3 Nov 2013 11:48:14 -0800 Subject: [PATCH] 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 --- sample/payments/ExecutePayment.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sample/payments/ExecutePayment.php b/sample/payments/ExecutePayment.php index ca87360..3ef9644 100644 --- a/sample/payments/ExecutePayment.php +++ b/sample/payments/ExecutePayment.php @@ -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 "
";
-	var_dump($payment->toArray());
+	var_dump($result);
 	echo "
Back"; } else {