Extra information can be added at any point within the Transaction Form. This information can be used by the Accept and Decline applications to display the result of the transaction, and/or to update the database of orders.
In our application, we add the information necessary to generate the receipt.
From the MTPayment application
58 **************** EXTRA INFO ***************** 59 subs="#ChargeType#":@vm:ChargeType 60 call w3HtmlInsertSection("MTPayment.html",subs, "ExtraInfo1") 61 62 IF ChargeType#"OneTime" THEN 63 subs="" 64 subs<-1>="#RecurAmount#":@vm:Price 65 subs<-1>="#RecurStart#":@vm:Start 66 subs<-1>="#RecurLength#":@vm:"12" 67 call w3HtmlInsertSection("MTPayment.html",subs, "ExtraInfo2") 68 END From the MTPayment.html template: 68 <!--ExtraInfo1--> 69 <input type=hidden name=ChargeType value=#ChargeType#> 70 <!--/ExtraInfo1--> 71 <!--ExtraInfo2--> 72 <input type=hidden name=RecurAmount value=#RecurAmount#> 73 <input type=hidden name=RecurStart value=#RecurStart#> 74 <input type=hidden name=RecurLength value=#RecurLength#> 75 <!--/ExtraInfo2--> |
There is no limit in the amount of extra information we can add here.