#pasindu
1 messages · Page 1 of 1 (latest)
hi. how can I identify what the available paymentRequestButton without display it?
These are the available payment methods for display in Payment Request Button: https://stripe.com/docs/stripe-js/elements/payment-request-button
Mainly Apple Pay, Google Pay or Link
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?\
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,
}
thank you very much
No problem! Happy to help 😄