bookmebus / spree_vpago

Spree extension for traditional redirect off site payment gateway in Cambodia
BSD 3-Clause "New" or "Revised" License
0 stars 0 forks source link

close #145 acleda payment not process stuck on checkout #146

Closed theachoem closed 5 months ago

theachoem commented 5 months ago

Problem

Error demo: https://github.com/bookmebus/spree_vpago/issues/145

Solution

Above problem can be fixed by call payment.process. I also added process for other vpago payment to avoid this error in future.

What can we do better?

When the payment state is checkout or not in valid state, should raise a gateway error when call order.next. This will make sure order is not moving to completed state.