#viljam_best-practices

1 messages Β· Page 1 of 1 (latest)

golden hingeBOT
#

πŸ‘‹ Welcome to your new thread!

⏲️ We'll be here soon! Typically we respond in a few minutes, but sometimes we might take a bit longer if the server is busy or if you have a particularly tricky question.

⏱️ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can always 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/1422249576349302836

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

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.

turbid pine
#

in the test env it just stays in this screen

sick pivot
#

Hi πŸ‘‹

So you are saying you never get redirected from this page back to your app?

turbid pine
#

Hi, yep thats correct

#

and the issue is only in the mobilePay

sick pivot
#

Is your app a mobile app (iOS and/or Android) or a web app running on a mobile browser?

turbid pine
#

ios and android

#

react native

#

expo

#

im testing now on ios

sick pivot
#

Are you using a direct integration that we document here?

turbid pine
#

no we are using initpaymentsheet with returnURL: "order-it://stripe-redirect",

sick pivot
#

Okay so you are using our Payment Sheet element to trigger Mobile Pay. Can you share the code you use to initialize the payment sheet?

turbid pine
#

sure

#

const { error } = await initPaymentSheet({
setupIntentClientSecret: clientSecretIntent,
customerId: customerId,
merchantDisplayName: ${RegisteredName} (via Order It),
customerEphemeralKeySecret: ephemeralKey,
paymentIntentClientSecret: clientSecret,
style: "alwaysDark",
merchantCountryCode: "FI",
applePay: {
merchantCountryCode: "FI",
},
googlePay: {
merchantCountryCode: "FI",
currencyCode: "EUR",
label: RegisteredName,
amount: totalAmount,
buttonType: "Pay",
},
appearance: {
shapes: {
borderRadius: 10,
},
font: {
scale: 1.15,
},
colors: {
primary: "#FFBF00",
background: "#0A0A0A",
text: "#333333",
},
},
defaultBillingDetails: {
address: {
country: "FI",
},
},

      returnURL: "order-it://stripe-redirect",
    });
sick pivot
#

Hmmm... okay I'm trying to repro

sick pivot
#

I cannot get a React Native application to launch on my machine

#

I think I will have to ask you to write in to us so we can do some deeper digging

#

Are you okay with creating a support case that will be routed directly to my team?

golden hingeBOT
turbid pine
#

yeah sure

golden hingeBOT
#

Hello @turbid pine, we have sent you a direct message, please check it at https://discord.com/channels/@me/1422273976662491238

  • πŸ”—The message has instructions on how to open a direct support case with our Developer Support team, in order to help you more effectively.
sick pivot
#

Could you please submit and let me know so I can make sure we get it handled quickly

turbid pine
#

yeah done