cancel
Showing results for 
Search instead for 
Did you mean: 

Solution for bill payments (variable amounts)

I am trying to figure out which solution (Simple Checkout, SIM or AIM) to use for my company which wants to allow its customers to pay their bills online. The amounts are variable and can change from customer to customer and from month to month. Simple Checkout would be ideal as there is only one item and we don't want to store any credit card or customer information. In fact, the donation feature is the perfect solution except on the payment screen the amount field is titled "Donation Amount" and it would be confusing to our customers to use this. Even though it's more robust than what we need I'm thinking that SIM is the best solution. I've read through a lot of information but I can't tell for sure if it meets our needs or not. We just want the customer to be able to enter their name, address, customer number, invoice number, payment amount and, of course, their credit card information. Is SIM the best way to do this? If so, then do I need to look for a shopping cart as well to handle the bill payment input? Is anyone else processing variable bill payments and if so what shopping cart and/or authorize.net solution (Simple Checkout, SIM or AIM) solution are you using?

 

Thanks in advance for any help or suggestions ...

skielly
Member
11 REPLIES 11

Certified Developer Directory

 

TJPride is one of them.

Just so I understant it correctly...

This is the form code:

<!doctype html>
<html>
<head>
<meta charset="UTF-8">
<title>Make A Payment</title>
</head>

<body>
<form method="post" action="payment2.php">
  <p>Amount: $
    <input type="text" name="amount" size="10" maxlength="10">
    <br>
    (format should be 000.00)
<br>
    <input type="submit" value="Make Payment">
  </p>
</form>
</body>
</html>

 And this is the code for payment2.php

<!doctype html>
<html>
<head>
<meta charset="UTF-8">
<title>University Medical Imaging</title>
<style type="text/css">
body form input {
	display: none;
}
</style>
</head>

<body  onload="document.forms.payment.submit();">
<?php
require_once 'anet_php_sdk/AuthorizeNet.php'; // Include the SDK you downloaded in Step 2
$api_login_id = '************';
$transaction_key = '*************';
$amount = $_POST['amount'];
$fp_timestamp = time();
$fp_sequence = "123" . time(); // Enter an invoice or other unique number.
$fingerprint = AuthorizeNetSIM_Form::getFingerprint($api_login_id,
  $transaction_key, $amount, $fp_sequence, $fp_timestamp)
?>

<form method='post' action="https://test.authorize.net/gateway/transact.dll" name="payment">
<input type='hidden' name="x_login" value="<?php echo $api_login_id?>" />
<input type='hidden' name="x_fp_hash" value="<?php echo $fingerprint?>" />
<input type='hidden' name="x_amount" value="<?php echo $amount?>" />
<input type='hidden' name="x_fp_timestamp" value="<?php echo $fp_timestamp?>" />
<input type='hidden' name="x_fp_sequence" value="<?php echo $fp_sequence?>" />
<input type='hidden' name="x_version" value="3.1">
<input type='hidden' name="x_show_form" value="payment_form">
<input type='hidden' name="x_test_request" value="false" />
<input type='hidden' name="x_method" value="cc">
<input type='submit' value="Click here for the secure payment form">
</form>
Payment Gateway Is Loading
</body>
</html>

 This was compiled from previous posts here.