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 Identity
8
{
9
    private function mockCreateMerchantApplicationParams(): array
10
    {
11
        return Utils::jsonDecode('{
12
  "redirect_uris": [
13
    "https://example.com/callback",
14
    "https://example.com/callback2"
15
  ],
16
  "client_name": "AGGREGATOR",
17
  "logo_uri": "https://example.com/logo.png",
18
  "contacts": [
19
    "facilitator@example.com",
20
    "merchant@example.com"
21
  ],
22
  "policy_uri": "https://example.com/policyuri",
23
  "tos_uri": "https://example.com/tosuri",
24
  "scope": "profile email address",
25
  "token_endpoint_auth_method": "client_secret_basic",
26
  "jwks_uri": "https://example.com/my_public_keys.jwks"
27
}', true);
28
    }
29
 
30
    private function mockSetAccountPropertiesParams(): array
31
    {
32
        return Utils::jsonDecode('{
33
    "categories": [
34
      {
35
        "name": "PAYMENT",
36
        "groups": [
37
          {
38
            "name": "AUTH_SETTLE",
39
            "preferences": [
40
              {
41
                "name": "ENABLE_ENHANCED_AUTH_SETTLE",
42
                "value": "true"
43
              }
44
            ]
45
          }
46
        ]
47
      }
48
    ]
49
  }', true);
50
    }
51
}