#suyog_code

1 messages ¡ Page 1 of 1 (latest)

harsh pastureBOT
#

👋 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.

wintry pine
#

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

timber pier
#

Hi! Can you share a specific request ID that is failing or an example PaymentIntent ID that you are unable to confirm?

wintry pine
#

Sharing, please give me a minute

#

pi_3Rw2UqExYCOPxGAz09MPGkJB

#

@timber pier

timber pier
#

Thanks for the example, looking it over now

wintry pine
#

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?

timber pier
#

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?

wintry pine
#

checking the issue

#

please give me few mins

timber pier
#

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

wintry pine
#

Thanks, Let us give a try with this

#

I will need some time to come back to you. Thank you so much on your help, it helped us identifying the problem statement