forked from solidusio/solidus_paypal_commerce_platform
-
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.
Send amount of payment to PayPal on capture
Previously, we were just telling PayPal to capture the amount that was authorized. However, admin users have the ability to edit the amount of the payment, so now we're sending the amount of the payment to PayPal for capturing. You can capture less than the authorized amount just fine, however trying to capture MORE than that amount will fail the payment and flash a "Something went wrong" error. I think that's fine for the functionality we want - I would expect to not be able to charge more than the customer authorized. Should fix solidusio#29
- Loading branch information
Showing
2 changed files
with
14 additions
and
8 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