Last modified November 11, 2008
where in this case, the form variable "amount" would contain the total amount the user is to be charged. As is normal for Transform, the variable name is provided surrounded by square brackets.
where in this case, the form variable "pay" is the name of the submit button form variable.
Please refer to Appendix A for the list of available redirect parameters.
<h3>A Donation Form</h3> <form method = "POST" action = "https://www.indiana.edu/~your_user_name/transformepcm.cgi"> <p> Enter your name:<br> <input name="name" size = 40> <p> <p> Enter the amount you'd like to donate:<br> <input name="amount" size=20 > <p> <input type="submit" name = charge value="Go to the credit card entry form"> </form>
# Begin the *epayment-variables* section.
# Here we've set !epayment-mode to active.
# The !payment-total-amount variable is set to [amount],
# the name of the amount input field on our form.
# The !payment-button-name variable is set to [charge],
# the name of our submit button.
*epayment-variables*
!epayment-mode = active
!payment-orderType = BL~TREA~test
!payment-total-amount = [amount]
!payment-button-name = [charge]
# Begin the *define-variables* section.
# This is only used to set !force-error-if
*define-variables*
*success-response*
*error-response*
<html>
<head>
<title>There has been an error!</title></head>
<body>
<h3>The following error occurred:</h3><br>
[IPAS_error_message]<br>
<h3>The error code was:</h3> [IPAS_error_code]<br>
</body>
</html>
##### end template file
*epayment-variables* !epayment-mode = active !payment-orderType = BL~TREA~test !payment-total-amount = [amount] !payment-button-name = [charge] *define-variables* # Make both "name" and "amount" required variables. [req-name] [req-amount] # Add a !force-error-if that tests to be sure the # amount entered by the user is in the correct format. # This regular expression test simply says: does the # amount variable begin with one or more digits, # followed by a period and ends with two digits. !force-error-if not [amount] =~ /^\d+\.\d\d$/ # Here's a silly *success-response*. *success-response* <h2>Thank you for your donation</h2> Your name: [name]<br> The amount your have been charged: <b>$[amount]</b><p> # Here is a standard error response. # This *error-response* will be used # if the user didn't complete all required variables # or if the test on the amount variable fails. # Note that required variables processing is done # before the user is sent to the credit card entry # form. *error-response* <h2>Error - this is the first error-response</h2> # Test the amount field and print an error message # if it has an incorrect format. !print-if not [amount] =~ /^\d+\.\d\d$/ The amount you entered: <b>[amount]</b> has an incorrect format.<br> The amount must include dollars and cents (e.g. 10.00).<p> !end-print-if # This section tests for the presence of other required # variables and prints a message if they are missing. # Here only [name] is tested for - others could be added # depending on your form. !print-if not [name] The name field on the form is required.<p> !end-print-if Use the Back button on your browser to return to the form. <p> ##### end template file
| Attribute Name | Description |
|---|---|
| transactionType | 1 - Credit Card Payment 2 - Credit Card Refund 3 - eCheck Payment |
| transactionStatus | If Transaction Type field value is 1 or 2 (credit card
payment/refund): 1 - Accepted credit card payment/refund (successful) 2 - Rejected credit card payment/refund (declined) 3 - Error credit card payment/refund (error) 4 - Unknown credit card payment/refund (unknown) If Transaction Type field value is 3 (eCheck payment): 5 - Accepted eCheck payment (successful) 6 - Posted eCheck payment (successful) 7 - Returned eCheck payment (failed) 8 - NOC eCheck payment (successful) |
| transactionId | Unique identifier generated by QuikPAY at the time of the transaction, often referred to as Confirmation Number. |
| originalTransactionId | The original payment transaction id if the transaction is a credit card refund. |
| transactionTotalAmount | Actual transaction total amount, the sum of values of Order Amount and Order Fee fields. |
| transactionDate | Date when the transaction was captured by QuikPAY in YYYYMMDDHHMM format. |
| transactionAcountType | The type of account used to make the payment: e.g. "VISA", "DISCOVER", "CHECKING", "SAVINGS" |
| transactionEffectiveDate | Business day that the transaction belongs to in YYYYMMDDHHMM format. The hours and minutes, HHMM, will always be 0000 for the Transaction Effective Date. |
| transactionDescription | Description of the transaction. |
| transactionResultDate | Date that the transaction was processed in YYYYMMDDHHMM format. If Transaction Status field value is 7 or 8, this will be the date that QuikPAY was notified of the result by the NACHA network. |
| transactionResultEffectiveDate | Business day that the result of the transaction would be effective in YYYYMMDDHHMM format. The hours and minutes, HHMM, will always be 0000 for the Transaction Result Effective Date. If Transaction Status field value is 7 or 8, this will be the date that NACHA network generated the result. |
| transactionResultCode | if Transaction Status field value is 1 - credit card
authorization code if Transaction Status field value is 2 - credit card rejection code if Transaction Status field value is 3 or 4 - credit card processing error code if Transaction Status field value is 5 or 6 - blank if Transaction Status field value is 7 - NACHA return code if Transaction Status field value is 8 - NACHA change code |
| transactionResultMessage | Detailed message describing the result of the transaction |
| orderNumber | The account being paid or the unique identifier of the order |
| orderType | Account Type being paid |
| orderName | Name of the order |
| orderDescription | Description of the order |
| orderAmount | The amount the user wished to pay originally |
| orderFee | Add-on fee if any, often referred to as convenience fee |
| orderAmountDue | The amount due on the order |
| orderDueDate | Due date of the order in YYYYMMDDHHMM format |
| orderBalance | The balance on the order |
| orderCurrentStatusBalance | The balance that is obtained from Current Account Status (if the client has this feature implented) |
| orderCurrentStatusAmountDue | The amount due that is obtained from Current Account Status (if the client has this feature implemented) |
| payerType | Type of the payer. Example: "university_campus_payer". |
| payerIdentifier | The unique identifier for the user within the institution. This is typically a student ID. |
| payerFullName | Full name of the payer. Example: "John Smith" |
| actualPayerType | Type of the actual payer. It may be the same as PayerType field. Other example: "university_campus_authorized". |
| actualPayerIdentifier | The unique identifier for the actual payer. |
| actualPayerFullName | Full name of the actual payer. |
| accountHolderName | The name on the checking or savings account for eCheck transaction or the name on the credit card for credit card. |
| streetOne | Street line 1 |
| streetTwo | Street line 2 |
| city | City |
| state | State |
| zip | Zip Code |
| country | Country |
| daytimePhone | Daytime phone number |
| eveningPhone | Evening phone number |
| email address that the user entered on the payment form | |
| userChoice1 | Optional field 1. |
| userChoice2 | Optional field 2. |
| userChoice3 | Optional field 3. |
| userChoice4 | Optional field 4. |
| userChoice5 | Optional field 5. |
| userChoice6 | Optional field 6. |
| userChoice7 | Optional field 7. |
| userChoice8 | Optional field 8. |
| userChoice9 | Optional field 9. |
| userChoice10 | Optional field 10. |