#shahzaib-haider_best-practices

1 messages · Page 1 of 1 (latest)

rough novaBOT
#

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

📝 Have more to share? Add more details, code, screenshots, videos, etc. below.

tiny crown
#

hi there!

sonic bluff
#

So, my question is how to handle it if someone use a wallet as I am setting up recurring payment. User should be promted a message that he can't use wallet for recurring payment. But when can I get the info that user is using a wallet in the process flow?
Can I get info after terminal.collectPaymentMethod ? that which payment method user connected?

rough novaBOT
haughty mist
#

Can I get info after terminal.collectPaymentMethod ?
yes that's correct

sonic bluff
#

But can I somehow check if generated_card can be generated successfully, can this be done before I process payment (As If I do this without checking and if generated_card is null then I have no option but to refund the payment)

haughty mist
#

since this is a known requirement ahead of time... you should be just able to tell your customers that they can't use Apple Pay and Google Pay

sonic bluff
#

But what if user still do it, how can I hanlde that

haughty mist
#

actually you can collect the PM before creating or processing the payment

#

so that's not an issue

sonic bluff
#

But will generated_card will be present in that payment method object?

haughty mist
#

it would be null if it's a wallet

#

otherwise yes it should exist

#

if you're using allow_redisplay