vendor/overtrue/wechat/src/Paymenthelpers.php

helpers.php.

Functions

generate_sign()

generate_sign(array  $attributes, string  $key, string  $encryptMethod = 'md5') : string

Generate a signature.

Parameters

array $attributes
string $key
string $encryptMethod

Returns

string

get_client_ip()

get_client_ip() : string

Get client ip.

Returns

string

get_server_ip()

get_server_ip() : string

Get current server ip.

Returns

string