Platform Partner Fees - Sandbox

Cerealkilo
Contributor
Contributor

Framework : Laravel 10
Language : PHP 8.0
Package : https://srmklive.github.io/laravel-paypal/docs.html
Subject : 2 Questions about Platform Fees and sandbox/live mode

 

Hello everyone,

 

I have come across a Stack Overflow post indicating that the Platform Fees functionality is not operational when creating an order in the sandbox environment. You can find the post here: https://stackoverflow.com/questions/77156393/paypal-platform-fee-not-received-to-partner-account

 

According to the post, PayPal platform fees are not deposited into any PayPal account in the sandbox environment.
In the live environment, platform fees are deposited into the platform's bank account, not a PayPal account, once per day.

 

Could someone please confirm if this information is accurate?

Additionally, I am curious about how I can test my Platform App under these conditions. I want to ensure that I have constructed the correct request and that the fees of 15% for each item in my Shopping Cart will be deducted in Live mode.

Currently, only my sandbox-simulated sellers are receiving the money into their respective accounts, and no fees are being deducted. They are receiving the full 100%.

 

Here is the var_dump of the response/purchase_items in PHP arrays:

 

array:3 [ // app\Http\Controllers\PaymentController.php:36
  "id" => "38K72115KM863521H"
  "status" => "CREATED"
  "links" => array:4 [
    0 => array:3 [
      "href" => "https://api.sandbox.paypal.com/v2/checkout/orders/38K72115KM863521H"
      "rel" => "self"
      "method" => "GET"
    ]
    1 => array:3 [
      "href" => "https://www.sandbox.paypal.com/checkoutnow?token=38K72115KM863521H"
      "rel" => "approve"
      "method" => "GET"
    ]
    2 => array:3 [
      "href" => "https://api.sandbox.paypal.com/v2/checkout/orders/38K72115KM863521H"
      "rel" => "update"
      "method" => "PATCH"
    ]
    3 => array:3 [
      "href" => "https://api.sandbox.paypal.com/v2/checkout/orders/38K72115KM863521H/capture"
      "rel" => "capture"
      "method" => "POST"
    ]
  ]]
array:3 [ // app\Http\Controllers\PaymentController.php:36
  "intent" => "CAPTURE"
  "purchase_units" => array:2 [
    0 => array:5 [
      "reference_id" => "651168867a0d5"
      "items" => array:1 [
        0 => array:4 [
          "name" => "The best item ever"
          "description" => "The best item ever"
          "quantity" => 1
          "unit_amount" => array:2 [
            "currency_code" => "EUR"
            "value" => "10.00"
          ]
        ]
      ]
      "amount" => array:3 [
        "currency_code" => "EUR"
        "value" => "10.00"
        "breakdown" => array:1 [
          "item_total" => array:2 [
            "currency_code" => "EUR"
            "value" => "10.00"
          ]
        ]
      ]
      "payee" => array:1 [
        "merchant_id" => "XXXXXXXXXXXX"
      ]
      "payment_instruction" => array:2 [
        "platform_fees" => array:1 [
          0 => array:1 [
            "amount" => array:2 [
              "currency_code" => "EUR"
              "value" => "1.50"
            ]
          ]
        ]
        "disbursement_mode" => "INSTANT"
      ]
    ]
    1 => array:5 [
      "reference_id" => "651168867ac1b"
      "items" => array:1 [
        0 => array:4 [
          "name" => "The best item ever"
          "description" => "The best item ever"
          "quantity" => 1
          "unit_amount" => array:2 [
            "currency_code" => "EUR"
            "value" => "12.00"
          ]
        ]
      ]
      "amount" => array:3 [
        "currency_code" => "EUR"
        "value" => "12.00"
        "breakdown" => array:1 [
          "item_total" => array:2 [
            "currency_code" => "EUR"
            "value" => "12.00"
          ]
        ]
      ]
      "payee" => array:1 [
        "merchant_id" => "XXXXXXXXXXXX"
      ]
      "payment_instruction" => array:2 [
        "platform_fees" => array:1 [
          0 => array:1 [
            "amount" => array:2 [
              "currency_code" => "EUR"
              "value" => "1.80"
            ]
          ]
        ]
        "disbursement_mode" => "INSTANT"
      ]
    ]
  ]
  "application_context" => array:4 [
    "user_action" => "PAY_NOW"
    "brand_name" => "XXXXXXXXXX"
    "return_url" => "https://XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"
    "cancel_url" => "https://XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"
  ]]

 

Also, do we require authorization to access the Platform Live mode? Does the website need to be fully prepared, and what are the exact requirements? I've heard of some individuals filling out a form that received no response for months.

Thank you in advance for your assistance.

Login to Me Too
0 REPLIES 0

Haven't Found your Answer?

It happens. Hit the "Login to Ask the community" button to create a question for the PayPal community.