Classipress / Stripe Uncaught exception
We trying to integrate the stripe payment gateway and we're experiencing the following:
1 - When the credit card information is good, then the payment works. Fantastic. Good stuff. Maybe there could be a success message or something like that instead of simply reshowing the payment info, but no worries. We get the money. Woohoo.
2 - If there is a problem with the payment (incorrect security code, payment declined, etc...) we get the following error:
Fatal error: Uncaught exception 'Stripe_CardError' with message 'Your card's security code is incorrect.' in /home/canadary/public_html/
wp-content/plugins/stripe/lib/Stripe/ApiRequestor.php:72 Stack trace: #0 /home/canadary/public_html/
wp-content/plugins/stripe/lib/Stripe/ApiRequestor.php(113): Stripe_ApiRequestor->handleApiError('{? "error": {?...', 402, Array) #1 /home/canadary/public_html/
wp-content/plugins/stripe/lib/Stripe/ApiRequestor.php(54): Stripe_ApiRequestor->_interpretResponse('{? "error": {?...', 402) #2 /home/canadary/public_html/
wp-content/plugins/stripe/lib/Stripe/ApiResource.php(69): Stripe_ApiRequestor->request('post', '/charges', Array) #3 /home/canadary/public_html/
wp-content/plugins/stripe/lib/Stripe/Charge.php(26): Stripe_ApiResource::_scopedCreate('Stripe_Charge', Array, NULL) #4 /home/canadary/public_html/
wp-content/plugins/stripe/stripe-gateway.php(72): Stripe_Charge::create(Array) #5 /home/canadary/public_html/
wp-content/plugins/stripe/stripe-gateway.php(52): APP_Stripe_Credit_Card_Gateway->pro in
/home/canadary/public_html/wp-content/plugins/stripe/lib/Stripe/ApiRequestor.php on line
72
This error happens in test Stripe as well as in live Stripe.
We are using Stripe Payment Gateway Version 1.0.1, Classipress 3.3.1 and Wordpress 3.7.1
Thoughts?
Thanks,
Richard