[Date Prev][Date Next][Thread Prev][Thread Next][Interchange by date
][Interchange by thread
]
[ic] changing status when building order
>From: "Jeff Fearn" <jeffrey_fearn@hotmail.com>
>Reply-To: interchange-users@icdevgroup.org
>To: interchange-users@icdevgroup.org
>Subject: [ic] changing status when building order
>Date: Sun, 04 Aug 2002 08:29:21 +0000
>
>I am integrating an off site payment gateway, which is mostly working,
>however I can't figure out where to set the status when the order is
>processed.
>
>The customer gets redirected to the credit card processing site, and the CC
>site interacts with the IC site in the back ground, then when the customer
>returns to the IC site the order is completed by redirecting them to the
>reciept page. What I want to be able to do is check if the transaction has
>completed and set the status to pending or credit. I have the CC
>transactions in a table, I just can't figure out what parameter needs to be
>set for the Place_Order page to set it correctly.
>
><HTML>
><HEAD>
><TITLE>
></TITLE>
></HEAD>
><BODY>
><FORM ACTION="[process secure=1]" METHOD="GET" name=checkout>
><INPUT TYPE="hidden" NAME="mv_session_id" VALUE="[cgi id]">
>
>[error all=1 show_var=1 show_error=1 joiner='<BR>']
>
>Please click the Place Order button to complete your order.
>
>[tmp dbResult]
> [query st=db
> table=comsec
> sql="SELECT comsec.result FROM comsec WHERE session_id='[cgi RefNum]'"]
> [/query]
>[/tmp]
>
>[comment]Where do I scratch status?[/comment]
>[if type="scratch" term="dbResult" op="eq" compare="A"]
> [tmp status]Pending[/tmp]
>[else]
> [tmp status]Credit[/tmp]
>[/else]
>[/if]
>
>[button
> name="mv_click"
> src="__THEME__/placeorder.gif"
> text="Place Order"
> hidetext=1
> form=checkout
>]
> mv_todo=submit
> mv_order_profile=checkout_profile
>[/button]
>
>[bounce href="[area form='mv_click_map=Place_Order
> mv_click_Place_Order=Place+Order
> mv_todo=submit']"]
></BODY>
></HTML>
It maybe just hotmail stuffing up the formatting, anyhow this should be
readable by all.
Jeff.
_________________________________________________________________
Send and receive Hotmail on your mobile device: http://mobile.msn.com