Skip to content

Commit f361e5d

Browse files
committed
Update StripeForm.php
fix issue #9
1 parent d7a82cb commit f361e5d

File tree

1 file changed

+19
-19
lines changed

1 file changed

+19
-19
lines changed

StripeForm.php

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -255,9 +255,9 @@ public function numberInput($options = []) {
255255
'size' => 20
256256
]);
257257

258-
StripeHelper::secCheck($mergedOptions);
259-
$mergedOptions['data-stripe'] = self::NUMBER_ID;
260-
return Html::input('text', null, null, $mergedOptions);
258+
StripeHelper::secCheck($mergedOptions);
259+
$mergedOptions['data-stripe'] = self::NUMBER_ID;
260+
return Html::input('text', null, null, $mergedOptions);
261261
}
262262

263263
/**
@@ -275,9 +275,9 @@ public function cvcInput($options = []) {
275275
'type' => 'tel',
276276
'size' => 4
277277
]);
278-
StripeHelper::secCheck($mergedOptions);
279-
$mergedOptions['data-stripe'] = self::CVC_ID;
280-
return Html::input('text', null, null, $mergedOptions);
278+
StripeHelper::secCheck($mergedOptions);
279+
$mergedOptions['data-stripe'] = self::CVC_ID;
280+
return Html::input('text', null, null, $mergedOptions);
281281
}
282282

283283
/**
@@ -296,9 +296,9 @@ public function yearInput($options = []) {
296296
'maxlength' => 4,
297297
'size' => 4
298298
]);
299-
StripeHelper::secCheck($mergedOptions);
300-
$mergedOptions['data-stripe'] = self::YEAR_ID;
301-
return Html::input('text', null, null, $mergedOptions);
299+
StripeHelper::secCheck($mergedOptions);
300+
$mergedOptions['data-stripe'] = self::YEAR_ID;
301+
return Html::input('text', null, null, $mergedOptions);
302302
}
303303

304304
/**
@@ -318,9 +318,9 @@ public function monthInput($options = []) {
318318
'size' => 2
319319
]);
320320

321-
StripeHelper::secCheck($mergedOptions);
322-
$mergedOptions['data-stripe'] = self::MONTH_ID;
323-
return Html::input('text', null, null, $mergedOptions);
321+
StripeHelper::secCheck($mergedOptions);
322+
$mergedOptions['data-stripe'] = self::MONTH_ID;
323+
return Html::input('text', null, null, $mergedOptions);
324324
}
325325

326326
/**
@@ -338,14 +338,14 @@ public function monthAndYearInput($options = []) {
338338
'type' => 'tel',
339339
]);
340340

341-
StripeHelper::secCheck($mergedOptions);
342-
$mergedOptions['data-stripe'] = self::MONTH_YEAR_ID;
343-
$inputs = Html::input('text', null, null, $mergedOptions);
341+
StripeHelper::secCheck($mergedOptions);
342+
$mergedOptions['data-stripe'] = self::MONTH_YEAR_ID;
343+
$inputs = Html::input('text', null, null, $mergedOptions);
344344

345-
//Append hidden year and month inputs that will get value from mixed and send to stripe
346-
$inputs = $inputs . $this->monthInput(['type' => 'hidden']);
347-
$inputs = $inputs . $this->yearInput(['type' => 'hidden']);
348-
return $inputs;
345+
//Append hidden year and month inputs that will get value from mixed and send to stripe
346+
$inputs = $inputs . $this->monthInput(['type' => 'hidden']);
347+
$inputs = $inputs . $this->yearInput(['type' => 'hidden']);
348+
return $inputs;
349349
}
350350

351351
}

0 commit comments

Comments
 (0)