@@ -45,8 +45,7 @@ discard block |
||
45 | 45 | ); |
46 | 46 | if (!$stmt) { |
47 | 47 | return false; |
48 | - } |
|
49 | - else { |
|
48 | + } else { |
|
50 | 49 | return true; |
51 | 50 | } |
52 | 51 | } |
@@ -63,8 +62,7 @@ discard block |
||
63 | 62 | $this->ttt_dump_data($nick, 'callback', $payment_data); |
64 | 63 | if (!$stmt) { |
65 | 64 | return false; |
66 | - } |
|
67 | - else { |
|
65 | + } else { |
|
68 | 66 | return true; |
69 | 67 | } |
70 | 68 | } |
@@ -272,8 +270,7 @@ discard block |
||
272 | 270 | $this->webdev_dump_data($nick, 'callback', $payment_data); |
273 | 271 | if (!$stmt) { |
274 | 272 | return false; |
275 | - } |
|
276 | - else { |
|
273 | + } else { |
|
277 | 274 | return true; |
278 | 275 | } |
279 | 276 | } |
@@ -341,8 +338,7 @@ discard block |
||
341 | 338 | $this->riderofstorms_dump_data($nick, 'callback', $payment_data); |
342 | 339 | if (!$stmt) { |
343 | 340 | return false; |
344 | - } |
|
345 | - else { |
|
341 | + } else { |
|
346 | 342 | return true; |
347 | 343 | } |
348 | 344 | } |
@@ -396,8 +392,7 @@ discard block |
||
396 | 392 | $this->arvr_dump_data($nick, 'callback', $payment_data); |
397 | 393 | if (!$stmt) { |
398 | 394 | return false; |
399 | - } |
|
400 | - else { |
|
395 | + } else { |
|
401 | 396 | return true; |
402 | 397 | } |
403 | 398 | } |
@@ -525,8 +520,7 @@ discard block |
||
525 | 520 | $this->artuino_dump_data($team_id, 'callback', $payment_data); |
526 | 521 | if (!$stmt) { |
527 | 522 | return false; |
528 | - } |
|
529 | - else { |
|
523 | + } else { |
|
530 | 524 | return true; |
531 | 525 | } |
532 | 526 | } |
@@ -582,8 +576,7 @@ discard block |
||
582 | 576 | $this->mun_dump_data($nick, 'callback', $payment_data); |
583 | 577 | if (!$stmt) { |
584 | 578 | return false; |
585 | - } |
|
586 | - else { |
|
579 | + } else { |
|
587 | 580 | return true; |
588 | 581 | } |
589 | 582 | } |
@@ -3,14 +3,17 @@ discard block |
||
3 | 3 | ?> |
4 | 4 | <?php if ($large_text): ?> |
5 | 5 | <textarea name="<?= $name ?>" class="pure-input-1" required=""><?= isset($_POST[$name]) ? $_POST[$name] : '' ?></textarea> |
6 | - <?php else: ?> |
|
6 | + <?php else { |
|
7 | + : ?> |
|
7 | 8 | <input |
8 | 9 | name="<?= $name ?>" |
9 | 10 | value="<?= isset($_POST[$name]) ? $_POST[$name] : '' ?>" |
10 | 11 | required="" |
11 | 12 | type="text" |
12 | 13 | class="pure-input-1"> |
13 | - <?php endif; ?> |
|
14 | + <?php endif; |
|
15 | +} |
|
16 | +?> |
|
14 | 17 | |
15 | 18 | <?php if (isset($errors[$name])): ?> |
16 | 19 | <div class="error pure-input-1-1"><?= $errors[$name] ?></div> |
@@ -39,7 +42,8 @@ discard block |
||
39 | 42 | But your payment is unsuccessful. If you think this is a mistake, please email us at <a href="mailto:[email protected]" class="underlined">[email protected]</a> |
40 | 43 | </p> |
41 | 44 | <a class="btn" href="<?= locale_base_url() ?>talks-and-workshops/mun/pay_again/"> Click here to pay again.</a> |
42 | - <?php else: ?> |
|
45 | + <?php else { |
|
46 | + : ?> |
|
43 | 47 | <p class="text-center lead success"> |
44 | 48 | Payment Successful. You're registered for the event. |
45 | 49 | </p> |
@@ -47,13 +51,18 @@ discard block |
||
47 | 51 | Kindly carry your payment receipt which is mailed to you while atteding workshop.<br/> |
48 | 52 | If you think this is a mistake, please email us at <a href="mailto:[email protected]" class="underlined">[email protected]</a> |
49 | 53 | </p> |
50 | - <?php endif; ?> |
|
51 | - <?php else: ?> |
|
54 | + <?php endif; |
|
55 | +} |
|
56 | +?> |
|
57 | + <?php else { |
|
58 | + : ?> |
|
52 | 59 | <form class="pure-form pure-form-stacked row" method="post" action=""> |
53 | 60 | <fieldset class="offset3 col6"> |
54 | 61 | <?php if (isset($errors['common'])): ?> |
55 | 62 | <div class="error pure-input-1-1"><?= $errors['common'] ?></div> |
56 | - <?php endif; ?> |
|
63 | + <?php endif; |
|
64 | +} |
|
65 | +?> |
|
57 | 66 | |
58 | 67 | <label><?= __('Contact number') ?></label> |
59 | 68 | <?php $text_input('contact_number'); ?> |
@@ -22,8 +22,9 @@ |
||
22 | 22 | $api_headers = $payment_cfg['mun']['api_headers']; |
23 | 23 | $purpose = $payment_cfg['mun']['purpose']; |
24 | 24 | $amount = $payment_cfg['mun']['amount'] * $team_size; |
25 | - if ($needs_accomodation) |
|
26 | - $amount = $amount + $payment_cfg['mun']['accomodation_amount'] * $team_size; |
|
25 | + if ($needs_accomodation) { |
|
26 | + $amount = $amount + $payment_cfg['mun']['accomodation_amount'] * $team_size; |
|
27 | + } |
|
27 | 28 | $redirect_url = $payment_cfg['mun']['redirect_url']; |
28 | 29 | $webhook = $payment_cfg['mun']['webhook']; |
29 | 30 |