-
Notifications
You must be signed in to change notification settings - Fork 58
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Support preauth and refunds on PaymentIntents
Before this commit, localstripe already supported Charges with pre-auths and refunds, and it supported PaymentIntents without pre-auths or refunds. Since PaymentIntents are either preferred or supported for most APIs now, let's support pre-auths on PaymentIntents! Since the PaymentIntent implementation in localstripe just proxies most stuff onto Charge objects, we can proxy pre-auths onto them too. Same for refunds. We are already using this at Via (ridewithvia.com) to test our Stripe integration. The tests are a big copy-paste-modify on the Charges tests, which already seemed pretty comprehensive... and we add tests for refunds on both Charges and PaymentIntents.
- Loading branch information
Ben Creech
committed
Sep 15, 2024
1 parent
4617990
commit bb05041
Showing
2 changed files
with
176 additions
and
15 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