Changeset 3005363
- Timestamp:
- 12/05/2023 02:28:18 AM (2 years ago)
- File:
-
- 1 edited
-
binance-pay/trunk/class-wc-gateway-binancepay.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
binance-pay/trunk/class-wc-gateway-binancepay.php
r3005362 r3005363 190 190 $nonce = $this->generate_random_string(); 191 191 $body = json_encode($req); 192 $timestamp = round(microtime(true) * 1000); 192 $microtime = microtime(true); 193 $seconds = floor($microtime); 194 $milliseconds = sprintf('%03d', ($microtime - $seconds) * 1000); 195 $timestamp = $seconds . $milliseconds; 193 196 $payload = $timestamp . "\n" . $nonce . "\n" . $body . "\n"; 194 197 $secretKey = $this->secret_key;
Note: See TracChangeset
for help on using the changeset viewer.