Open m-nathani opened 3 years ago
one of the solution could be to use this if condition too:
if (paymentRequest?.canMakePayment) {
paymentRequest
.canMakePayment()
....
}
However, still the return should be consistent.
Bug report
Describe the bug
i am using the below stripe version and integrated payment request button, however got a error
canMakePayment
returun null or false .. as the promise is showing as undefined.To Reproduce
Steps to reproduce the behavior, please provide code snippets or a repository:
Expected behavior
It should return promise in every case to make the return consistent, and if its not supported then it should throw an error that could be catched in promise
System information
Additional context
this is the code i am using to check the
canMakePayment
on thepayementRequest
Got this exception on my client using sentry..