#ludongming_code

1 messages ¡ Page 1 of 1 (latest)

lyric vaporBOT
#

👋 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/1315550977130102886

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

fair wyvern
#

React Native is creating a free 7-day trial subscription feature. I don't know how to configure this parameter for Apple Pay and Google Pay
Which parameter are you referring to?

native fiber
#

The second parameter of confirmPlatformPayment

#

My scenario is used to collect payment methods, so how should I transfer the parameters of Apple Pay and Google Pay that I call up through ConfirmPlatformPayment

fair wyvern
#

Which integration you're following with "confirmPlatformPayment"? Can you share the doc link?

native fiber
fair wyvern
#

This is what I see from the doc link you shared. Are you referring to applePay in initPaymentSheet()?

native fiber
#

yes

fair wyvern
#

Which specific field inside applePay hash you would like to check?

native fiber
#

const handlePayment = async () => {
const { error } = await initPaymentSheet({
paymentIntentClientSecret,
merchantDisplayName: "YIGOLI",
applePay: {
merchantCountryCode: 'US',
},
googlePay: {
merchantCountryCode: 'US',
}
});

const { error: presentError } = await presentPaymentSheet();

};

#

In the payment pop-up window pulled up in the above code, you can choose between Apple Pay and bank card payment, right?

fair wyvern
#

For the available payment method, it is determined by the client secret and whether the device supports the wallet payment such as Apple Pay or Google Pay

native fiber
#

What if the device fully meets Apple Pay requirements? So users can choose Apple Pay, right

fair wyvern
#

Yes, that's right!

native fiber
#

Okay, thank you very much