-
I'm using jumpstart and paygem, after I could run Below my code for some reference. Thanks a lot in advance.
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
The first thing I would do is run If there is a failure even after that, you may want to refund the charge or email an admin to handle it manually. |
Beta Was this translation helpful? Give feedback.
The first thing I would do is run
@order.valid?
before creating the charge. That way you can pre-verify the order is going save correctly before attempting the charge.If there is a failure even after that, you may want to refund the charge or email an admin to handle it manually.