[BUG] Payment Request Button throws error in console
yuriityrpych0611 opened this issue · 5 comments
I tried to call that paymentRequest.canMakePayment() but it shows that it is not avaiable
Hey @yuriityrpych0611, can you provide a small snippet of code on what are you doing. That would help me to replicate faster. Also, please indicate what version of Angular, ngx-stripe and @stripe/stripe-js you're using
Thanks in advance
Hey, I am using
"@angular/common": "~15.2.0",
"@stripe/stripe-js": "1.54.1",
"ngx-stripe": "^15.7.1".
In order to replicate that issue enough just to launch that code snippet from here.
Just to add this with default options
<ngx-stripe-payment-request-button
[paymentOptions]="paymentRequestOptions"
(paymentMethod)="onPaymentMethod($event)"
(shippingaddresschange)="onShippingAddressChange($event)"
(notavailable)="onNotAvailable()"
></ngx-stripe-payment-request-button>
Hey @yuriityrpych0611, thanks for reporting this issue. I've release a new version 15.7.2
that should address that problem. Please let me know if that works for you, so I can publish the other Angular versions too
Thanks
Hey, yes it resolved that error. Thank you