#TESLA_17

1 messages · Page 1 of 1 (latest)

agile kindleBOT
rough panther
#

Hi there, can you share with me the relevant code?

charred parcel
#

it roughly looks like this

     const { error } = await initPaymentSheet({
        merchantDisplayName: 'Nivoda',
        customerId: stripeConfig.customer_stripe_id,
        paymentIntentClientSecret: paymentIntent,
        // Set `allowsDelayedPaymentMethods` to true if your business can handle payment
        // methods that complete payment after a delay, like SEPA Debit and Sofort.
        allowsDelayedPaymentMethods: true,
        appearance: CustomStripeAppearance(theme),
      });

and i am opening the sheet like this

        const { error } = await presentPaymentSheet();

        if (error) {
          if (error.code === PaymentSheetError.Canceled) // handle cancel;
          if (error.code === PaymentSheetError.Failed) {
            // ERROR SHOWS HERE FOR SEPA/BACS
            console.log('Failed ! stripe', error.message);
          }
        } else {
          // Alert.alert('Success', 'Your order is confirmed!');
        }

the card / us_bank_account payments works fine, but SEPA/BACS doesn't, and we setup_future_usage: off_session set on the creation of the intent

rough panther
#

So you mean you have this problem when using setup_future_usage in payment intent?

charred parcel
#

i believe this the reason for SEPA payments after doing research, but i can't found anything about BACS

rough panther
charred parcel
#

is there an alternative solution to accept BACS payment on mobile, can i build my own UI ?

rough panther
#

Yes you can create a UI by yourself.