#facu_docs

1 messages ยท Page 1 of 1 (latest)

green moonBOT
topaz veldtBOT
#

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.

green moonBOT
#

๐Ÿ‘‹ Welcome to your new thread!

โฒ๏ธ We'll be here soon! We typically respond in a few minutes, but in some cases we might need a bit more time (e.g., server's busy, you've got a complex question, etc.).

โฑ๏ธ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can start a new thread if you have another question.

๐Ÿ”— This thread will always be available, even after it's closed. You can find it again using Discord's search, or you can save this link: https://discord.com/channels/841573134531821608/1250893727220629606

๐Ÿ“ Have more to share? Add details, code, screenshots, videos, etc. below.

acoustic venture
#

But I need to have automatic validation of the ACH
Can you say more? What are you expecting to happen?

iron crow
#

I need to be able to get the setupIntent.paymentMethod?.id

from a PaymentSheet, is this possible?

acoustic venture
#

To clarify, you're finding confirmSetupIntent succeeds, and you get the setupIntent result you expect?

#

By default that will include the payment method ID on that attribute I expect

#

what is the shape of the data you get back?

iron crow
#

No, sorry, I'll explain again.
This is my current code
const {error, setupIntent} = await confirmSetupIntent(createIntent.stripeClientSecret, {
paymentMethodType: 'USBankAccount',
paymentMethodData: {
accountNumber: data.accountNumber,
billingDetails: {
name: data.fullName,
},
routingNumber: data.routingNumber,
},
});

But I need to change it to PaymentSheet, do I have a way to obtain the same setupIntent that the confirmSetupIntent returns through a PaymentSheet?
Or in another way to be able to obtain the paymentMethod.id of the payment method created through the PaymentSheet?

acoustic venture
#

Still using a setup intent, though?

iron crow
#

Yes, my new code with the initPaymentSheet is

const {paymentOption} = await initPaymentSheet({
merchantDisplayName: "Example, Inc.",
customerId: profile.stripeCustomerId,
setupIntentClientSecret: createIntent.stripeClientSecret,
});

But I can't get the paymentMethod.id

acoustic venture
#

Are you calling presentPaymentSheet too the way you're using this?

iron crow
#

Yes, I call it from a button to open the payment sheet

crisp oracle
#

Hi there ๐Ÿ‘‹ jumping in as my teammate needs to step away soon.

crisp oracle
iron crow
#

That is the problem, how do I recover the payment method to obtain its ID?

crisp oracle
iron crow
#

Ok great, is there a way to obtain it directly when creating the payment method from the payment sheet?

#

like when using confirmSetupIntent

crisp oracle
iron crow
#

Exactly, ok, I'm going to have to add a call to my api to recover the intent and find the ID of the payment method

#

Thanks!!