#kyomen_reactnative-googlepay
1 messages ¡ Page 1 of 1 (latest)
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.
- kyomen_api, 6 days ago, 32 messages
đ 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/1235635035252719720
đ Have more to share? Add more details, code, screenshots, videos, etc. below.
Hello! I'm happy to help but I'm going to need detailed information and a clear and exact summary all in one clear message so that I can help you debug this further
ok, I'm going to get the infos
So, we were expecting the google approve the integration of the payment, and when we finally get it, the "pay with google" button vanished
the button was showing like expected before, but when we tried to finish the payment we were getting this error Message:
Okay I'm sorry but I will need a lot more information. Exact code, exact RN version, what you see on your UI, whether it works in Test mode, etc.
"the merchant account was having problems on accepting the payment"
I'm sorry that's a picture of your phone in a language I don't speak. Please try and give me actionable information as a developer if possible so I can help you
the code:
{walletSupported && (
<PlatformPayButton
type={PlatformPay.ButtonType.Pay}
disabled={loading}
onPress={async () => {
const userId = await pay(true)
}}
pay function:
async function pay(isWalletPay?: boolean) {
if (plan && personalData && addressData) {
const res = await subscribe({
planId: plan.id,
})
if (res.success) {
const { clientSecret, pago, userId } = res.data
if (pago) {
await reloadUser(userId)
return userId
}
if (isWalletPay) {
const recurringSummaryItem: any = {
label: `Plano ${plan.type} do Guia Umami`,
amount: plan.totalPrice.toFixed(2),
paymentType: 'Recurring',
intervalCount: 1,
intervalUnit: plan.type === 'anual' ? 'year' : 'month',
startDate: new Date().getTime() / 1000,
// Payment ends in one year
endDate: new Date().getTime() / 1000 + 60 * 60 * 24 * 365,
}
const appURL = Linking.createURL('accountSubscription', {
isTripleSlashed: true,
})
const url = `${SHARE_BASE_URL}?appURL=${appURL}`
const { error: erroPagamento } = await confirmPlatformPayPayment(
clientSecret,
{
applePay: {
merchantCountryCode: 'BR',
currencyCode: 'BRL',
cartItems: [recurringSummaryItem],
request: {
type: 'Recurring' as any,
description: `Plano ${plan.type} do Guia Umami`,
billing: recurringSummaryItem,
managementUrl: url,
},
},
googlePay: {
testEnv: false,
merchantName: 'Umami LTDA.',
merchantCountryCode: 'BR',
currencyCode: 'BRL',
},
}
)
const { error } = await initPaymentSheet({
merchantDisplayName: 'Umami LTDA.',
paymentIntentClientSecret: clientSecret,
}
}
the translate is in the message: "the merchant account was having problems on accepting the payment"
the walletSupport is set with this:
useEffect(() => {
;(async function () {
setWalletSupported(
await isPlatformPaySupported({ googlePay: { testEnv: false } })
)
})()
}, [])
Okay so what happens in test mode? How are you testing, on which exact device, sorry still missing a lot of info
i have the same behavior in the test mode, the button does not show,
even with a registered card in google wallet.
the solution thaw we found was switch to production mode, and the button shows up, but we could not finish the payment process
we thought that to fix the error, we just needed the google approval, but now the button does not show in any mode
Gotcha, I'm sorry I paired with my team but no one is online who knows how to debug this further unfortunately. Can I ask you to please contact our support team at https://support.stripe.com/contact/email and clearly write down all your found and that you spoke to us on Discord and then we can help over email