Subversion-Projekte lars-tiefland.laravel_shop

Revision

Details | Letzte Änderung | Log anzeigen | RSS feed

Revision Autor Zeilennr. Zeile
676 lars 1
<?php
2
 
3
namespace Srmklive\PayPal\Tests\Mocks\Requests;
4
 
5
use GuzzleHttp\Utils;
6
 
7
trait PaymentAuthorizations
8
{
9
    /**
10
     * @return array
11
     */
12
    private function mockCaptureAuthorizedPaymentParams(): array
13
    {
14
        return Utils::jsonDecode('{
15
  "amount": {
16
    "value": "10.99",
17
    "currency_code": "USD"
18
  },
19
  "invoice_id": "INVOICE-123",
20
  "note_to_payer": "Payment is due",
21
  "final_capture": true
22
}', true);
23
    }
24
 
25
    /**
26
     * @return array
27
     */
28
    private function mockReAuthorizeAuthorizedPaymentParams(): array
29
    {
30
        return Utils::jsonDecode('{
31
  "amount": {
32
    "value": "10.99",
33
    "currency_code": "USD"
34
  }
35
}', true);
36
    }
37
}