#suyog_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/1405562922264170497
đ Have more to share? Add more details, code, screenshots, videos, etc. below.
const {paymentMethod, error} = await confirmPlatformPayPayment(
clientSecret,
{
googlePay: {
testEnv: true,
merchantName: ${donationOptions?.fullData?.name},
merchantCountryCode: 'MY', // Malaysia
currencyCode: 'MYR',
billingAddressConfig: {
format: PlatformPay.BillingAddressFormat.Min,
isPhoneNumberRequired: false,
isRequired: false,
},
},
},
);
This was complete method
Hi! Can you share a specific request ID that is failing or an example PaymentIntent ID that you are unable to confirm?
Thanks for the example, looking it over now
It looks like this payment was confirmed successfully: https://dashboard.stripe.com/test/logs/req_SkhhZAGMoVsE1c
Can you explain a bit more about what is the unexpected behavior?
Sign in to the Stripe Dashboard to manage business payments and operations in your account. Manage payments and refunds, respond to disputes and more.
so do you mean to say payment is captured properly?
confirmPlatformPayPayment resulted in undefined
also we didnt received payment method in response. Do we get payment method in response to this call?
Yes, this payment is successful as you can see in the request log. Can you show me the exact code where you are getting an undefined?
Looking over your code, you have the line
const {paymentMethod, error} = await confirmPlatformPayPayment(
The confirmPlatformPayPayment doesn't have paymentMethod in the result. You should replace that line with
const { error, paymentIntent } = await confirmPlatformPayPayment(
(like this code from our example app: https://github.com/stripe/stripe-react-native/blob/v0.50.3/example/src/screens/GooglePayScreen.tsx#L97)
You should get back the paymentIntent properly in your client, which will have the paymentMethod on it