lms/vendor/srmklive/paypal/tests/Mocks/Requests/ReferencedPayouts.php
2025-12-15 12:26:23 +01:00

39 lines
734 B
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);
}
}