#sweetpotato
1 messages · Page 1 of 1 (latest)
Can you elaborate more what you would like to acheive?
setSetupFutureUsage is available only card payments?
Not only card payment. Setup Intent will be supported for payment method that can be saved. You may refer here for the payment methods that support Setup Intnet: https://stripe.com/docs/payments/payment-methods/integration-options#additional-api-supportability
but , i enter .setSetupFutureUsage(PaymentIntentCreateParams.SetupFutureUsage.ON_SESSION) this code, show only card payment elements .
i use https://stripe.com/docs/payments/quickstart this source code.
By default if payment_method_types is not specified, it will default to cards only. You'd need to specify the payment_method_type that you wish to setup: https://stripe.com/docs/api/setup_intents/create#create_setup_intent-payment_method_types
i use setAutomaticPaymentMethods.
but , i enter .setSetupFutureUsage(PaymentIntentCreateParams.SetupFutureUsage.ON_SESSION) this code, show only card payment elements .
like this
Ah I see. SetupFutureUsage.ON_SESSION means that customer has to be present when using saved payment method, so Stripe will only show the payment methods that support it. Alipay and Klarna only supports OFF_SESSION
off_session means that merchant can charge to saved payment method even when customer is not present
oh.. event though i use OFF_SESSION ,customers can reuse card ?
Yes
Could you elaborate on that?
Can you share what you would like to achieve?
off_session: Use off_session if your customer may or may not be in your checkout flow.
https://stripe.com/docs/api/setup_intents/create#create_setup_intent-usage
This means that customer doesn't have to be present to authenticate or perform any further action to complete the payment
yes, i got it . but i want show OFF_SESSION payment elements like Klarna or Alipay
The default value of usageis off_session if it's not set
i mean Customer can select saved card and Klarna and Alipay.
Payment Elements doesn't display saved cards. You should retrieve the customer's saved payment method list and display yourself with steps here: https://stripe.com/docs/payments/save-and-reuse?platform=web&ui=elements#charge-saved-payment-method
Hi there, taking over here and sorry don't follow your last question. What do you mean by not using PaymentIntent?
There is SetupIntent which basically helps you to save the card information without charging
if i create tokens, customers don't have to present to authenticate or perform any further action to complete the payment??
If that's possible, wouldn't it be necessary to create paymentIntents?
Creating token is an old integration. Nowsaday you create SetupIntent
And SetupIntent will authenticate you. It's in contrast with token when you may not trigger the authentication, but it will be declined now or later by the issuer bank
Triggering the authentication is a good thing, it prevent the decline rate later and prevent hurting your business credit on the eyes of issuer banks
How do i recognize if it's old integration.?
and i want to save card maintained long live. but SetupIntent do not maintain long-lived...right??
Not sure what you mean by long live but SetupIntent has the exact same effect as creating token
That's unconfirmed SetupIntent
With confirmed SetupIntent you have its PaymentMethod forever
i got it..
i found https://stripe.com/docs/api/setup_intents this section..
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
Does the last 4 digits of the card come as a response from SetupIntent?
i want to show minimal card informations.
Customers want to know which card is registered..
Are the saved cards shown at https://stripe.com/docs/api/cards/list ??
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
It will show inside the Payment Method object of the SetupIntent
How should I develop to save SetupIntent after receiving status with success in confirmPayment?
That means when is the point of saving the setupIntent.
with SetupIntent you have confirmSetup instead of confirmPayment. And yes you can save its details after receiving an setup_intent.succeeded webhook event
it means confirmSetup redirect response not only status but also payment method ID?
or should i retireve again with setupIntent ID??
Yes, here: https://stripe.com/docs/api/setup_intents/object#setup_intent_object-payment_method inside the SetupIntent object
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.