Skip to content

Commit 0c9cf93

Browse files
committed
tunable widget redirect message
1 parent 16a5e53 commit 0c9cf93

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

src/RedirectForm.php

+3
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@
1010

1111
class RedirectForm extends Widget
1212
{
13+
public $message = 'Now you will be redirected to the payment system.';
14+
1315
public $api;
1416
public $invoiceId;
1517
public $amount;
@@ -27,6 +29,7 @@ public function run()
2729
{
2830
$this->view->registerJs("$('#perfect-money-checkout-form').submit();", View::POS_READY);
2931
return $this->render('redirect', [
32+
'message' => $this->message,
3033
'api' => $this->api,
3134
'invoiceId' => $this->invoiceId,
3235
'amount' => number_format($this->amount, 2, '.', ''),

src/views/redirect.php

+2-1
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,11 @@
77
* @var $invoiceId
88
* @var $amount
99
* @var $description
10+
* @var $redirectMessage string
1011
*/
1112
?>
1213
<div class="perfect-money-checkout">
13-
<p><?= \Yii::t('PerfectMoney', 'Now you will be redirected to the payment system.') ?></p>
14+
<p><?= $message ?></p>
1415
<form id="perfect-money-checkout-form" action="https://perfectmoney.is/api/step1.asp" method="POST">
1516
<input type="hidden" name="PAYEE_ACCOUNT" value="<?= $api->walletNumber ?>">
1617
<input type="hidden" name="PAYEE_NAME" value="<?= $api->merchantName ?>">

0 commit comments

Comments
 (0)