/home/kueuepay/www/vendor/srmklive/paypal/tests/Mocks/Requests/ReferencedPayouts.php
<?php

namespace Srmklive\PayPal\Tests\Mocks\Requests;

use GuzzleHttp\Utils;

trait ReferencedPayouts
{
    /**
     * @return array
     */
    private function mockCreateReferencedBatchPayoutParams(): array
    {
        return Utils::jsonDecode('{
  "referenced_payouts": [
    {
      "reference_id": "2KP03934U4415543C",
      "reference_type": "TRANSACTION_ID"
    },
    {
      "reference_id": "8TA4226978212399L",
      "reference_type": "TRANSACTION_ID"
    }
  ]
}', true);
    }

    /**
     * @return array
     */
    private function mockCreateReferencedBatchPayoutItemParams(): array
    {
        return Utils::jsonDecode('{
  "reference_id": "CAPTURETXNID",
  "reference_type": "TRANSACTION_ID"
}', true);
    }
}
Response Code

Response Codes

Kueue Pay API responses include standard HTTP status codes to indicate the success or failure of a request. Successful responses will have a status code of 200 OK, while various error conditions will be represented by different status codes along with error messages in the response body.