Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: Send forgotten idempotency key
Browse files Browse the repository at this point in the history
sashko9807 committed Dec 9, 2024
1 parent 50c5831 commit ef268fd
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions apps/api/src/stripe/stripe.service.ts
Original file line number Diff line number Diff line change
@@ -118,11 +118,8 @@ export class StripeService {
* @param inputDto Payment intent create params
* @returns {Promise<Stripe.Response<Stripe.PaymentIntent>>}
*/
async createSetupIntent({
idempotencyKey,
}: {
idempotencyKey: string
}): Promise<Stripe.Response<Stripe.SetupIntent>> {
async createSetupIntent(): Promise<Stripe.Response<Stripe.SetupIntent>> {
const idempotencyKey = crypto.randomUUID()
return await this.stripeClient.setupIntents.create({}, { idempotencyKey })
}

0 comments on commit ef268fd

Please sign in to comment.