forked from LiveCarta/PayPal-PHP-SDK
Updated Credit Cards in Samples to fix 500 Exceptions
- Replaced overused credit cards with new ones - More could be generated for sandbox testing at https://ppmts.custhelp.com/app/answers/detail/a_id/750
This commit is contained in:
@@ -24,7 +24,7 @@ use PayPal\Api\Transaction;
|
||||
// used to fund a payment.
|
||||
$card = new CreditCard();
|
||||
$card->setType("visa")
|
||||
->setNumber("4417119669820331")
|
||||
->setNumber("4148529247832259")
|
||||
->setExpireMonth("11")
|
||||
->setExpireYear("2019")
|
||||
->setCvv2("012")
|
||||
@@ -113,7 +113,7 @@ $request = clone $payment;
|
||||
try {
|
||||
$payment->create($apiContext);
|
||||
} catch (Exception $ex) {
|
||||
ResultPrinter::printError('Create Payment Using Credit Card', 'Payment', null, $request, $ex);
|
||||
ResultPrinter::printError('Create Payment Using Credit Card. If 500 Exception, try creating a new Credit Card using <a href="https://ppmts.custhelp.com/app/answers/detail/a_id/750">Step 4, on this link</a>, and using it.', 'Payment', null, $request, $ex);
|
||||
exit(1);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user