Skip to content

How to deal with errors after payment goes through #564

Answered by excid3
vikitorfg asked this question in Q&A
Discussion options

You must be logged in to vote

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.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by vikitorfg
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants