#KEITH LARD

1 messages ยท Page 1 of 1 (latest)

median krakenBOT
tall fulcrum
#

I am also sending

'setup_future_usage' => 'off_session'

last condor
#

Checking in to this. Is there a doc of ours that you were referring to for MOTO subscriptions?

tall fulcrum
#

I cannot find anything for MOTO specific to subscriptions

#

I am just making assumptions to be honest beyond the first payment with the setup_future_usage flag

#

is there anything I can read on this?

last condor
#

Not sure if we will have info on a MOTO specific decline rate for subscriptions. Each bank can have their own policies about that. As long as you have the payment method saved and attached to the subscription we will still be flagging all the proper things to the bank so that it has the best chance of approval

tall fulcrum
#

Cool, I am just concerned obviously after the first payment it will no longer be flagged as MOTO?

#

but we are saving the card for future usage and flagging everything correctly

median krakenBOT
mortal aspen
#

๐Ÿ‘‹ stepping in

#

I'd recommend using a SetupIntent here and indicating moto on the SetupIntent to collect the PaymentMethod. Then start the Sub using that PaymentMethod.

#

The PaymentMethod will be properly flagged for moto if it was created via SetupIntent with moto indicator set

tall fulcrum
#

I didn't realise you could use setupintent with moto, the docs just refer to paymentintent

#

Oh I see it actually

#

So can I use a setup intent with an existing payment method collected beforehand?

mortal aspen
#

Hmmm that doesn't really make sense.

tall fulcrum
#

Sorry I'm confusing myself too

mortal aspen
#

Like if it was already collected then it should have already been indicated as moto when it was collected

tall fulcrum
#

I'm using the card element to collect the card details

#

then charging via the api flagging MOTO

#

So my current flow.

  1. Collect and store payment method using card element
  2. Once successful, hit my API and charge that payment method with MOTO
mortal aspen
#

Ah I see

tall fulcrum
#

but obviously if I use setup intent instead could I just not send through that payment method in step 2

#

and flag usage: off_session etc, for best chance of future success

mortal aspen
#

Well you want to flag as moto since that is what it is, not just usage: off_session

tall fulcrum
#

Ye I will do that too sorry

mortal aspen
#

But you should be able to do the same flow you are currently doing but pass the PaymentMethod ID to the SetupIntent

tall fulcrum
#

cool, so sorry to clarify one more time.

  1. Flag setup intent as MOTO
  2. usage = off_session as subscription will be created immediately.
  3. Create subscription using setup intent

Should I also send any mandate_data? I just want to make sure I am doing everything possible to reduce failures

mortal aspen
#

Steps would be:

  1. create PM client-side
  2. Pass it to server and create/confirm SetupIntent where you pass the PaymentMethod ID and payment_method_options: { card: { moto: true, }, },
  3. Create the Sub and set the above PaymentMethod ID as the default payment method for the Sub.
#

You should not need mandate_data unless you are working with Indian customers

tall fulcrum
#

Perfect thanks Ill try it now

#

the single_use parameter, is that useful?

#

Our subscriptions may increase in price in the future, if the customer asks for addons etc

mortal aspen
#

No you shouldn't need single_use for a recurring payment

tall fulcrum
#

ok thank you for the help ๐Ÿ™‚