NativeScript / payments

In-App Purchase, Subscriptions, Google Pay, Apple Pay for NativeScript
Apache License 2.0
33 stars 10 forks source link

demo: Google Pay and Apple pay crashing #11

Open felixkrautschuk opened 2 years ago

felixkrautschuk commented 2 years ago

I am trying to run the demo app of this repo and when trying to go to the Google Pay / Apple pay section of the app, it is crashing with the following messages:

Android - Google Pay:

System.err: An uncaught Exception occurred on "main" thread. System.err: Calling js method onClick failed System.err: Error: Building UI from XML. @plugin-demos/google-pay.xml:14:11 System.err: > Module 'GooglePayBtn' not found for element 'GooglePayBtn'. System.err: > instanceType is not a constructor

iOS - Apple Pay:

Fatal JavaScript exception - application has been terminated. NativeScript encountered a fatal error: Uncaught Error: Building UI from XML. @plugin-demos/apple-pay.xml:11:11

Module 'ApplePayBtn' not found for element 'ApplePayBtn'. instanceType is not a constructor

I am on NativeScript CLI 8.1.4

bradmartin commented 2 years ago

@triniwiz - do you see what's missing causing the plain XML to crash with not finding the namespace?