#sow - test card -payment intent
1 messages ยท Page 1 of 1 (latest)
Also we need to know how to handle the insufficient funds card error
So in this case you would want to catch this error and return the payment_intent.client_secret to your front-end so it can be used in the client when initializing the Payment Sheet.
Thank you, any idea which method we need to call to use this client_secret ? we are using flutter stripe package : https://pub.dev/documentation/flutter_stripe/latest/
flutter_stripe API docs, for the Dart programming language.
which is a wrapper of ios/android stripe sdk
it is not clear in this docuemntation how to handle these scenarios : https://stripe.com/docs/payments/save-and-reuse
Here's a good place to start, well at least I think this is the method you're looking for.
https://pub.dev/documentation/stripe_platform_interface/latest/stripe_platform_interface/StripePlatform/confirmPayment.html
so for both the scenarios bleow we have to use it ? Credit card The card requires authentication for the initial setup and also requires authentication for subsequent payments. Fill out the credit card form using the credit card number 4000 0027 6000 3184 with any expiration, CVC, and postal code.
Credit card The card is declined during setup. Fill out the credit card form using the credit card number 4000 0000 0000 9995 with any expiration, CVC, and postal code.
means we cant use the setup_intent feature as it needs always user interaction like wallets ?
Okay...these are all very specific issues . Can you give me a more general view of what you are trying to build?
we are building a marketplace app and need to implement the payment feature same as uber/stripe. We are using stripe connected express product. We need to let the customers choose apple pay, google pay, and any credit cards as the payment methods and they should be able to save the payment option with a default payment method as their choice. Whenever they request for service in our platform, we need to use the default payment method and need to authorize them to put a hold on a certain amount and capture the actual amount once the service is delivered. We shouldn't be showing the payment sheet and asking for the authorization all the time (same as Uber and Lyft), customers can choose other payment methods if they want to during this time. We believe we have to use this option: https://stripe.com/docs/payments/capture-later , Our app is being built using flutter and using the flutter_stripe package.
Okay well the purpose of a Setup Intent is to configure a payment method for later use.
https://stripe.com/docs/payments/setup-intents
In most cases no additional authentication will be required. However, in some cases authentication will still be necessary (as with some of our test cards). In those cases there is no way around requiring this authorization so your application needs to be able to handle this situation.
Thanks, if you can help us by giving some instructions on how we need to handle this in the application like, what we need to look for from the server which stripe function we need to use to handle it in the client side will be helpful. Your doc is not giving the clear instructions for how to handle it with setupintent for the last two scenarios here https://stripe.com/docs/payments/save-and-reuse?platform=react-native&ui=payment-sheet#web-test-the-integration
Looking for last two payments methods tests and how to handle it
Okay so here's another take on the same action that might have a little better explanation:
https://stripe.com/docs/payments/save-during-payment?platform=react-native&ui=payment-sheet#react-native-charge-saved-payment-method
Additionally, if you see the Server Code snippet where the paymentIntent is created, there's a link to "See Full Example"
Take a look at this code. I think the error recovery operations you are looking for start when checking if the error code is "authentication_required"
Great thank you, so for this scneario , if err.code == 'authentication_required':
# Bring the customer back on-session to authenticate the purchase
# You can do this by sending an email or app notification to let them know
# the off-session purchase failed
# Use the PM ID and client_secret to authenticate the purchase
# without asking your customers to re-enter their details
what is the flutter client stripe SDK funciton for , # without asking your customers to re-enter their details?
Perfect , one more question, how does this work for apple wallet and google pay scenario, like uber and lyft we can set my default payment is using apple wallet, and i can authorize the amount without asking for apple wallet again?
Apple Pay and Google Pay produce payment methods, which work like most other payment methods. The caveat is that for each individual purchase the payment sheet will need to be displayed.
Also is this the same method for decline scneario , # The card was declined for other reasons (e.g. insufficient funds)
Bring the customer back on-session to ask them for a new payment method
return jsonify({
'error': err.code,
'publicKey': os.getenv('STRIPE_PUBLISHABLE_KEY'),
'clientSecret': err.payment_intent.client_secret
})
Got it thank you!
Only confusion with this was, apple wallet payment methods are not listing in the stripe customer payment methods section
If the card is declined for another reason you would not use this method since you would want them to enter a different payment method.
thanks got it
Not sure what you mean here. Stripe payment methods support multiple wallet types:
https://stripe.com/docs/payments/wallets
Ok I will read it first ๐
thanks again for your all help!, this was very helpful
Happy to help ๐
One another doubt, I heard that we cant use setup intent with wallets, but then why we have this setup guidance in t save and reuse documentation for apple wallet ? https://stripe.com/docs/payments/save-and-reuse?platform=react-native&ui=payment-sheet#react-native-apple-pay
It is confusing that , we can use apple and google wallets used for save and reuse for future payments in server side
Can you clarify where you heard you can't use setup intents with wallets?
I don't think that's correct - Setup Intents are totally fine to use with digital wallets.
Hmm ok, it says the strip support confirmed it is not doable
I'm not sure why they said that - we definitely support this in our mobile libraries and on the web.
Ok good to know that
Could you please double check on this as I am not seeing the payment method is getting added to the customer account when I use apple wallet for setupintent
would you have the SetupIntent id?
Sure my client developer is out and and we will share the details once he is back. @pearl eagle please share the setup intent ID once you see this message.