react-native-payments icon indicating copy to clipboard operation
react-native-payments copied to clipboard

IOS - supportedGateways is an empty array after linked with addons

Open SimoneLSK opened this issue 7 years ago • 5 comments

Hello Devs,

Xcode: Version 9.4.1 (9F2000)

  1. installed react-native-payments-addon-stripe
  2. installed react-native-payments-cli
  3. run carthage update in /node_modules/react-native-payments-addon-stripe/, for download the Stripe.framework
  4. run yarn react-native-payments-cli -- link stripe

turns out "stripe" is not a supported gateway. screen shot 2018-09-12 at 9 58 24 pm screen shot 2018-09-12 at 10 01 24 pm

May I know if there is any other way that I can install manually, or solution to fix this? Thanks in advance

SimoneLSK avatar Sep 12 '18 14:09 SimoneLSK

For me it is working.. I think that you need to do the step 3 at the end. So in my just do the procedure again but this time do the carthage update as the final step.

saeedtkh avatar Sep 13 '18 14:09 saeedtkh

I have the same issue. I tried your suggestion too @saeedtkh but it doesnt work tho.

I can see lots of react-native-payments in my app native code but somehow the array is still empty. I hardcoded supportedGateways to ['stripe'] but the payment can never get successful. I updated valid merchantID already...

Wondering if any other engineers face the same issue currently...

markledev avatar Oct 04 '18 03:10 markledev

@markledev how did you add the library to your project for iOS? I did yarn add react-native-payments and react-native link react-native-payments but everytime I try to access any method from the library, the app crashes

blolo avatar Oct 09 '18 17:10 blolo

I have the same issue...

stevenschmatz avatar Dec 10 '19 04:12 stevenschmatz

Is there any solution available about that?

I tried with React Native 0.59 and 0.61 but no success. (via ExpoKit)

oarsoy avatar Dec 28 '19 03:12 oarsoy