Paypal integration with salesforce
Amit Chaudhary

Amit Chaudhary

Amit Chaudhary is Salesforce Application & System Architect and working on Salesforce Platform since 2010. He is Salesforce MVP since 2017 and have 17 Salesforce Certificates. He is a active blogger and founder of Apex Hours.

PayPal integration with Salesforce | Paypal API

Join us to learn about PayPal integration with Salesforce. In this session we will show how you can easily connect the PayPal Payflow Pro payment gateway to Salesforce, in order to charge credit cards directly from Salesforce, either via embedded buttons.


  1. Purpose of Integration
  2. What is API?
  3. What is WebService?
  4. Live Demo
    1. Create Paypal Account
    2. Create Sandbox in paypal
    3. Paypal Connected App
    4. Paypal API
      1. Create Payment using Paypal Method
      2. Create Payment using Credit Card Method
      3. Create Order using api
      4. Create Invoice
      5. Send Invoice
      6. Create Product
      7. Create Product Subscription
  5. Object Structure of the Objects involved in Demo
  6. Walkthrough of how to setup the Integration and test API using Postman tool.
  7. Q & A

Purpose Of Integration

  1. Purpose of integration is to integrate the PayPal payment gateway with Salesforce.
  2. Integration is useful to make the payment from e-com community or sites.

What is API

  1. An API in an Application Programming Interface
  2. It provides the information for how to communicate with software components
  3. Operations (What to Call) GET, POST, PUT, PATCH, DELETE
  4. Inputs (What to send with a Call)
  5. Outputs(What you get back from a Call)
  6. Request-Response format with object structure
  7. By using API you can change what is happening behind the scene without modifying how people call it

What is WebService

A web service is a method of communication that allows two software systems to exchange data over the internet.

  1. REST
  2. SOAP

5 Pillars of Integration

  1. Read 3rd Party System API
  2. Identify the oAuth of the API
  3. Test Authentication using any API Testing Tool like POSTMAN, Advanced REST Client
  4. Test API Callouts for different endpoints using API Testing Tools
  5. Start writing code

Create a PayPal Account

Create a Personal or Business PayPal account
1. To create business PayPal account visit
2. To create Personal/Individual Account visit

Create a Sandbox Account

Create an Application in PayPal


Get Access Token

Method :- POST

  • URL :-
  • Content Type :- application/x-www-form-urlencoded
  • Body => grant_type=client_credentials
  • Header
    • Grant_type : client_credentials
    • Authorization : Basic Base64Encoded String of Clien_Key:Client_Secret

Here is recording of session.

Speaker         : Amit Singh
Date               : Saturday, 13 July 2019 10:00 AM EST ( 7:30 PM IST)

Here is the Link to Request Body that we used in our demo

Please subscribe our YouTube channel to get notification for video upload. Check our “Session in 2019” page for all upcoming and old sessions of 2019.

Sharing is Caring so Share with your friends

Share this article

1 Comment

  • Can you kindly assist with setting up the Salesforce Objects side?

    Thanking you in advance

Leave a reply

Keep in Touch

Subscribe for Email

Enter your email address to subscribe to this blog and receive notifications of new posts by email.

Join 3,229 other subscribers


Our Supporter


Apex Hours

Apex Hours is one stop platform to learn Salesforce skills and technology

Join our Newsletter and get tips and tricks how to explore the salesforce for free!