I have a piece of code that has CFTRANSACTION tags around it. When the
credit card authorization fails, I roll back all the queries, however I
would like to insert a record into a log table. Is there a way to do
that?
Russ
Example
<cftransaction action="begin">
<cftry>
some credit card processing code here
<cfif session.card.status neq "APPROVED">
<cfthrow type="creditcard">
</cfif>
<cftransaction action="commit">
<cfcatch type="CreditCard">
<cftransaction action="ROLLBACK"/>
<cfquery name="qryAddTransactionLog"
datasource="#request.dsn#">
query I want to run
</cfquery>
<cflocation url="order.cfm">
</cfcatch>
</cftry>
</cftransaction>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Your ad could be here. Monies from ads go to support these lists and provide more
resources for the community. http://www.fusionauthority.com/ads.cfm