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:
Jay Patel
2015-02-12 15:02:24 -06:00
parent 4d416a4474
commit d613361e69
7 changed files with 2319 additions and 82 deletions

View File

@@ -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);
}