#TheMechanic

1 messages · Page 1 of 1 (latest)

solid patrolBOT
#

Hello TheMechanic, 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.
TheMechanic, 2 days ago, 12 messages
TheMechanic, 5 days ago, 33 messages

silent kite
#

Are you using Defer intent flow?

sour basin
#

What you mean by defer ?

silent kite
#

Ah I think yes

sour basin
#

I get my PaymentIntent in a request in the onConfirm callback, then pass it to stripe :
// Confirm the PaymentIntent using the details collected by the Express Checkout Element const { error } = await stripe.confirmPayment({ //elementsinstance used to create the Express Checkout Element elements, //clientSecret from the created PaymentIntent clientSecret: res.data.paymentIntentClientSecret, confirmParams: { return_url: 'https://example.com/order/123/complete', }, });

silent kite
#

any guide you're following for this?

Also can you print out the PaymentIntent before you call confirmPayment ?

sour basin
#

yes, I can print it, it exists

#

following this doc

silent kite
#

yes, I can print it, it exists
can you share the ID?

sour basin
#

yup

#

pi_3O56qcFq1BiPgN2K054RojkF_secret_RsQT7TgrNGzTXUQDsMBclCVQz

silent kite
#

oh, your code explicity sets automatic_payment_methods to false

#

is there a reason for that?

sour basin
#

mhh i have a doubt, i quick check with a coworker

silent kite
#

👍

sour basin
#

We are not sure, as it is in place since a long time

silent kite
#

If you remove it, does the error go away?

sour basin
#

i think we use it for forcing 3ds in some cases

#

i can give a try

#

I m doing these test, waiting for build.

#

I got some informations for the reason why we are using manual mode :

  • we need to create customer and add them a source for using it later
  • we need to creatre authorization flows (-> capture)
  • force 3DS in some cases
silent kite
sour basin
#

ok, i have set everything in automatic mode, and now get this error : "Payment details were collected through Stripe Elements using automatic payment methods and cannot be confirmed with a Payment Intent configured with payment_method_types."

silent kite
#

huh, can you set the element option I shared above?

sour basin
#

i try

silent kite
#

that's from your code

        // elements instance used to create the Express Checkout Element
        elements,
        // clientSecret from the created PaymentIntent
        clientSecret: res.data.paymentIntentClientSecret,
        confirmParams: {
          return_url: 'https://example.com/order/123/complete',
        },
      });
#

look at the return_url

sour basin
#

ow !!! can I tell stripe to not redirect anywhere ?

silent kite