Triggering a credit card declined message through the PayPal Sandbox interface?



  • Can you somehow configure a test account in the PayPal Sandbox testing environment to return a credit card declined failure message when that user tries to submit a payment or trigger a failure message on an individual transaction? I've looked around on the Internet for way to do this, and some of the suggested solutions included: Altering the test user account address to trigger address verification failure (which did not work, but it was seven-year-old documentation). Turn on negative testing and fire off requests to the sandbox to get a failure message according to the amount you send in (which won't work for me, as I'm trying to test this from the user's perspective by creating the transaction through the Web site and submitting for PayPal payment, and seeing how the system processes the response). Submitting a transaction over $1000 (which won't work as our transactions do not exceed $100 in value). I know you can fail an eCheck payment while it's pending, but I don't see any way to do the same with credit card payments. Is there a means?



  • Most payment providers supply test card numbers to enable you to do this, for example WorldPay has the following: http://www.worldpay.com/support/bg/xml/kb/3dsecure/dxmlA008.html Testing Transactions A number of different cases can be tested by entering the following values as the card/accountholder name () in the order: REFUSED – will simulate a refused payment REFERRED - will simulate a refusal with the refusal reason ‘referred' FRAUD - will simulate a refusal with the refusal reason ‘fraud suspicion' ERROR - will simulate a payment that ends in error. All other card/accountholder names will simulate an authorised payment. For test purposes we have provided a set of test credit and debit card numbers, these are listed below in the Test Card Numbers section. Captures and refunds can be simulated through the Merchant Administration Interface. Use the "Capture" or "Refund" button in the Payment and Order Details page. Alternatively, you can send an XML capture or refund order modification to the Test environment. (I haven't added the numbers to this post as they can change, going to the Worldpay site and getting the latest information is always the best thing to do) You can create test accounts in PayPal, so I would try using some of the credit card details referred to in the link above with a PayPal test account and see how it goes. It looks like PayPal will also generate test credit card numbers so that you can test valid transactions (Having a quick look at their Sandbox guide): https://cms.paypal.com/cms_content/TR/tr_TR/files/developer/PP_Sandbox_UserGuide.pdf (Specifically Page 30) Hopefully the above has given you all the information you need.



Suggested Topics

  • 2
  • 2
  • 2
  • 2
  • 4
  • 2
  • 2
  • 2