Skip to content

Commit

Permalink
Merge pull request #21 from RichardCardGate/master
Browse files Browse the repository at this point in the history
Update reference and description values.
  • Loading branch information
cardgate committed Apr 29, 2020
2 parents 8bb681f + 27d9fc4 commit 0ae2750
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion modules/cardgate/cardgate.php
Expand Up @@ -12,7 +12,7 @@ public function __construct() {
$this->paymentcode = 'cardgate';
$this->paymentname = 'CardGate';
$this->tab = 'payments_gateways';
$this->version = '1.6.33';
$this->version = '1.6.34';
$this->author = 'CardGate';
$this->bootstrap = true;
$this->currencies = true;
Expand Down
6 changes: 3 additions & 3 deletions modules/cardgate/cardgatepayment.php
Expand Up @@ -2,7 +2,7 @@

class CardgatePayment extends PaymentModule {

var $version = '1.6.33';
var $version = '1.6.34';
var $tab = 'payments_gateways';
var $author = 'CardGate';
var $shop_version = _PS_VERSION_;
Expand Down Expand Up @@ -125,7 +125,7 @@ public function paymentData() {

$cg_total = number_format( (($cart->getOrderTotal( true, Cart::BOTH ) + $extrafee) * 100 ), 0, '.', '' );
$site_id = Configuration::get( 'CARDGATE_SITEID' );
$ref = date( "YmdHis" ) . $cart->id;
$ref = 'Order ' . $cart->id;
$extra = $cart->id . '|' . $extrafee;
$hash = md5( $sPrefix . $site_id . $cg_total . $ref . Configuration::get( 'CARDGATE_HASH_KEY' ) );
$address = new Address( $cart->id_address_invoice );
Expand Down Expand Up @@ -255,7 +255,7 @@ public function paymentData() {
$data['return_url_failed'] = Tools::getHttpHost( true, true ) . __PS_BASE_URI__ . 'index.php?controller=order&step=3';
$data['amount'] = $cg_total;
$data['currency'] = $currency->iso_code;
$data['description'] = 'Payment of the account #' . $ref;
$data['description'] = $ref;
$data['ref'] = $ref;
$data['extra'] = $extra;
$data['first_name'] = $address->firstname;
Expand Down

0 comments on commit 0ae2750

Please sign in to comment.