Wrox Home  
Search P2P Archive for: Go

  Return to Index  

javascript thread: Send email notification?


Message #1 by "David Yee" <david@r...> on Wed, 25 Jul 2001 12:17:52 +0800
David,
	I did this with Worldpay using their 'callback' function.
Basically, based on whether the transaction was approved or declined a
URL can be specified.  You then use that URL to send the mail (and
customise it for approve or decline).  If your merchant gateway offers a
similar function I'd do it that way. If you send an email at the time
the customer submits the form you can't know the result of the
transaction.  HTH,
	- John Doolan

-----Original Message-----
From: David Yee [mailto:david@r...]
Sent: 25 July 2001 05:18
To: javascript
Subject: [javascript] Send email notification?


May i know how can i make use of the form using javascript to submit the
payment information to a third party merchant gateway, URL and at the
same
time send an email notification to myself using ASP. How can i make the
form
onsubmit call a function in ASP to send out email? Kindly advice..

<form method=3D"post" action=3D"https://merchantgateway/wcc/purchase">
      <input type=3D"hidden" name=3D"instId" value=3D"12345">
      <input type=3D"hidden" name=3D"cartId" value=3D"A10152">
      <input type=3D"hidden" name=3D"amount" value=3D"99.95">

      Name :                      <input type=3D"text" name=3D"name">
      Email Address :         <input type=3D"text" name=3D"email">
                <input type=3D"submit" name=3D"Submit" 
value=3D"Proceed">
</form>

Regards
David Yee


$subst('Email.Unsub')


  Return to Index