Skip to content

Commit

Permalink
fix/BAM-129-Enabling-decimals-on-web-form (#18)
Browse files Browse the repository at this point in the history
* BAM-129 Enabling decimals on web form
- allow user to type 2 decimal place in amount input field

* Add step in terminal payment

---------

Co-authored-by: Ioannis Petridis <[email protected]>
  • Loading branch information
timmycheung-kody and ioannis-kody authored Dec 12, 2024
1 parent 248d2c4 commit abfe04e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion samples/php8/ecom-server/public/terminal_payment_form.php
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ function generateRandomOrderId($length = 8)
<h2>Terminal ID: <?php echo $terminalId; ?></h2>
<form action="terminal_submit_payment.php" method="POST">
<label for="amount">Amount:</label>
<input type="number" id="amount" name="amount" value="<?php echo $randomAmount; ?>" required>
<input type="number" id="amount" name="amount" value="<?php echo $randomAmount; ?>" step="0.01" required>

<label for="currency">Currency:</label>
<input type="text" id="currency" name="currency" value="<?php echo $config['currency']; ?>" class="readonly"
Expand Down

0 comments on commit abfe04e

Please sign in to comment.