The Best React Native App for Magento2 eCommerce W
  • Hubby React Native Template for Magento2
  • Introduction
  • Compatibility Requirements
  • Version Control
  • Getting Started
  • Code Structure
  • Development Envirnoment
  • App Customization
  • Push Notification
  • Setup PayPal Gateway
  • Build App for IOS
  • Build App for Android
  • Troubleshooting
Powered by GitBook
On this page

Setup PayPal Gateway

PreviousPush NotificationNextBuild App for IOS

Last updated 6 years ago

How to integrate with PayPal ?

Hubay app is integrated with PayPal gateway. To integrate your app with the payment gateway you need to have an account with Paypal.com. To apply for an account with PayPal

There are two parameters to be configured in src -> app -> common -> Config.js

1. Environment:

PayPal.SANDBOX

2. ClientId:

AQMnlPwVOrcnwowKy_Xh6DCb7sLqNxumYcsG0YiBs0IMMOLD_1I-Ve7bs729H4LQSmW723BOl-qg40ba

You need to replace the above parameters in Config.js file as follows:

PayPal:{
    Environment: PayPal.SANDBOX, 
    ClientId: 'AQMnlPwVOrcnwowKy_Xh6DCb7sLqNxumYcsG0YiBs0IMMOLD_1I-Ve7bs729H4LQSmW723BOl-qg40ba'
  }

If you are running the PayPal test mode, then you need to use PayPal.SANDBOX otherwise you should use the production environment PayPal.PRODUCTION

Also you have to generate a client id. To generate for SANDBOX client id .

click here
click here