close ad
WARNING: Do Not Install the DREAMWEAVER CC 2017 Update »
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

Ingredients for Sending Email/Updating Database "before page load"

Thread began 2/01/2010 1:23 pm by john42771 | Last modified 2/04/2010 5:02 pm by john42771 | 968 views | 5 replies

Jason ByrnesWebAssist

There is no one answer to the question you are asking, it is dependent on the type of checkout process you are creating (Local or Remote) and the gateway you are using.


lets take PayPal as an example.

If you are using Local Chekout:
The PayPal local checkout behavior on the confirm page will automatically transfer the user to the failure page if the transaction fails. If it is successful, the order will be stored and the email sent then the page is directed to the success page.

It is really not necessary to wait till the success page to send the email or store the order in the database since the confirm page will not get to the code to perform those action unless the order is successful.

If you use Remote checkout however, the checkout success page really only means that paypal has agreed to process the transaction.

The transaction is placed in a queue and will be processed on a first come first served basis with the bank. It may be processed in 5 minutes, or as long as 5 day's.

With paypal standard checkout, you need to configure your account to use an IPN page. Once the transaction is processed through the gateway, paypal will post the results through the IPN page. on the IPN -page, you can add the behaviors for sending the email and storing the order in the database.

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question

Content

rating

Layout

rating

Ease of use

rating

security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...