#parK-dev

1 messages ยท Page 1 of 1 (latest)

dry acornBOT
obtuse crow
#

If these two parameters are set and still don't work, sharing the sample Payment Intent ID (pi_xxx) will be helpful for me to investigate

#

Also can I remove the need for postal code
Yes! You may set fields.billingDetails.address.postalCode to never

broken token
#

pi_3MWVuRDdMfkWbtGZ2gR0M0hE

yes I have to settings enabled. They're the ones we use for native

#

made this one: pi_3MWWfhDdMfkWbtGZ14qZZIR2
Removing the postal code worked.
Still shows no payment method unfortunately.

obtuse crow
#

Looking into it now

#

In pi_3MWWfhDdMfkWbtGZ14qZZIR2, its payment intent is still in requires_payment_method status, i.e. payment method details is not collected yet. Only when payment method details is collected and confirmed in Payment Element, then the payment method will be attached to the Payment Intent: https://dashboard.stripe.com/test/payments/pi_3MWWfhDdMfkWbtGZ14qZZIR2

broken token
#

Yeah, so that's why I'm wondering why when I enter the payment details and then I submit the form, it doesnt get saved

obtuse crow
broken token
#

No native doesnt require it

#

Or at least it seems to be handle by the default payment sheet

#

not on our server

#

native sheet has its own button, which I'm sure probably does all these steps before it resolves and then our server takes over.

#
    await initializePaymentSheet();
    const { error } = await presentPaymentSheet();
    if (error) {
      if (error?.code !== "Canceled") {
        // TODO: translate
        notify({
          message: error.message,
        });
      }
      return;
    }
    setLoading(true);
    try {
      const res = await checkout();
      if (res) {
        navigation.navigate("chat", { id: orderId });
      }
    } finally {
      setLoading(false);
    }

on native presentPaymentSheet is a promise that resolves and I imagine it takes care of that?
So should I manually confirm it on web?

obtuse crow
broken token
#

stripe.confirmPayment doesn't do the capturing of the funds and all right?

#

only sets the payment_method/customer and whatnot?

obtuse crow
#

If the payment intent is to set to manual capture, confirmPayment won't capture the funds

#

confirmPayment is to confirm the payment method that the customer intends to pay with

broken token
#

Alright, I'll try this and let you know.

obtuse crow
#

Okie! Feel free to reach out to us again if you have further question ๐Ÿ˜„

broken token
obtuse crow
#

That's great! It looks good to me ๐Ÿ˜„

broken token
#

can I disable the return_url and let my own router handle rerouting later (after my other checks and server-calls that come after confirmPayment)