sorokin0andrey/react-native-google-pay

Cannot read property 'setEnvironment' of undefined

CezarCobuz opened this issue · 3 comments

Getting the error:

TypeError: Cannot read property 'setEnvironment' of undefined

on the following line:

// Set the environment before the payment request
  GooglePay.setEnvironment(GooglePay.ENVIRONMENT_TEST);

How can I solve this? Has anyone else bumped into this problem?

@CezarCobuz Have you solved your problem?

Had the same promblem. watchman watch-del-all and re-renning react-native run-android solved it for me

I had the same problem. Just 'clean and rebuild'. Or check if library properly linked and try linking manually.

Close the issue, if it helped you.