How to Integrate PayPal In Your App

  • Reading time:15 mins read
You are currently viewing How to Integrate PayPal In Your App

Introduction

PayPal is the most used online wallet in the world. It can be used as a payment gateway in your store or channel where users can submit payments easily. This article will show you how to integrate PayPal into your app.

This feature is the best to use if you want to build an E-Commerce App.

 

Installation

The feature configuration is found in the App Settings page.

Once you click on App Settings, scroll down until you reach the payment methods section.

Turn PayPal’s toggle on to enable it.

Once you configure this feature in your app, it will be automatically integrated as the main payment gateway if you did not configure any other payment gateway; however, if you did, it will give the user an option to choose which payment gateway to proceed with as follows:

   

Main Features

The PayPal feature is a payment gateway; once you integrate PayPal with your app, users can use it to pay for items in your store, subscriptions on your channel or any in-app purchases using a secure internet connection.

Users have to have a PayPal account in order to be able to complete the online transaction using the PayPal feature.

 

Configuration

1. Once you enable the feature, click the arrow to open the settings.

The first tab includes some information that you need to fill in to setup the feature. We will show you how in the following steps:

The second tab contains a link that will take you to PayPal’s pricing options.

Now going back to the first tab, the first option is ‘Environment’, where you can choose ‘Sandbox’ or ‘Production’.

  • Choose ‘Sandbox’ if you are testing your payments and want to make sure everything is running smoothly.
  • Choose ‘Production’ if you are ready to go live.

 

Create PayPal Account

For the ‘Sandbox’ option, you will need to create a PayPal Business Account.

Note that before you sign up to a new PayPal business account, make sure that the country you select is the country where your business is located by clicking on the country’s flag and selecting your country.

Go to the following link and select Business Account, then follow the steps.

1

 

Create Braintree Account

1. Go to Braintree.

Braintree is considered to be PayPal’s SDK.

SDK stands for software development kit, and it is a set of software tools that is required to have certain features function properly, so you would need an Android SDK toolkit to build an Android app, an iOS SDK to build an iOS app, and a Braintree SDK to be able to integrate PayPal with your app.

Note that when you create your Braintree account, make sure that the currency you select is the same currency you selected in your PayPal account.

2

2. After you complete the sign-up process by opening the support email that Braintree sent you, you will be prompted with this screen. Scroll down and you will find the ‘Merchant ID’, the ‘Public Key’, and the ‘Private Key’.

3

3. Copy the keys and paste them in their perspective spaces in the app builder.

4. Next, click the gear icon on the home page and click ‘Account Settings’.

4

5. Click ‘Link Sandbox’.

5

You will be prompted with the following screen:

6

 

Create Sandbox Account: How to Get Your PayPal Credentials [Client ID, Client Secret]? 

Note that these steps are also for making test payments later.

1. From your PayPal home menu right at the top, select ‘Developer’.

7

2. Make sure that your dashboard is in sandbox mode.

8

3. Go to ‘Testing Tools’  and click ‘Sandbox Accounts’.

9

4. Click ‘Create Account’. 

10

5. Choose ‘Business’ and select region, then click ‘Create’.

11

After making your sandbox account:

6. Firstly, go to ‘Apps & Credentials’.

12

7. Click ‘Create App’.

13

8. Then fill in the required App details:

  • App name.
  • App Type: Merchant or Platform.
  • App type [Merchant – Platform]
  • The sandbox account you created

⇒ Choose ‘Merchant’ if your app is self-owned app.

⇒ Choose ‘Platform’ if your app is integrated with other enterprises (Useful for E-commerce apps, Store module).

Then click ‘Create App’

14

9. A screen will pop up with your Client ID and Client Secret as well.

15

10. Copy both of them, go back to your Braintree control panel and paste them. Then, click ‘Link PayPal Sandbox’.

16

 

Create a New Sandbox Merchant Account

1. Now go back, click the gear icon again and select ‘Business’.

17

2. Click ‘+ New Sandbox Merchant Account’.

18

3. Create a new merchant account ID and set it as the default ID. Make sure that the currency you select is the same as the PayPal account’s currency.

Then, click ‘Save’.

19

4. Next, copy the Merchant Account ID you created and paste it in the app builder, and click ‘Save’.

   

Recommended Modules

  • Mobile Store: It allows you to create a full e-store where you can display your products or services.

  • Channels: Channels allow you to post messages, images, videos, and files. With the option of targeting and segmentation, you can also charge your users for a monthly subscription to your channels.

  • Booking: A module that allows users to create schedules and attend events from your app.