fuc/vendor/srmklive/paypal/tests/Mocks/Requests/PaymentCaptures.php
2025-02-23 13:30:57 +08:00

24 lines
401 B
PHP
Executable File

<?php
namespace Srmklive\PayPal\Tests\Mocks\Requests;
use GuzzleHttp\Utils;
trait PaymentCaptures
{
/**
* @return array
*/
private function mockRefundCapturedPaymentParams(): array
{
return Utils::jsonDecode('{
"amount": {
"value": "10.99",
"currency_code": "USD"
},
"invoice_id": "INVOICE-123",
"note_to_payer": "Defective product"
}', true);
}
}