Advertisement
Guest User

Untitled

a guest
Jul 19th, 2019
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.34 KB | None | 0 0
  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. $preparedString = implode('|', $dataReturn);
  14.  
  15. $hashString = hash_hmac('sha256', $preparedString, "S-g-hkTrTOLdBE2_AQVcUxtA");
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement