#nahoor_code
1 messages ยท Page 1 of 1 (latest)
๐ 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/1359520889527599397
๐ 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.
- nahoor_api, 20 hours ago, 52 messages
- nahoor_api, 1 day ago, 25 messages
Hi there ๐ are you also passing the googlePay hash when initializing the Payment Sheet?
https://docs.stripe.com/payments/accept-a-payment?platform=react-native#add-google-pay
If so, are you testing on a device that is logged into a Google Account, has set up Google Pay, and has at least one card added to that wallet?
const initializePaymentSheet = async () => {
const { error } = await initPaymentSheet({
// customFlow: true,
merchantDisplayName: 'Intercargo Logistics',
intentConfiguration: {
mode: {
amount: (bookingPrices.totalPrice * 100),
currencyCode: 'gbp',
},
confirmHandler: confirmHandler,
},
defaultBillingDetails: {},
returnURL: 'imyapp://CustomPayment://stripe-redirect',
googlePay: {
merchantCountryCode: 'GB',
testEnv: true, // use test environment
},
applePay: {
merchantCountryCode: 'GB',
},
});
if (error) {
console.error('โ PaymentSheet init error:', error);
} else {
console.log('โ
PaymentSheet initialized successfully!');
}
@lime temple looks like you're in the wrong place, this thread is for someone else's question.
- If you have your own thread please chat there.
- If you have a question or a followup to a closed thread use one of the buttons in https://discord.com/channels/841573134531821608/842637025524842496 to get help (we don't reopen closed threads).
Note that posting inappropriate messages in other people's threads is against the rules. No worries if this was just an honest mistake, but anyone who violates the rules multiple times will be removed from this server.
now it is set