#greggles-subscription-ach

1 messages · Page 1 of 1 (latest)

dreamy crowBOT
#

Hello! We'll be with you shortly. Below are links to other discussions we've had with you in the past week in case you want to review that information. If your question is related to one of these previous discussions, please provide a comprehensive summary of the current state and what you need help with now. We help many users simultaneously, so a summary allows us to resolve your issue as soon as possible.

midnight scarab
#

greggles-subscription-ach

toxic dove
#

Good morning.

midnight scarab
#

@toxic dove can you give me a lot more details, exact code and exact relevant id(s) (sub_123, pi_123, pm_123, mandate_123)

toxic dove
#

pm_1ObnSGGxG8m2870UuE4YT5EA

#

sub_1ObnSJGxG8m2870UN55UzfvD

#

mandate_1ObnSMGxG8m2870UlbHglFQr

#

pi_3ObnSJGxG8m2870U14TpiICx

#

Also, if you have a look at the invoice in_1ObnSJGxG8m2870UHLPCLLv9 the payment failed then was successfully applied. I don't know why that is.

midnight scarab
#

Thanks, Discord is extremely busy so it will take me a long time to catch up, please be patient

toxic dove
#

Thank you for your time.

midnight scarab
#

@toxic dove okay still digging. Can you give me a lot more details about your integration? You are passing a ton of parameters that are rare for cases like yours and I'm struggling to make sense of all the requests.
How exactly are you integrating? How are you collect bank account details, which UI flow do you use, etc.

toxic dove
#

Hi, sure. I am using the payment element with defered paymentintent creation so I instantiate a payment element with the following parameters.

    const options = {
      mode: 'subscription',
      amount: 9995,
      currency: 'usd',
      paymentMethodCreation: 'manual',
      setupFutureUsage: 'off_session',
      appearance: appearance
    };
    elements = stripe.elements(options);
midnight scarab
#

okay I think that's a big part of the issue

#

first off, why are you using such a complex flow like this? I see you create the PaymentMethod and then manually attach it to a Customer which is definitely abnormal. Then you go and create the Subscription with off_session: true, even though it's clearly not since your Customer is here on session entering bank account details right?

Sorry I'm struggling a bit to follow the overall flow of all the requests you made in this case but I do think right now the integration is backwards

You should be doing

  1. Create PM
  2. Create Subscription
  3. Confirm underlying PaymentIntent with PM
toxic dove
#

We are migrating from a card element so I was trying to simply replace the payment element into our existing flow.

#

Do you have any documentation for the flow you suggested?

#

BTW I used off_session: true at the suggestion of one of the Stripe reps because of the inactive mandate issue.

midnight scarab
#

BTW I used off_session: true at the suggestion of one of the Stripe reps because of the inactive mandate issue.
I'm confused what that could mean unfortunately. You came saying the Mandate is inactive

#

I think you really need to change most of your integration at this point

toxic dove
#

It's inactive after the initial payment.