#testing_83560

1 messages · Page 1 of 1 (latest)

sterile jettyBOT
thick pecan
#

Hello, can you share the PaymentIntent id that you've created?

delicate grotto
#

By PaymentIntent id you mean the id generated when we create it snd do a api call right?

thick pecan
delicate grotto
#

Is it enough to send the id of any one payment intent id created during testing

thick pecan
#

your latest one would be fine

delicate grotto
#

ok

#

pi_3NseyBKitzjSXzew1aYpchtZ

#

So can you tell me what would be required changes in the js file which mounts the payment element "card" and also in the stripepython api call to send the payment method user selected.

#

I would also like to know of these can be done in stripe-python version 2.32.0

If there would be any version compatibility issue?

thick pecan
delicate grotto
#

Will it automatically handel any type of payment method sent without specifying the payment method

thick pecan
#

If there would be any version compatibility issue?

There'll be no version compatibility issue

delicate grotto
#

But we are using currently only card payment method and if I want to change it to accept wallet payment method such as paypal or google pay or apple pay

#

how would the paymentintent.create() has to be changed

thick pecan
delicate grotto
#

Ya almost same

#

The issue is in mounting the various payment methods.And then creating payment using paymentintent in python server side

thick pecan
delicate grotto
#

Doesn't each payment method require different parameters to be passed along .

thick pecan
#

what parameters are you referring to specifically? Do you have an example?

delicate grotto
#

us_bank_account
": {
"financial_connections
": {"permissions
": ["payment_method", "balances"]},
},

This is the parameter shown in the doc for us_bank_account payment method,doesn't that mean each payment method require different parameters

thick pecan
#

not necessarily, most of these have default values. If you want to explicitly pass in certain values for a Payment Method, you can pass it in under the respective payment method in payment_method_options e.g. https://stripe.com/docs/api/payment_intents/create#create_payment_intent-payment_method_options-us_bank_account-financial_connections-permissions

#

I'll suggest just trying it out and seeing how it works

delicate grotto
#

so these params are optional

#

I should just enable automatic_payment_method and create a payment from server side.
Just for clarification,I should also pass the payment method the user has selected right