Merchant-level onboarding

DocsCurrent

Last updated: Jan 7th, 7:02am

Merchant-level vaulting supports a payer using a saved payment method with one merchant. For example, a payer saves their payment method at a merchant's website. The merchant's ecommerce is hosted by a third party. The third party saves payment methods for the merchant.

Take the following steps to onboard merchants for merchant-level vaulting.

1

Onboard merchants

  • Onboard merchants with the Partner Referrals API
  • Verify merchant eligibility by tracking merchant onboarding status

Include the VAULT and BILLING_AGREEMENT values in the Partner Referral API call:

    1"features": [
    2 "PAYMENT",
    3 "REFUND",
    4 "PARTNER_FEE",
    5 "VAULT",
    6 "BILLING_AGREEMENT"
    7 ]

    To process credit cards, debit cards, and PayPal, pass the products as PPCP and ADVANCED_VAULTING. To process PayPal only, pass the products as EXPRESS_CHECKOUTand ADVANCED_VAULTING.

      1"products": [
      2 "PPCP",
      3 "ADVANCED_VAULTING"
      4 ]

      Add capabilities with the value of PAYPAL_WALLET_VAULTING_ADVANCED:

        1"products": [
        2 "PPCP",
        3 "ADVANCED_VAULTING"
        4 ],
        5 "capabilities": [
        6 "PAYPAL_WALLET_VAULTING_ADVANCED"
        7 ]
        1. Sample request
        2. Sample response
        1curl -L -X POST https://api-m.sandbox.paypal.com/v2/customer/partner-referrals \
        2 -H 'Content-Type: application/json' \
        3 -H 'Authorization: Bearer ACCESS-TOKEN' \
        4 -H 'PayPal-Partner-Attribution-Id: BN-CODE' \
        5 -H 'PayPal-Auth-Assertion: AUTH-ASSERTION-JWT' \
        6 -d '{
        7 "email": "email@example.com",
        8 "individual_owners": [
        9 {
        10 "names": [
        11 {
        12 "given_name": "Firstname Lastname",
        13 "full_name": "Firstname Lastname",
        14 "type": "LEGAL",
        15 "surname": "Vtwo"
        16 }
        17 ],
        18 "citizenship": "US",
        19 "addresses": [
        20 {
        21 "address_line_1": "Brent Park",
        22 "address_line_2": "",
        23 "admin_area_2": "San Jose",
        24 "admin_area_1": "CA",
        25 "postal_code": "95054",
        26 "country_code": "US",
        27 "type": "HOME"
        28 }
        29 ],
        30 "phones": [
        31 {
        32 "country_code": "1",
        33 "national_number": "4089383848",
        34 "type": "MOBILE"
        35 }
        36 ],
        37 "birth_details": {
        38 "date_of_birth": "1990-01-01"
        39 },
        40 "type": "PRIMARY"
        41 }
        42 ],
        43 "business_entity": {
        44 "business_type": {
        45 "type": "INDIVIDUAL",
        46 "subtype": "ASSO_TYPE_INCORPORATED"
        47 },
        48 "business_industry": {
        49 "category": "1004",
        50 "sub_category": "2025"
        51 },
        52 "business_incorporation": {
        53 "incorporation_country_code": "US",
        54 "incorporation_date": "1986-12-29"
        55 },
        56 "names": [
        57 {
        58 "business_name": "XYZ Enterprise",
        59 "type": "LEGAL_NAME"
        60 }
        61 ],
        62 "emails": [
        63 {
        64 "type": "CUSTOMER_SERVICE",
        65 "email": "customerservice@example.com"
        66 }
        67 ],
        68 "website": "https://mystore.testenterprises.com",
        69 "addresses": [
        70 {
        71 "address_line_1": "Brent Park",
        72 "address_line_2": "",
        73 "admin_area_2": "San Jose",
        74 "admin_area_1": "CA",
        75 "postal_code": "95054",
        76 "country_code": "US",
        77 "type": "WORK"
        78 }
        79 ],
        80 "phones": [
        81 {
        82 "country_code": "1",
        83 "national_number": "4083938484",
        84 "type": "CUSTOMER_SERVICE"
        85 }
        86 ],
        87 "annual_sales_volume_range": {
        88 "minimum_amount": {
        89 "currency_code": "USD",
        90 "value": "10000"
        91 },
        92 "maximum_amount": {
        93 "currency_code": "USD",
        94 "value": "50000"
        95 }
        96 },
        97 "average_monthly_volume_range": {
        98 "minimum_amount": {
        99 "currency_code": "USD",
        100 "value": "1000"
        101 },
        102 "maximum_amount": {
        103 "currency_code": "USD",
        104 "value": "50000"
        105 }
        106 },
        107 "purpose_code": "P0104"
        108 },
        109 "preferred_language_code": "en-US",
        110 "tracking_id": "tes_12345",
        111 "partner_config_override": {
        112 "partner_logo_url": "https://example.com/logo.png",
        113 "action_renewal_url": "http://partner-example.com/renew-prefill-url",
        114 "return_url": "http://example.com",
        115 "show_add_credit_card": true
        116 },
        117 "operations": [
        118 {
        119 "operation": "API_INTEGRATION",
        120 "api_integration_preference": {
        121 "rest_api_integration": {
        122 "integration_method": "PAYPAL",
        123 "integration_type": "THIRD_PARTY",
        124 "third_party_details": {
        125 "features": [
        126 "PAYMENT",
        127 "REFUND",
        128 "PARTNER_FEE",
        129 "DELAY_FUNDS_DISBURSEMENT",
        130 "VAULT",
        131 "BILLING_AGREEMENT"
        132 ]
        133 }
        134 }
        135 }
        136 }
        137 ],
        138 "products": [
        139 "PPCP",
        140 "ADVANCED_VAULTING"
        141 ],
        142 "capabilities": [
        143 "PAYPAL_WALLET_VAULTING_ADVANCED"
        144 ],
        145 "legal_consents": [
        146 {
        147 "type": "SHARE_DATA_CONSENT",
        148 "granted": true
        149 }
        150 ]
        151 }'
          1<div dir="ltr" style="text-align: left;" trbidi="on">
          2 <script>
          3 (function(d, s, id) {
          4 var js, ref = d.getElementsByTagName(s)[0];
          5 if (!d.getElementById(id)) {
          6 js = d.createElement(s);
          7 js.id = id;
          8 js.async = true;
          9 js.src = "https://www.paypal.com/webapps/merchantboarding/js/lib/lightbox/partner.js";
          10 ref.parentNode.insertBefore(js, ref);
          11 }
          12 }(document, "script", "paypal-js"));
          13 </script>
          14 <a data-paypal-button="true" href="<Action-URL>&displayMode=minibrowser" target="PPFrame">Sign up for PayPal</a>
          15 </div>
          3

          Redirect merchants

          After your merchant completes the signup flow, they are redirected to the return URL specified in the partner_config_override/return_url field of the Partner Referrals API. If no return URL is set, the merchant is redirected to the PayPal dashboard for their account.

          During the redirect, PayPal loads the return URL in your merchant's browser and attaches the following query parameters:

          Parameter Description
          merchantId The unique ID of the merchant in your system that you specified in the Partner Referrals API call in the tracking_id field.
          merchantIdInPayPal The merchant ID of your merchant's PayPal account.
          permissionsGranted A Boolean indicating whether the merchant granted you the permissions you specified in the Partner Referrals API call.
          accountStatus BUSINESS_ACCOUNT is sent if a business account was created. If a business account was not created, nothing is sent.
          consentStatus A Boolean indicating whether the merchant consented to share their credentials with you.
          productIntentId This value is set to addipmt.
          isEmailConfirmed A Boolean indicating whether the merchant has confirmed their email address with PayPal.
          returnMessage A message containing next steps for the merchant to take with PayPal. PayPal only sends this message for business accounts that do not have a confirmed email address. PayPal does not send this message for any account where product name is PPCP.
          riskStatus The product provisioning status. PayPal only sends this for accounts where product name is PPCP. Possible values are SUBSCRIBED, SUBSCRIBED_WITH_LIMIT, DECLINED, MANUAL_REVIEW, and NEED_MORE_DATA.

          Sample redirect URL

          Use the following code to redirect the merchant back to your site:

            1<pre><code class="xml">https://<var><RETURN-URL></var>?merchantId=<var><TRACKING-ID></var>&merchantIdInPayPal=<var><MERCHANT-ID-IN-PAYPAL></var>&permissionsGranted=true&accountStatus=BUSINESS_ACCOUNT&consentStatus=true&productIntentId=addipmt&isEmailConfirmed=true&returnMessage=To%20start%20accepting%20payments,%20please%20log%20in%20to%20PayPal%20and%20finish%20signing%20up.</code></pre>
            4

            Track merchant onboarding status

            Merchant onboarding is complete when the merchant has:

            • Created a PayPal account.
            • Granted you permission for the features you set.
            • Confirms the email address of the account.

            To track your merchant's status in meeting these requirements, make a show merchant status call.

            Modify the code

            Modify the code in the sample request as follows:

            • Change the ACCESS_TOKEN to your access token.
            • Change the BN-CODE to your PayPal attribution ID to receive revenue attribution. To find your BN code, see Code and Credential Reference.
            • Change the AUTH-ASSERTION-JWT to your PayPal auth assertion token.
            • The PARTNER-ID is the merchant ID of your PayPal account. To find the merchant ID of your PayPal account, log in to your PayPal account at paypal.com, select the Settings icon, select Business information, and look for PayPal Merchant ID. To find the merchant ID of your sandbox account, follow the same instructions on sandbox.paypal.com.
            • MERCHANT-ID is the merchant ID of the merchant's PayPal account. To get your merchant's merchant ID, you can read the merchantIdInPayPal query parameter attached to the return URL when the merchant is redirected back to your site. You can also query it directly by the tracking ID you specified in the Partner Referrals call by calling GET /v1/customer/partners/partner_id/merchant-integrations?tracking_id={TRACKING-ID}.
            • Change products to the value you want for your merchants. The products array value determines which type of payment your merchant can accept. EXPRESS_CHECKOUT includes debit and credit cards, the PayPal button, and PayPal Credit. PPCP includes the PayPal button and advanced credit and debit cards.
            1. Sample request
            2. Sample response
            1curl -L -X GET https://api-m.sandbox.paypal.com/v1/customer/partners/{PARTNER-ID}/merchant-integrations/{MERCHANT-ID} \
            2 -H 'Content-Type: application/json' \
            3 -H 'Authorization: Basic ACCESS-TOKEN' \
            4 -H 'PayPal-Partner-Attribution-Id: BN-CODE' \
            5 -H 'PayPal-Auth-Assertion: AUTH-ASSERTION-JWT'

            Next steps

            After you've onboarded your merchants, choose the integration method that best suits your needs:

            Feature JavaScript SDK Orders API Payment Method Tokens API
            Credit and debit cards Supported Supported Supported
            PayPal Supported Supported Supported
            Venmo Supported Not supported Not supported
            Save during purchase Supported Supported Not supported
            Save for purchase later Supported Not supported Supported