cancel
Showing results for 
Search instead for 
Did you mean: 

React native Accept.js

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

3topia_agency
Member
2 REPLIES 2

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?

Aaron
All Star

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!