#testing_83560
1 messages · Page 1 of 1 (latest)
Hello, can you share the PaymentIntent id that you've created?
By PaymentIntent id you mean the id generated when we create it snd do a api call right?
this API call : https://stripe.com/docs/api/payment_intents/create, it has the suffix of pi_
Is it enough to send the id of any one payment intent id created during testing
your latest one would be fine
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?
you'll need to pass inautomatic_payment_methods.enabled=true when creating the PaymentIntent : https://stripe.com/docs/api/payment_intents/create#create_payment_intent-automatic_payment_methods-enabled
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
Will it automatically handel any type of payment method sent without specifying the payment method
Will it automatically handel any type of payment method sent without specifying the payment method
yes - like our docs mention in https://stripe.com/docs/payments/accept-a-payment?platform=web&ui=elements#create-the-paymentintent
you can manage payment methods from the Dashboard. Stripe handles the return of eligible payment methods based on factors such as the transaction’s amount, currency, and payment flow.
If there would be any version compatibility issue?
There'll be no version compatibility issue
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
were you following this guide when implementing? https://stripe.com/docs/payments/accept-a-payment
Ya almost same
The issue is in mounting the various payment methods.And then creating payment using paymentintent in python server side
as the parameter name automatic_payment_methods implies, it'll automatically display the appropriate payment methods for you based off a few factors. Assuming you're using the Payment Element, if you want to support Apple Pay and Google Pay specifically, make sure you follow the instructions listed here : https://stripe.com/docs/payments/accept-a-payment?platform=web&ui=elements#apple-pay-and-google-pay
Doesn't each payment method require different parameters to be passed along .
what parameters are you referring to specifically? Do you have an example?
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
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
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
I'll suggest just trying it out and seeing how it works