Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow partial capture #483

Closed
AlexP11223 opened this issue Feb 9, 2022 · 1 comment
Closed

Allow partial capture #483

AlexP11223 opened this issue Feb 9, 2022 · 1 comment
Labels
enhancement New feature or request
Milestone

Comments

@AlexP11223
Copy link
Contributor

We have had some merchants request the ability to do a partial capture.

Use Case: Merchant prices the items on the website at their maximum price and when they actually weigh the cuts of meat that they order, the weights usually come in lower thus the price the customer actually pays comes in lower than what they authorized.

When they go to capture the order, the only option is to capture the full authorized amount.

Suggested solution

Documentation: https://developer.paypal.com/docs/api/payments/v2/#authorizations_capture

Pass the current order total as amount.

Also maybe we should pass final_capture=true (if it is not the default behavior), since we never capture more than once, and I guess it can affect whether the remaining money stay locked for some time when capturing lower amount (if the capture considered not final).

@InpsydeNiklas InpsydeNiklas added the enhancement New feature or request label Feb 15, 2022
@Dinamiko Dinamiko added this to the Release 1.7.0 milestone Feb 23, 2022
@Dinamiko
Copy link
Contributor

Implemented in #484.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants