ResultPrinter::printResult(
'Create Payment Using Credit Card',
'Payment',
$payment->getId(),
$request,
$payment);
diff --git a/sample/payments/CreatePayment.php b/sample/payments/CreatePayment.php
index bbebc1f..059622e 100644
--- a/sample/payments/CreatePayment.php
+++ b/sample/payments/CreatePayment.php
@@ -114,7 +114,7 @@ try {
$payment->create($apiContext);
} catch (Exception $ex) {
// NOTE: PLEASE DO NOT USE RESULTPRINTER CLASS IN YOUR ORIGINAL CODE. FOR SAMPLE ONLY
- ResultPrinter::printError('Create Payment Using Credit Card. If 500 Exception, try creating a new Credit Card using
Step 4, on this link, and using it.', 'Payment', null, $request, $ex);
+ ResultPrinter::printError('Create Payment Using Credit Card. If 500 Exception, try creating a new Credit Card using
Step 4, on this link, and using it.', 'Payment', null, $request, $ex);
exit(1);
}
NOTE: PLEASE DO NOT USE RESULTPRINTER CLASS IN YOUR ORIGINAL CODE. FOR SAMPLE ONLY