Skip to content
This repository has been archived by the owner on Jan 9, 2023. It is now read-only.

Commit

Permalink
prestashop validator
Browse files Browse the repository at this point in the history
  • Loading branch information
jhoarau committed May 29, 2020
1 parent bd71e7d commit ff569a2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion controllers/front/stripeCards.php
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ public function initContent()

foreach ($allCards as &$card) {
$card->card->exp_month = sprintf('%02d', $card->card->exp_month);
$card->card->exp_year = substr($card->card->exp_year, -2);
$card->card->exp_year = Tools::substr($card->card->exp_year, -2);
}
}
}
Expand Down
4 changes: 2 additions & 2 deletions stripe_official.php
Original file line number Diff line number Diff line change
Expand Up @@ -1401,7 +1401,7 @@ public function hookPayment($params)
$this->context->smarty->assign(array(
'id_payment_method' => $card->id,
'last4' => $card->card->last4,
'brand' => ucfirst($card->card->brand)
'brand' => Tools::ucfirst($card->card->brand)
));

$display .= $this->display(__FILE__, 'views/templates/front/payment_form_save_card.tpl');
Expand Down Expand Up @@ -1548,7 +1548,7 @@ public function hookPaymentOptions($params)
$option = new \PrestaShop\PrestaShop\Core\Payment\PaymentOption();
$option
->setModuleName($this->name)
->setCallToActionText($this->button_label['save_card'].' : '.ucfirst($card->card->brand).' **** **** **** '.$card->card->last4);
->setCallToActionText($this->button_label['save_card'].' : '.Tools::ucfirst($card->card->brand).' **** **** **** '.$card->card->last4);

$this->context->smarty->assign(array(
'id_payment_method' => $card->id
Expand Down

0 comments on commit ff569a2

Please sign in to comment.