Created
January 15, 2018 07:46
-
-
Save sugoireed/7e975b99beadeab2060f5a31aab1ad7e to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public static function generateHash(){ | |
$TIMESTAMP=new DateTime(); | |
$datetime=$TIMESTAMP->format('YmdHis'); | |
$password=base64_encode(MERCHANT_ID.PASSKEY.$datetime); | |
return $password; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment