-
Notifications
You must be signed in to change notification settings - Fork 46
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor(stripe): Use PaymentIntent and subscriptions instead of Chec…
…kout sessions (#627) * feat: Add StripeModule to encapsulate stripe related logic * src/stripe: Add DTO for subscription payments * feat(stripe): Add support for recurring payment - Added endpoint to create stripe subscriptions - Add services to: Create stripe products Create stripe customers Create stripe subscriptions * refactor: Move everything Stripe related to Stripe module * refactor: Move updateDonationPayment fn to DonationService This is where it should belong * refactor: Adjust tests to latest changes * refactor(paypal.service.spec): Remove duplicate CacheModule import * feat(stripe): Don't initiate intent/subscription if campaign is completed * refactor(stripe): Create subscription from setupIntent object * chore(donations): Use card country when calculating netAmount for subscription * chore(donations): Use idempotency key when creating stripe resources * tests: Adjust tests to lates changes * src/donations: Add endpoint to get first donation by paymentIntentId Needed for creating wishes after payment has been made * stripe: Add endpoint for setupintent cancellation * chore: Address review changes * fix: App not starting --------- Co-authored-by: dimitar.nizamov <[email protected]>
- Loading branch information
1 parent
c5eb0a7
commit f96d503
Showing
36 changed files
with
1,585 additions
and
768 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
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
Oops, something went wrong.