Skip to main content

PayPal Payment

Estimated reading: 2 minutes

Welcome to PayPal! In this guide, you will learn how to sign up for a PayPal account and obtain API keys necessary for integrating PayPal into your website or application.

info

Before proceeding further checkout Paypal Supported Currencies

Sign Up for PayPal

If you have an existing PayPal business account, Log in to the account.

Otherwise, Sign up and create a new business account.

  1. Choose Account - Choose your account type
    Important

    You’ll need a PayPal Business account to do the following -

    • Go live with integrations.
    • Test integrations outside the US.
  2. Provide Your Details Fill out the registration form with your email address, preferred password, and other required information. Make sure to provide accurate details. and completed the Sign Up Process.

Obtain API Keys

info

There are two "modes" of operation for your PayPal account:

  1. Live Mode: Real money, real transactions, real effects.
  2. Sandbox Mode: Testing environment with simulated transactions.
info

PayPal integrations use a client ID and client secret.

  1. Client ID : Identifies an app. You only need a client ID to get a PayPal payment button and standard credit and debit card fields.

  2. Client secret : Authenticates a client ID.Keep this secret safe.

    PayPal developer dashboard - Apps & Credentials

Follow these steps to obtain your API keys:

Get Client ID and Client Secret

Follow the steps below :

  1. Open your PayPal Business Dashboard

    PayPal developer dashboard - Apps & Credentials

  2. Click on Testing Tools and Select SandBox Account

    PayPal Business Account - PayPal Payment Mode

    • Create Sandbox Account

    PayPal Business Account - Create Sandbox Account

  3. Click on Apps & Credentials

    PayPal Business Account - Create app

  4. Click on Create App:

    PayPal Business Account - Create App

  5. Provide App Details:

    • In the form that just came up, input the application details
    • Choose your sandbox account
    • click on Create App.

    PayPal Business Account - Create App

  6. Copy Credentials:

    • Now the Credentials are generated. Copy the Client ID and Client Secret.

    PayPal Business Account - App Credentials

Add Generated Keys To Admin Panel

Now you've successfully generated keys please navigate to Admin Panel and follow the steps mentioned below

  • Navigate to Settings → Payment Method.

  • Enable the switch for PayPal Payment.

  • Paste Client Secret under the Secret Key field and Client Id under the Client Id fields.

  • Submit the changes.

    Pawlly - Paypal Payment Setting

tip

Congratulations! Your PayPal configuration is done.

Test PayPal Payment

Test cards can be used for simulating different scenarios during your development and testing phases. Remember, these cards are for testing purposes only and should not be used for real transactions.

You can create your own Test Card using link below -

Remove PayPal Payment

Remove PayPal Payment
  • We are recommended you to follow only second Step if you don’t know about dependency and code

    If you want to remove PayPal payment gateway option then follow below Steps:

    Step 1- Go to pubspec.yaml and remove the lines mentioned below from the file

    flutter_paypal_checkout: git: url: https://github.com/Raj-GMITS/flutter_paypal_checkout.git ref: main

NOTE

If you have remove dependency from pubspec.yaml then hit the pub get command. now, remove the code related to flutter_paystack.