Pages

Tuesday 7 January 2014

PayPal MASS pay API Integration

PayPal MASS PAY: Getting Started

Downlodable Mass Pay Integration demo Project

Overview

PayPal MASS PAY API lets allow you to pay multiple clients / users at a single click.
The sender can pay at most 250 users at a time.

Key Concepts

To sending the amount using MASS PAY API you need to provide the followings:

1. e-mail addresses of your payees.
2. Each and Every payees amount.
3. Transaction Currency.

Note You need to get API details (APIUsername, APIPassword and APISignature) from your paypal account and set those to the application.

Note When setting up a MassPay call, you can specify a customized subject line for the e-mail that PayPal distributes. You can also add a note
for PayPal to include in the body of e-mail. Included in the e-mail is a link that provides an easy way for payees to log into their PayPal
accounts. Once logged in, payees can can manage the payments they've received.

Making Your First Call

The following example calls MASS Payment API in the Sandbox to make a MASS payout.
  1. Obtain the endpoint for the service and environment you are addressing.
    https://api-3t.sandbox.paypal.com/nvp
    
    This is the endpoint for making calls in name/value pair style in the Sandbox. For the SOAP endpoint, see API endpoints.
  2. Provide the authentication. For the sample DoDirectPayment call below, these are set via parameters you pass to the call.
    // Sandbox API credentials for the API Caller account
    USER : // user id
    PWD : // password
    SIGNATURE : // signature
    VERSION : // the release version of the API
    
  3. Provide parameters needed by the specific call being made .
    METHOD : MassPay
    RECEIVERTYPE : EmailAddress(other options are Mobile No or Paypal User ID)
    CURRENCYCODE : USD (any three digit corrency code)
    
  4. Now provide each and every payees email id and payable amount.
    L_EMAIL0=payee0@example.com
    L_AMT0=15.95 
    L_EMAIL1=payee1@example.com
    L_AMT1=21.50
    
    You are now ready to make a call..
  5. Evaluate the response.

Check Normal Paypal Integration.
Check Adaptive Payment Integration.
Check PayPal Pro Integration.

By,
Akash Roy,
CEO, JPR Infoserve,
http://jprinfoserve.com

No comments:

Post a Comment