Sign In
or
Sign Up
Home
How it works
Applications
Home
How it works
Applications
Sign in
Sign up
Create
Pipedrive
deal for new
2Checkout
sales
Copy Integration
JavaScript
Copy Integration Recipe
Step 1.
Enter your 2CHECKOUT API credentials
About 2Checkout Credentials:
Log into your 2Checkout account
On the top right hand click
Settings
, then click the
Manage user access
button (or
click here
).
Click
Add user
to generate your
Username
&
Password
fields.
Go to
Settings > Edit System Settings
(or
click here
)
,
then look for your merchant code which is your seller id.
More about
2Checkout Integrations
Step 2.
Enter your PIPEDRIVE API credentials
About Pipedrive Credentials:
Log into your Pipedrive account
For your api token click on your avatar (top-right corner)
Select
Settings
then
Other > API
Your
companydomain
is the first part of your pipedrive account url (e.g.
companydomain
.pipedrive.com)
More about
Pipedrive Integrations
Copy Integration
Copy Integration Programmatically
//install package
npm i apigum-sdk
//usage const {Integration, Apps, AppHelper} = require('apigum-sdk'); const _2checkoutCredentials = {}; const pipedriveCredentials {}; //set up credentials _2checkoutCredentials[Apps._2Checkout.Keys.Username] = "<< your 2checkout username >>"; _2checkoutCredentials[Apps._2Checkout.Keys.Password] = "<< your 2checkout password >>"; _2checkoutCredentials[Apps._2Checkout.Keys.Seller_Id] = "<< your 2checkout seller_id >>"; //set up credentials pipedriveCredentials[Apps.Pipedrive.Keys.Companydomain] = "<< your pipedrive companydomain >>"; pipedriveCredentials[Apps.Pipedrive.Keys.Api_Token] = "<< your pipedrive api_token >>"; //obtain api key at https://account.apigum.com/api const apiKey = "<< Your API key >>"; const integration = new Integration(apiKey); //create integration const _2checkout = AppHelper.configure(Apps._2Checkout.AppId, this._2checkoutCredentials); const pipedrive = AppHelper.configure(Apps.Pipedrive.AppId, this.pipedriveCredentials); integration.create(_2checkout, pipedrive, Apps._2Checkout.Integrations.CREATE_PIPEDRIVE_DEAL_FOR_NEW_2CHECKOUT_SALES) .then(id => { // returns id of created integration }) .catch(err => console.log(err))