I have the following PHP variables which essentials grab some strings found in the URL:
<?php    
$tx = $_GET["tx"];
$amount = $_GET["amount"];
?>
I would like to be able to use these variables as such:
$scope.userUpdatePayment = function(form) {
    var update = Parse.User.current();
    update.set("amount", $amount);
    update.save(null, {
        success: function(update) {
            //success         
        },
        error: function(update, error) {
            //failure 
        }
    });
}
 
     
     
    