PaymentCaptures.php 401 B

1234567891011121314151617181920212223
  1. <?php
  2. namespace Srmklive\PayPal\Tests\Mocks\Requests;
  3. use GuzzleHttp\Utils;
  4. trait PaymentCaptures
  5. {
  6. /**
  7. * @return array
  8. */
  9. private function mockRefundCapturedPaymentParams(): array
  10. {
  11. return Utils::jsonDecode('{
  12. "amount": {
  13. "value": "10.99",
  14. "currency_code": "USD"
  15. },
  16. "invoice_id": "INVOICE-123",
  17. "note_to_payer": "Defective product"
  18. }', true);
  19. }
  20. }