solidusio / solidus_stripe

πŸ’³ Integrate Solidus with Stripe
https://stripe.com
BSD 3-Clause "New" or "Revised" License
37 stars 61 forks source link

Support partial capture for previously authorized payments #288

Closed rainerdema closed 1 year ago

rainerdema commented 1 year ago

Summary

This PR enables the capture of a specific portion of a previously authorized payment. By specifying the amount in the capture gateway action, admins can also perform partial captures via the admin interface.

Fixes #186

Checklist

Check out our PR guidelines for more details.

The following are mandatory for all PRs:

The following are not always needed:

codecov[bot] commented 1 year ago

Codecov Report

Merging #288 (95dff3a) into master (2c4f20d) will not change coverage. The diff coverage is 100.00%.

@@           Coverage Diff           @@
##           master     #288   +/-   ##
=======================================
  Coverage   99.62%   99.62%           
=======================================
  Files          30       30           
  Lines         540      540           
=======================================
  Hits          538      538           
  Misses          2        2           
Impacted Files Coverage Ξ”
app/models/solidus_stripe/gateway.rb 100.00% <100.00%> (ΓΈ)

:mega: We’re building smart automated test selection to slash your CI/CD build times. Learn more

rainerdema commented 1 year ago

Rebased to resolve some conflicts πŸ‘†