edge-rn-sdk
v0.1.2
Published
n/a
Maintainers
Readme
edge
n/a
Installation
npm i edge-rn-sdkUsage
// ...
import { startPayment_ } from 'edge';
const handleTransactionSuccess = (redirectUrl: string) => {
console.log("Redirect URL inside handleTransactionSuccess is:", redirectUrl); // Log the URL before passing it
const paymentOptionsData = {
options: {
redirectUrl: redirectUrl,
},
};
// Call startPayment_ and pass the handleTransaction callback
startPayment_(paymentOptionsData, (response: any) => {
console.log("Payment Response:", response);
handleTransaction(response.status, response.code, response.message);
});
};
Contributing
See the contributing guide to learn how to contribute to the repository and the development workflow.
License
MIT
Made with create-react-native-library
