richnologies / ngx-stripe

Angular 6+ wrapper for StripeJS
MIT License
219 stars 77 forks source link

TypeError: Cannot read properties of undefined (reading 'includes') #168

Closed alegroSandermann closed 2 years ago

alegroSandermann commented 2 years ago

Describe the bug When I enter localhost:4200 I get this error in the console: TypeError: Cannot read properties of undefined (reading 'includes') and just the "Payment Request Button" text gets rendered but no google pay button

To Reproduce Steps to reproduce the behavior:

  1. Built this example: https://docs.ngx-stripe.dev/core-concepts/payment-request-button and added my stripe sandbox key

Expected behavior That the google pay buttion appears

Desktop (please complete the following information):

alegroSandermann commented 2 years ago

Ok, problem was that there was no payment method assigned on my pc or that the one I have is not accepted. I tested again on the smartphone and there, the gpay button appears.