#sow - test card -payment intent

1 messages ยท Page 1 of 1 (latest)

round geode
crisp lynx
#

Also we need to know how to handle the insufficient funds card error

round geode
#

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.

crisp lynx
#

which is a wrapper of ios/android stripe sdk

round geode
crisp lynx
#

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 ?

round geode
#

Okay...these are all very specific issues . Can you give me a more general view of what you are trying to build?

crisp lynx
#

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.

round geode
#

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.

crisp lynx
#

Looking for last two payments methods tests and how to handle it

round geode
#

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"

crisp lynx
#

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?

round geode
#

That's the confirmPayment method I sent you earlier (@ 3:01)

#

Here it is again

crisp lynx
#

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?

round geode
#

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.

crisp lynx
# round geode That's the confirmPayment method I sent you earlier (@ 3:01)

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
})

crisp lynx
round geode
#

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.

round geode
crisp lynx
#

thanks again for your all help!, this was very helpful

round geode
#

Happy to help ๐Ÿ‘

crisp lynx
#

It is confusing that , we can use apple and google wallets used for save and reuse for future payments in server side

sage chasm
#

Can you clarify where you heard you can't use setup intents with wallets?

crisp lynx
sage chasm
#

I don't think that's correct - Setup Intents are totally fine to use with digital wallets.

crisp lynx
#

Hmm ok, it says the strip support confirmed it is not doable

sage chasm
#

I'm not sure why they said that - we definitely support this in our mobile libraries and on the web.

crisp lynx
#

Ok good to know that

crisp lynx
#

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

hazy bluff
#

would you have the SetupIntent id?

crisp lynx
#

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.