@guiddini/react-native-epay
v0.0.3
Published
React Native SDK for integrating Epay Guiddini, an online payment gateway in Algeria. Provides an easy-to-use WebView-based checkout experience with secure transaction handling.
Downloads
3
Readme
@guiddini/react-native-epay
A React Native package for integrating Guiddini's ePay service into your mobile applications.
Installation
npm install @guiddini/react-native-epayUsage
Wrapping Your App
Before using the package, wrap your app with GPayProvider in your root component:
import { GPayProvider } from "@guiddini/react-native-epay";
const App = () => {
return (
<GPayProvider secret_key="YOUR_SECRET_KEY" app_key="YOUR_APP_KEY">
{/* Your App Components */}
</GPayProvider>
);
};
export default App;Initiating a Payment
import { useGPay } from "@guiddini/react-native-epay";
const MyComponent = () => {
const { initiatePayment } = useGPay();
const handlePayment = async () => {
try {
const response = await initiatePayment(100);
console.log("Payment Response:", response);
} catch (error) {
console.error("Payment Error:", error);
}
};
return <button onClick={handlePayment}>Pay Now</button>;
};API Keys
To use the service, you need API keys: secret_key and app_key, which can be requested from guiddini.dz.
License
Guiddini ePay License
Copyright (c) 2025 Guiddini
This software is proprietary and requires a valid subscription and API keys (secret_key and app_key) from Guiddini (https://guiddini.dz) to function. Unauthorized distribution, modification, or use without a valid account is strictly prohibited.
You are granted a non-exclusive, non-transferable, limited license to use this software only as per Guiddini's terms of service.
For licensing inquiries, please contact [email protected].
