I am using the Cost Estimation and Payment Forms Builder plugin that came with my Theme X purchase and I am having some issues after testing the forms and payment process with Stripe.
Right now, I am using the test keys for stripe, and I have tested with the following card test numbers to submit a payment, expecting an error in return. (Enter any CVC code and expiration date to test). When I use this test info, I see that the payment didn’t go through because of an error on the stripe site, and the order doesn’t go through in the WordPress panel on my end (which is what is supposed to happen). But it seems like there is no error handling for when these codes come back from Stripe, and I still get my usual final message that says the payment has processed (even though I know it hasn’t).
4000000000000002 Charge is declined with a card_declined code.
4100000000000019 Charge is declined with a card_declined code and a fraudulent reason.
4000000000000127 Charge is declined with an incorrect_cvc code.
4000000000000069 Charge is declined with an expired_card code.
4000000000000119 Charge is declined with a processing_error code.
The only test info I have used that successfully returned an error that said “Your card number is incorrect.” was the following:
4242424242424241 Charge is declined with an incorrect_number code as the card number fails the Luhn check.
I have also used correct card test info and was able to see my payment go through on stripe’s end, as well as the order numbers in the form admin panel:
4242424242424242 Visa
4012888888881881 Visa