sorokin0andrey / react-native-apay

React Native bridge for Apple Pay
55 stars 30 forks source link

null is not an object #1

Closed VarmeegoKateChiu closed 5 years ago

VarmeegoKateChiu commented 5 years ago

When calling the ApplePay.canMakePayments, error: null is not an object. is occurred.

How can I fix the issue?

sorokin0andrey commented 5 years ago

Hi @katekate902! Please give me more info about your rn version, real device or simulator, ios version and error screenshot. I will try to help you

VarmeegoKateChiu commented 5 years ago

RN Version: 0.59.10 Real Device: iphone 6S plus Simulator: iphone Xs iOS Version: iOS 12.0 Screen Capture: Capture

VarmeegoKateChiu commented 5 years ago

This is my first time using react native for developing the ApplePay I have already set up the merchant ID but seems not work. Am I missing something that the module need? Or should I create a sendbox in apple developer for the applepay?

VarmeegoKateChiu commented 5 years ago

I have found the problem. =) $ react-native link react-native-apay > this code is not linked the xcode project into my project although It is shown "The project is already linked" I need to manually link the project by myself. Capture