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\Responses;
4
 
5
use GuzzleHttp\Utils;
6
 
7
trait PaymentRefunds
8
{
9
    /**
10
     * @return array
11
     */
12
    private function mockGetRefundDetailsResponse(): array
13
    {
14
        return Utils::jsonDecode('{
15
  "id": "1JU08902781691411",
16
  "amount": {
17
    "value": "10.99",
18
    "currency_code": "USD"
19
  },
20
  "status": "COMPLETED",
21
  "note_to_payer": "Defective product",
22
  "seller_payable_breakdown": {
23
    "gross_amount": {
24
      "value": "10.99",
25
      "currency_code": "USD"
26
    },
27
    "paypal_fee": {
28
      "value": "0",
29
      "currency_code": "USD"
30
    },
31
    "net_amount": {
32
      "value": "10.99",
33
      "currency_code": "USD"
34
    },
35
    "total_refunded_amount": {
36
      "value": "10.99",
37
      "currency_code": "USD"
38
    }
39
  },
40
  "invoice_id": "INVOICE-123",
41
  "create_time": "2018-09-11T23:24:19Z",
42
  "update_time": "2018-09-11T23:24:19Z",
43
  "links": [
44
    {
45
      "rel": "self",
46
      "method": "GET",
47
      "href": "https://api.paypal.com/v2/payments/refunds/1JU08902781691411"
48
    },
49
    {
50
      "rel": "up",
51
      "method": "GET",
52
      "href": "https://api.paypal.com/v2/payments/captures/2GG279541U471931P"
53
    }
54
  ]
55
}', true);
56
    }
57
}