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

AbortError .show()

Open ajw-m opened this issue 5 years ago • 11 comments

Hey, I started getting an AbortError every time I trigger paymentRequest.show() after upgrading React Native.

let showRequest = await paymentRequest.show(); and it awaits it until it says AbortError

No .abort() is being triggered except the one in the native code for some reason?

ajw-m avatar Aug 11 '20 01:08 ajw-m

Experiencing similar issue was working fine until upgrading to IOS 13.7: Output of react-native info

System:
    OS: macOS 10.15.6
    CPU: (12) x64 Intel(R) Core(TM) i7-8750H CPU @ 2.20GHz
    Memory: 2.14 GB / 16.00 GB
    Shell: 5.8 - /usr/local/bin/zsh
  Binaries:
    Node: 14.10.1 - ~/.nvm/versions/node/v14.10.1/bin/node
    Yarn: 1.22.5 - /usr/local/bin/yarn
    npm: 6.14.8 - ~/.nvm/versions/node/v14.10.1/bin/npm
    Watchman: 4.9.0 - /usr/local/bin/watchman
  SDKs:
    iOS SDK:
      Platforms: iOS 13.7, DriverKit 19.0, macOS 10.15, tvOS 13.4, watchOS 6.2
    Android SDK:
      API Levels: 23, 26, 27, 28, 29
      Build Tools: 26.0.1, 27.0.3, 28.0.3, 29.0.2, 29.0.3
      System Images: android-29 | Google APIs Intel x86 Atom
  IDEs:
    Android Studio: 4.0 AI-193.6911.18.40.6626763
    Xcode: 11.7/11E801a - /usr/bin/xcodebuild
  npmPackages:
    react: 16.9.0 => 16.9.0
    react-native: 0.61.5 => 0.61.5

allengreer-latero avatar Sep 15 '20 16:09 allengreer-latero

The reason why I had this error is because I was using the latest iOS version in an emulator. Try using version 12.* or deploy the build on an actual device.

ajw-m avatar Sep 15 '20 22:09 ajw-m

@ajw-m I am getting the same issue in real device 13.5 where it works in a simulator

ramisalem avatar Sep 17 '20 11:09 ramisalem

I made a fork from exodus people https://github.com/ExodusMovement/react-native-payments

Made some modifications to make it easier to install using npm here https://github.com/ajw-m/react-native-payments

So just add this line in a test package.json app to see if this works for you, then npm install

"@exodus/react-native-payments": "git+https://github.com/ajw-m/react-native-payments.git"

ajw-m avatar Sep 17 '20 19:09 ajw-m

A potential fix that exodus did is this

https://github.com/ExodusMovement/react-native-payments/commit/b11425c34a4720fd22158af97e1e67fcba14ebe7

ajw-m avatar Sep 17 '20 23:09 ajw-m

"@exodus/react-native-payments": "git+https://github.com/ajw-m/react-native-payments.git"

Thanks! It helps

imwexpex avatar Sep 21 '20 14:09 imwexpex

I have error when I close the widget (click "Cancel" button, or click outside of widget). What could be the problem? Simulator Screen Shot - iPhone 11 Pro - 2020-09-25 at 01 44 04

ghost avatar Sep 25 '20 08:09 ghost

@powerlimit could be due to a linking problem

ajw-m avatar Sep 25 '20 20:09 ajw-m

hello @ajw-m getting same error in real device iOS : 14.2 any solution?

dhairyasenjaliya avatar Nov 20 '20 07:11 dhairyasenjaliya

@dhairyasenjaliya building on real device shouldn't be through react native, you should build and run a release version on the device to get the real behaviour. I would suggest writing up your code and then releasing to Testflight, there you can test. If the abort error continues, provide your code snippets, maybe I can help further

ajw-m avatar Nov 23 '20 20:11 ajw-m

hello @ajw-m I already solved that issue was regarding Merchant's ID was incorrect all though it wont clearly through the message so it's quite difficult to debug the issue

dhairyasenjaliya avatar Nov 25 '20 04:11 dhairyasenjaliya