File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed
microservices/payment-stripe/src/services/payment-gateway Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -472,11 +472,12 @@ class Stripe extends Abstract {
472
472
} ) ) ;
473
473
474
474
/* eslint-disable camelcase */
475
- let checkoutParams : StripeSdk . Checkout . SessionCreateParams = {
475
+ let checkoutParams : Omit < StripeSdk . Checkout . SessionCreateParams , 'success_url' > & {
476
+ success_url ?: string ;
477
+ } = {
476
478
line_items : lineItems ,
477
479
mode : 'payment' ,
478
480
customer : customerId ,
479
- success_url : '' ,
480
481
} ;
481
482
482
483
/**
@@ -509,7 +510,9 @@ class Stripe extends Abstract {
509
510
url,
510
511
// @ts -ignore
511
512
client_secret : clientSecret ,
512
- } = await this . sdk . checkout . sessions . create ( checkoutParams ) ;
513
+ } = await this . sdk . checkout . sessions . create (
514
+ checkoutParams as StripeSdk . Checkout . SessionCreateParams ,
515
+ ) ;
513
516
/* eslint-enable camelcase */
514
517
515
518
await this . createTransaction (
You can’t perform that action at this time.
0 commit comments