SkillAgentSearch skills...

RNPay

A sample app showing how to use the Tipsi-Stripe library for handling payments in React Native with a Lumen PHP backend.

Install / Use

/learn @anchetaWern/RNPay
About this skill

Quality Score

0/100

Supported Platforms

Universal

README

RNPay

A sample app showing how to use the Tipsi-Stripe library for handling payments in React Native with a Lumen PHP backend.

You can read the tutorial at: Accepting payments in React Native

Prerequisites

Getting Started

  1. Clone the repo:
git clone https://github.com/anchetaWern/RNPay.git
  1. Install the dependencies:
cd RNPay
yarn install
react-native eject
react-native link
  1. Create a new Lumen project:
composer create-project --prefer-dist laravel/lumen RNPayBackend
  1. Copy the files from the server/RNPayBackend directory to the newly generated RNPayBackend folder.

  2. Create the rnpay database with a MySQL database manager of your choice.

  3. Update the .env file with the database config and Stripe secret key:

DB_USERNAME=YOUR_DB_USER
DB_PASSWORD=YOUR_DB_PASSWORD
STRIPE_SECRET_KEY=YOUR_STRIPE_SECRET_KEY
  1. Run the migration:
php artisan migrate
  1. Expose the server with ngrok:
ngrok http -host-header=rewrite rnpay.test:80
  1. Go inside the RNPay directory and update the .env file with your Stripe publishable key:
STRIPE_PUBLISHABLE_KEY=YOUR_STRIPE_PUBLISHABLE_KEY
  1. Update the src/helpers/pay.js file with your ngrok URL:
const endpoint = 'https://YOUR_NGROK_URL/charge';
  1. Run the app:
react-native run-android

Built With

Donation

If this project helped you reduce time to develop, please consider buying me a cup of coffee :)

<a href="https://www.buymeacoffee.com/wernancheta" target="_blank"><img src="https://www.buymeacoffee.com/assets/img/custom_images/orange_img.png" alt="Buy Me A Coffee" style="height: 41px !important;width: 174px !important;box-shadow: 0px 3px 2px 0px rgba(190, 190, 190, 0.5) !important;-webkit-box-shadow: 0px 3px 2px 0px rgba(190, 190, 190, 0.5) !important;" ></a>

View on GitHub
GitHub Stars7
CategoryDevelopment
Updated1y ago
Forks7

Languages

PHP

Security Score

55/100

Audited on Apr 1, 2025

No findings