#dan_kres

1 messages · Page 1 of 1 (latest)

frail wingBOT
hazy flax
#

Yes, but you'll need to speak to support about getting access to that: https://support.stripe.com/contact

random crypt
#

I already have this gate enabled, but payments are failing

hazy flax
#

Can you share an example?

random crypt
#

Original-Request: req_8OlZasdIPJa7yh
Request-Id: req_8OlZasdIPJa7yh

#

That is a second MIT transaction when the previous MIT was already processed with Stripe

#

I use payment method created on that previous payment

hazy flax
#

Error message seems pretty verbose:

The provided PaymentMethod was previously used with a PaymentIntent without Customer attachment, shared with a connected account without Customer attachment, or was detached from a Customer. It may not be used again. To use a PaymentMethod multiple times, you must attach it to a Customer first.

random crypt
#
  1. The customer was created and its id was passed in request on the previous payment
    amount: "50"
    currency: "usd"
    capture_method: "manual"
    confirm: "true"
    customer: "cus_OujFHsLj4D5aiZ"
    off_session: "true"
    payment_method_options[card][mit_exemption][network_transaction_id]: "MDH1023"
    payment_method_data[card][number]: "5375
    **9699"
    payment_method_data[card][exp_month]: "XX"
    payment_method_data[card][exp_year]: "XX"
    payment_method_data[type]: "card"
#
  1. The link you have shared is for network tokens, this is not a network token, its a usual PAN
hazy flax
#

That payment has 'used' the payment method and therefore it cannot be used in subsequent payments (as per the error)

random crypt
#

What is the right flow then?

frail wingBOT
random crypt
#

I was pretty sure that the customer is automatically attaches to payment method whenever this PM was created within Payment Intent

hazy flax
#

I linked to it above, you're missing setup_future_usage in your initial PI with the network token

#

That will save the network token as a reusable PM on Stripe

random crypt
#

"message": "You cannot confirm with off_session=true when setup_future_usage is also set on the PaymentIntent. The customer needs to be on-session to perform the steps which may be required to set up the PaymentMethod for future usage. Please confirm this PaymentIntent with your customer on-session."

hazy flax
#

Yep, seems about right. If you're saving the card (with s_f_u) then it cannot be flagged off-session

random crypt
#

But that's a MIT transaction, the customer is not present

hazy flax
#

The initial payment cannot be MIT if you're attempting to save the payment method

random crypt
#

The initial payment was processed via another processor

hazy flax
#

Yes, but you're attempting to create a reusable Stripe payment method. For that to happen the customer needs to be on-session

random crypt
#

Is there any work around?

#

Can we create a PM without customer being on session?

stiff vault
#

👋 taking over for my colleague. Let me catch up.

#

is it a MOTO payment?

random crypt
#

It looks like, but we are passing network transaction ID too

#

That is subsequent card-on-file transaction with network transaction id

stiff vault
#

in this case, please reach out to https://support.stripe.com/?contact=true

#

they might be able to help you

#

please tell them that you're interested in MOTO with NTI