Hi,
Is it possible to use Accept.js in React native applications?
Can I call the Accept.js script from React native code somehow?
Sincerely,
Luka Vranješ
3topia agency
10-30-2017 05:10 AM
Hi @3topia_agency,
Accept.js is designed to run in a browser. It's doing some checking of where it's loaded from for security purposes, and that checking may not work in any sort of headless JavaScript environment. If React can emulate a browser well enough to appear to be a browser, then it would probably work. However, I personally wouldn't have high hopes.
We do have mobile SDKs on GitHub that enable you to retrieve a payment nonce to use in a subsequent transaction. Is it possible to wrap something around those and call that from within your app?
10-31-2017 02:35 PM
Yeah I see that Authorize.net provides Accept.js sdks/samples for swift and java but React Native apps needs to be ejected to inject the native codes. It would be great if we have React Native package for Accept.js. Thank you!
04-23-2018 07:18 AM