Skip to content

Commit

Permalink
define setup intent usage to be ON_SESSION
Browse files Browse the repository at this point in the history
  • Loading branch information
fupelaqu committed Sep 7, 2024
1 parent 69324c0 commit 4887d27
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ trait StripeCardApi extends CardApi { _: StripeContext =>
.builder()
.addPaymentMethodType("card")
.setCustomer(customer.getId)
.setUsage(SetupIntentCreateParams.Usage.OFF_SESSION)
.setUsage(SetupIntentCreateParams.Usage.ON_SESSION)
.setPaymentMethodOptions(
SetupIntentCreateParams.PaymentMethodOptions
.builder()
Expand All @@ -62,7 +62,7 @@ trait StripeCardApi extends CardApi { _: StripeContext =>
)
.build()
)
.setUseStripeSdk(false)
// .setUseStripeSdk(false)
.addFlowDirection(SetupIntentCreateParams.FlowDirection.INBOUND)
.putMetadata("currency", currency)
.putMetadata("external_uuid", externalUuid)
Expand Down

0 comments on commit 4887d27

Please sign in to comment.