forked from solidusio/solidus_affirm
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove call to authorize payments in confirm
Payments are authorized when an order is completed as part of the process! method in Spree::Payment::Processing. We want to wait until then to authorize the payments to prevent any issues where an amount is authorized and then the cart is abandoned or possible extra authorizations. Instead of authorizing we want to move the order to the confirm state unless it is already in the confirm state. Previously this was setting the payment amount to be the authorized amount but we are no longer pre-authorizing. The payment amount will now be the full order amount.
- Loading branch information
1 parent
e02828f
commit 0f59584
Showing
5 changed files
with
41 additions
and
208 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
133 changes: 0 additions & 133 deletions
133
spec/fixtures/vcr_casettes/callback_hook_authorize_success.yml
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters