-
Notifications
You must be signed in to change notification settings - Fork 93
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
PHP error when transaction fails #20
Comments
I know it has been a while, but I am unable to reproduce this error. I tried this code: $subscription = new Recurly_Subscription(); $account = new Recurly_Account(); $billing_info = new Recurly_BillingInfo(); $account->billing_info = $billing_info; $subscription->create(); And I get the expected result: PHP Fatal error: Uncaught exception 'Recurly_ValidationError' with message 'Your transaction was declined due to insufficient funds in your account. Please use a different card or contact your bank.' in /home/mbeale/php/recurly-client-php/lib/recurly/response.php:30 Let me know the code you used to get the error you spoke about |
Since Michael wasn't able to reproduce this and there wasn't any further follow up, I'm going to close this. |
This occurs on the test account when using the test credit card number 4000-0000-0000-0077 (failed due to insuficient funds)
A fix was to add var $field, to the Recurly_TransactionError class
The text was updated successfully, but these errors were encountered: