#pasindu

1 messages · Page 1 of 1 (latest)

zealous sailBOT
spare lagoon
#

hi. how can I identify what the available paymentRequestButton without display it?

spark apex
#

Mainly Apple Pay, Google Pay or Link

spare lagoon
#

no no. i want to identify available PRB without display it.

#

i mean if i availble gpay at this moment how can i identify it without display gpay button?\

spark apex
#

If you're referring to the wallet that is ready to be paid, you can check the response from paymentRequest.canMakePayment(): https://stripe.com/docs/js/payment_request/can_make_payment

The response will return whether each wallet is ready to pay. For example:

{
  applePay: true,
  googlePay: false,
  link: false,
}
spare lagoon
#

thank you very much

spark apex
#

No problem! Happy to help 😄