5.) Transaction Variables
Variable |
Name |
Description |
|---|---|---|
$TRANS{'id'} |
Transaction ID# |
The unique ID# of the transaction |
$TRANS{'userid'} |
Member ID# |
The ID# of the member who has been assigned this transaction. Same as the $PROFILE{'id'} variable. |
$TRANS{'index_id'} |
Transaction Index ID# |
The ID# of the transaction from the index, which can be found through the Transaction->Transaction Settings menu. |
$TRANS{'recurring_id'} |
Recurring ID# |
If a recurring transaction, the unique ID#, pointing to another database table, which contains additional information on the recurring transaction, such as next payment date, ect. |
$TRANS{'amount'} |
Amount |
Amount of the transaction |
$TRANS{'status'} |
Status |
A one digit number, representing the status of the transaction. Will be:
|
$TRANS{'method'} |
Method |
The transaction method, which will be:
|
$TRANS{'coupon'} |
Coupon Code |
If a coupon code was used, this variable will contain information on the coupon. Formatted in T,A, where:
|
$TRANS{'date'} |
Transaction Date |
The date the transaction was added to the database. Formatted in YYYY-MM-DD |
$TRANS{'time'} |
Transaction Time |
The exact time the transaction was added to the database. Formatted in HH:MM:SS |
$TRANS{'payment_id'} |
Payment ID# |
If payment was required, the ID# of the payment method used. |
$TRANS{'merchant_ref'} |
Merchant Reference # |
If payment was required, the reference number assigned by your payment processor. If your payment processor ever needs to be contacted regarding the transaction, this is the number to give them. |
$TRANS{'reference'} |
Reference ID# |
If this transaction is referenced to another transaction, the ID# of the referenced transaction. |
NOTE: Be sure to check the $TRANS{'status'} variable in your script! xFlow will execute the script every time the transaction is added, regardless of the status.
Variable |
Name |
Description |
|---|---|---|
$REC{'id'} |
Recurring ID# |
The unique ID# of the recurring transaction. |
$REC{'status'} |
Status |
A one digit number, representing the status of the recurring transaction. Will be:
|
$REC{'amount'} |
Amount |
The amount of the recurring transaction. Please note, this is not applicable for recurring commission transactions, as the amounts are always taken from the transaction index. |
$REC{'start_date'} |
Date Started |
The date which the recurring transaction was first added to the database. Formatted in YYYY-MM-DD |
$REC{'lastpay_date'} |
Last Payment Date |
The date which the recurring transaction was last processed. Formatted in YYYY-MM-DD |
$REC{'nextpay_date'} |
Recurring ID# |
The next date which the recurring transaction will be processed again. Formatted in YYYY-MM-DD |