ethercreative / web-payments

Web Payments for Craft Commerce
Other
5 stars 7 forks source link

Cannot pay again when failing initial payment #11

Open davecosec opened 4 years ago

davecosec commented 4 years ago

When testing, using a declined card then going back to pay the cart throws an error because key exists trying to insert the order again on line 280 in StripeController.php. Possibly change insert to upsert? I'm not sure if it should even get that far or if the test payments would normally throw an error earlier