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 Payouts
8
{
9
    /**
10
     * @return array
11
     */
12
    private function mockCreateBatchPayoutParams(): array
13
    {
14
        return Utils::jsonDecode('{
15
  "sender_batch_header": {
16
    "sender_batch_id": "Payouts_2018_100007",
17
    "email_subject": "You have a payout!",
18
    "email_message": "You have received a payout! Thanks for using our service!"
19
  },
20
  "items": [
21
    {
22
      "recipient_type": "EMAIL",
23
      "amount": {
24
        "value": "9.87",
25
        "currency": "USD"
26
      },
27
      "note": "Thanks for your patronage!",
28
      "sender_item_id": "201403140001",
29
      "receiver": "receiver@example.com",
30
      "alternate_notification_method": {
31
        "phone": {
32
          "country_code": "91",
33
          "national_number": "9999988888"
34
        }
35
      },
36
      "notification_language": "fr-FR"
37
    },
38
    {
39
      "recipient_type": "PHONE",
40
      "amount": {
41
        "value": "112.34",
42
        "currency": "USD"
43
      },
44
      "note": "Thanks for your support!",
45
      "sender_item_id": "201403140002",
46
      "receiver": "91-734-234-1234"
47
    },
48
    {
49
      "recipient_type": "PAYPAL_ID",
50
      "amount": {
51
        "value": "5.32",
52
        "currency": "USD"
53
      },
54
      "note": "Thanks for your patronage!",
55
      "sender_item_id": "201403140003",
56
      "receiver": "G83JXTJ5EHCQ2"
57
    }
58
  ]
59
}', true);
60
    }
61
}