Created
July 15, 2015 14:57
-
-
Save Rudis1261/f3297358a8f48a34f9df to your computer and use it in GitHub Desktop.
Just creating a quick test to ensure that a float gets converted to the correct INT value expected by SnapScan
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$amount = (!empty($_GET['amount'])) ? $_GET['amount'] : 50; | |
$amount = $amount * 100; | |
$amount = (int)$amount; | |
$merchant = (!empty($_GET['merchant'])) ? $_GET['merchant'] : 'snapTest'; | |
header("location:https://pos.snapscan.io/qr/{$merchant}?amount={$amount}&id=TestingTheAccount&strict=true"); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment