#mrnc18

1 messages · Page 1 of 1 (latest)

terse isleBOT
rocky oyster
#

It depends on what payment UI you're using? There's nothign really to enable on the Dashboard

#

Whether or not you're using dynamic PMs is determined by the APIs/UIs you're using

uneven berry
#

Actually, i am trying to implement the dynamic PMs to my test account when I provide the parameter as automatic_payment_methods :enabled as true i am getting error with the "Received unknown parameter: automatic_payment_methods" and not able to redirect to the stripe checkout

#

By the my test account has been notactivated ?

rocky oyster
#

Because that's not a valid parameter for Checkout

#

Checkout defaults to dynamic PMs, no need to pass a parameter

uneven berry
#

Is that okay to paste the parameters here

rocky oyster
rocky oyster
uneven berry
#

automatic_payment_methods = { enabled: true },

#

and here is my sessioncheckoutparams

#

if (automatic_payment_methods.enabled) {
sessionCreateParams.automatic_payment_methods = automatic_payment_methods;
}

rocky oyster
uneven berry
#

previous code has been the payment_methods_types as card

rocky oyster
uneven berry
#

So no need to provide any payment related parameter for dynamic PM's

rocky oyster
#

Correct

uneven berry
#

If u dont mine i have a small question as well what about for the setUp

#

Intent

rocky oyster
#

Can you clarify the question?

uneven berry
#

I am just asking that so no need to provide the payment_method_type parameter any where right

rocky oyster
#

Are you using Setup Intents API directly? Or via mode: 'setup' in Checkout?

uneven berry
#

i am using as mode in setup

rocky oyster
#

mode: 'setup' doesn't support dynamic PMs yet

proud cloak
#

Hi! I'm taking over this thread. Let me know if you have any other questions.

uneven berry
#

okay soma .So as per ynnoj suggestion i need to pass parameters for setupIntent as previosuly right

proud cloak
#

For mode: 'setup', yes you need to pass payment_method_types.

uneven berry
#

okay thmq

#

is there any issue if i send the automatic_payment_methods this param

proud cloak
#

There's no automatic_payment_methods param with Checkout Session. So you would get an error if you tried.

uneven berry
#

For mode === paymentmethod

#

I am passing like this if (payment_method_types) {
paymentIntentCreateParams.payment_method_types =
payment_method_types;
} else {
paymentIntentCreateParams.automatic_payment_methods =
automatic_payment_methods;
}

#

So shall i supposed to remove thses lines

#

Hi soma there /

proud cloak
#

Is this code related to Checkout Session or something else?

uneven berry
#

In checkout session i am creating the setUp and paymentmethod ny using mode only

proud cloak
#

I'm confused. Can you share your full code that's creating the Checkout Session?

uneven berry
#

please spare me a minute

#

Please look into it and please help me to sort out and make the usage of dynamic PM's

proud cloak
#

please help me to sort out and make the usage of dynamic PM's
If you are using mode: 'payment', simply remove the payment_method_type parameter to use dynamic PM.
If you are using mode: 'setup', then it's currently not possible to use dynamic PM and you have to use the payment_method_type parameter.

uneven berry
#

okay apart from the code do i need to made any setup in dashboard of my stripe account like activate the account or enable any payment methods etcc.

proud cloak
uneven berry
#

Thanks for the info and appreciate your patience.