accept-a-card-payment
accept-a-card-payment copied to clipboard
fix: PHP Card exception to newer API reference
Changed card exception to newer reference to prevent errors.
Thanks, @jackbayliss, however this also requires an upgrade of the Stripe PHP libraries. Do you want to do that also? If not I can open a separate PR and close this one out.
@thorsten-stripe I've updated the stripe/stripe-php library to 7.27
. I don't know how I missed it haha.
Sorry for the delay, and sorry for only now realising that accessing the error code and message have also changed 🙈 , e.g. $e->getError()->code
@thorsten-stripe No problem, I've changed the error / message accessing to the new method too :)