Identity.php 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. <?php
  2. namespace Srmklive\PayPal\Tests\Mocks\Requests;
  3. use GuzzleHttp\Utils;
  4. trait Identity
  5. {
  6. private function mockCreateMerchantApplicationParams(): array
  7. {
  8. return Utils::jsonDecode('{
  9. "redirect_uris": [
  10. "https://example.com/callback",
  11. "https://example.com/callback2"
  12. ],
  13. "client_name": "AGGREGATOR",
  14. "logo_uri": "https://example.com/logo.png",
  15. "contacts": [
  16. "facilitator@example.com",
  17. "merchant@example.com"
  18. ],
  19. "policy_uri": "https://example.com/policyuri",
  20. "tos_uri": "https://example.com/tosuri",
  21. "scope": "profile email address",
  22. "token_endpoint_auth_method": "client_secret_basic",
  23. "jwks_uri": "https://example.com/my_public_keys.jwks"
  24. }', true);
  25. }
  26. private function mockSetAccountPropertiesParams(): array
  27. {
  28. return Utils::jsonDecode('{
  29. "categories": [
  30. {
  31. "name": "PAYMENT",
  32. "groups": [
  33. {
  34. "name": "AUTH_SETTLE",
  35. "preferences": [
  36. {
  37. "name": "ENABLE_ENHANCED_AUTH_SETTLE",
  38. "value": "true"
  39. }
  40. ]
  41. }
  42. ]
  43. }
  44. ]
  45. }', true);
  46. }
  47. }