whapplepayreactsdk v1.0.2
WhapplepayReactSDK
Overview
WhapplepayReactSDK is a library that allows you to seamlessly integrate WhapplePay's secure payment gateway into your React Native applications. By using this SDK, you can enhance user experience, process payments securely, and optimize checkout flows with WhapplePay's reliable tools tailored specifically for React Native environments.
Features
- Securely process payments using WhapplePay.
- Seamlessly integrate WhapplePay's payment gateway into React Native apps.
- Enhance user trust and satisfaction with reliable payment processing.
- Optimize checkout flows for a smooth user experience.
Installation
To install WPReactSDK, use npm or yarn:
npm install whapplepayreactsdk
or
yarn add whapplepayreactsdk
Usage
- Import WhapplepayReactSDK into your React Native project:
import WhapplePaySDK from 'whapplepayreactsdk';
- Initialize WhapplePay with your API keys:
const whapplePay = new WhapplePaySDK({
apiKey: 'YOUR_API_KEY_HERE',
secretKey: 'YOUR_SECRET_KEY_HERE',
});
- Use WhapplePay methods to process payments:
whapplePay.processPayment({
amount: 500, // Amount to be charged
currency: 'USD', // Currency code
// Other payment details as needed
}).then((response) => {
console.log(response);
}).catch((error) => {
console.error(error);
});
For detailed API documentation and examples, refer to the API Reference.
API Reference
For detailed information about WhapplepayReactSDK's API methods and usage examples, please refer to the API Reference.
Contributing
Contributions to WhapplepayReactSDK are welcome! To contribute, please follow these steps:
- Fork the repository.
- Create a new branch (
git checkout -b feature/your-branch-name
). - Make your changes.
- Commit your changes (
git commit -am 'Add new feature'
). - Push to the branch (
git push origin feature/your-branch-name
). - Create a new Pull Request.
License
This project is licensed under the MIT License - see the LICENSE file for details.
Support
For any questions or issues regarding WhapplepayReactSDK, please open an issue on GitHub or contact our support team at support@whapplepay.com.