Skip to content

Commit

Permalink
Merge from master
Browse files Browse the repository at this point in the history
  • Loading branch information
Dirk Olbertz committed Mar 12, 2024
1 parent 31a6607 commit 8f4e7c9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Payone/Gateway/CreditCard.php
Original file line number Diff line number Diff line change
Expand Up @@ -601,7 +601,7 @@ public function order_status_changed( \WC_Order $order, $from_status, $to_status
* @return string
*/
public function calculate_hash( $options ) {
return hash(
return hash_hmac(
'sha384',
$options['account_id']
. 'UTF-8'
Expand All @@ -610,8 +610,8 @@ public function calculate_hash( $options ) {
. $options['portal_id']
. 'creditcardcheck'
. 'JSON'
. 'yes'
. $options['key']
. 'yes',
$options['key']
);
}
}

0 comments on commit 8f4e7c9

Please sign in to comment.