react-native-google-pay icon indicating copy to clipboard operation
react-native-google-pay copied to clipboard

Cannot read property 'setEnvironment' of undefined

Open CezarCobuz opened this issue 5 years ago • 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 avatar Jan 17 '20 13:01 CezarCobuz

@CezarCobuz Have you solved your problem?

sorokin0andrey avatar Feb 11 '20 10:02 sorokin0andrey

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

andrew528i avatar Feb 29 '20 19:02 andrew528i

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.

JollyGolf avatar Apr 14 '20 10:04 JollyGolf