SHARE
TWEET

Untitled

a guest Jul 19th, 2019 65 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. $input = $request->all();
  2.         ksort($input, SORT_STRING);
  3.  
  4.         $dataReturn = array();
  5.         foreach ($input as $key => $value) {
  6.             if ($key === "x_signature") {
  7.                 continue;
  8.             }
  9.             $dataReturn[] = $key.$value;
  10.  
  11.         }
  12.  
  13.  
  14.         $preparedString = implode('|', $dataReturn);
  15.        
  16.         $hashString = hash_hmac('sha256', $preparedString, "S-g-hkTrTOLdBE2_AQVcUxtA");
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top