Skip to content

Commit

Permalink
Testing responseHash from firstdata payment
Browse files Browse the repository at this point in the history
  • Loading branch information
TheCartpenter committed Jan 20, 2024
1 parent 6e63269 commit 4a4fad7
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 9 deletions.
10 changes: 5 additions & 5 deletions upload/catalog/model/extension/payment/firstdata.php
Original file line number Diff line number Diff line change
Expand Up @@ -169,12 +169,12 @@ public function storeCard(string $token, int $customer_id, string $month, string
/**
* responseHash
*
* @param float $total
* @param string $currency
* @param \Datetime $txn_date
* @param string $approval_code
* @param float $total
* @param string $currency
* @param string $txn_date
* @param string $approval_code
*/
public function responseHash(float $total, string $currency, \Datetime $txn_date, $approval_code) {
public function responseHash(float $total, string $currency, string $txn_date, string $approval_code) {
$tmp = $total . $this->config->get('payment_firstdata_secret') . $currency . $txn_date . $this->config->get('payment_firstdata_merchant_id') . $approval_code;
$ascii = bin2hex($tmp);

Expand Down
5 changes: 1 addition & 4 deletions upload/catalog/model/extension/payment/opayo.php
Original file line number Diff line number Diff line change
Expand Up @@ -447,8 +447,6 @@ public function cronPayment(): array {
* @param string $recurring_expiry
* @param int $recurring_frequency
* @param mixed|null $i
* @param int $subscription_id
* @param string $subscription_name
*
* @return array<string, mixed>
*/
Expand Down Expand Up @@ -662,7 +660,6 @@ private function getProfiles(): array {
* Get Profile
*
* @param int $order_recurring_id
* @param int $subscription_id
*
* @return array<string, mixed>
*/
Expand Down Expand Up @@ -729,7 +726,7 @@ public function sendCurl(string $url, array $payment_data, $i = null): array {
* Log
*
* @param string $title
* @param mixed $data
* @param ?string $data
*
* @return void
*/
Expand Down

0 comments on commit 4a4fad7

Please sign in to comment.