Skip to content

Instantly share code, notes, and snippets.

View sugoireed's full-sized avatar

James Muindi sugoireed

View GitHub Profile
public static function generateHash(){
$TIMESTAMP=new DateTime();
$datetime=$TIMESTAMP->format('YmdHis');
$password=base64_encode(MERCHANT_ID.PASSKEY.$datetime);
return $password;
}