#shivani M

1 messages · Page 1 of 1 (latest)

stiff lynxBOT
left zephyr
#

hi! can you share
the PaymentIntent ID pi_xxxx
the exact code you used
screenshots/a video of what the flow looks like in the app when this happens

agile moss
#

getting error like
{"code": "Failed", "declineCode": null, "localizedMessage": "secret format does not match expected client secret formatting.", "message": "secret format does not match expected client secret formatting.", "stripeErrorCode": null, "type": null}

left zephyr
#

then I'd start by adding a log line to log the value of the clientSecret that you pass to the function to see what it looks like.

agile moss
#

I have added just like this
(FYI, I have hide my personal details)

left zephyr
#

seti_xxx_yyy is not a PaymentIntent client secret, it's a SetupIntent

#

so if you're doing a payment, you need to create a PaymentIntent on the backend server and use its secret(which will look like pi_xxx_secret_yyy) in this code instead.

stiff lynxBOT
agile moss
#

so how we can save setup payment for future with 'initPaymentSheet'

vital panther
#

Hi! I'm taking over this thread.

#

You want to save the card without making a charge, or you want to save the card and make a charge at the same time?

agile moss
#

Yes I want to save card for future and charge payment too with ACH

vital panther
agile moss
#

yes I did it and getting. blank object as response

{}

vital panther
#

Can you clarify exactly what you did? And please share relevant object ID or request ID.

agile moss
#

`const {error, paymentOption} = await initPaymentSheet({
merchantDisplayName: 'XYZZZ',
customerId: 'cus_',
paymentIntentClientSecret: 'pi_
secret******',

  customerEphemeralKeySecret: 'ek_test_************',
  // Set `allowsDelayedPaymentMethods` to true if your business can handle payment
  //methods that complete payment after a delay, like SEPA Debit and Sofort.
  // allowsDelayedPaymentMethods: true,
  defaultBillingDetails: {
    name: 'XYZZZ',
  },
}).then(result => {
  console.log('paymentOption', JSON.stringify(result));
});`
void briar
#

Hey! Taking over for my colleague. Let me catch up.

agile moss
#

I want to do instant payment with verify account using ACH with saving details for future payments using react native

#

How can we do instant payment with verificaion using ACH

void briar
#

That support Instant verification but not instant payment

#

As my colleague mentioned, you need to pass setup_future_usage: 'off_session'