ColdFusion Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsProgramming Languages - MoreColdFusion Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old May 24th, 2005, 08:40 AM
grickey grickey is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: May 2005
Posts: 2 grickey User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 53 m 15 sec
Reputation Power: 0
Call Back WorldPay Junior

ok im having some trouble with geting the call back featue to work here are the details

<cfif IsDefined("FORM.transId")>
<!--- Set local variables from the http post / FORM variables returned from World Pay --->
<cfset var.WPreturnTranId = FORM.transId>
<cfset var.WPreturnTranStatus = FORM.transStatus>
<cfset var.WPreturnOrderID = FORM.cartId>
<cfset var.WPreturnOrderAmount = FORM.amount>

<!--- Set report message based on responce from World Pay --->
<cfif var.WPreturnTranStatus EQ "Y">
<cfset odrStatus = 2>
<cfset odrNotes = "World Pay has verified payment.">
<table cellpadding="0" cellspacing="0" border="0" width="612" align="center">
<tr>
<td align="center" class="pageHeader">Thank you for your order</td>
</tr>
<tr>
<td align="center">Here are your order links:</td>
</tr>
<tr>
<td align="center"><a href="http://www.urbanbreakzfm.com/newshop/filename.zip">Download "filename1" Now</a></td>
</tr>
</table>
<cfelseif var.WPreturnTranStatus EQ "C">
<cfset odrStatus = 1>
<cfset odrNotes = "AUTHORIZATION FAILURE! World Pay was unable to verify payment. Order reset to Pending, but is considered Cancelled by WorldPay. Check your World Pay Account for more information.">
<table cellpadding="0" cellspacing="0" border="0" width="612" align="center">
<tr>
<td align="center" class="pageHeader">Your Order has been cancelled.</td>
</tr>
</table>
<cfelse>
<cfset odrStatus = 0>
<cfset odrNotes = "Unknown payment Status response from World Pay. Check WorldPay account for more information.">
<table cellpadding="0" cellspacing="0" border="0" width="612" align="center">
<tr>
<td align="center" class="pageHeader">Unknown payment Status response from World Pay. Check WorldPay account for more information.</td>
</tr>
</table>
</cfif>
<cfif OdrStatus NEQ 0>
<!--- First we check to see if the World Pay order total and the recorded order total match. --->
<cfquery name="rs_verifyamount" datasource="#request.dsn#" username="#request.dsnUsername#" password="#request.dsnPassword#">
SELECT order_Total
FROM tbl_orders
WHERE order_ID = '#var.WPreturnOrderID#'
</cfquery>

<!--- To prevent tampering or fraud, set alert if amount of World Pay transaction and Order amount don't match. --->
<cfif rs_verifyamount.order_Total NEQ var.WPreturnOrderAmount>
<cfset odrStatus = 1>
<cfset odrNotes = "ALERT!! The order total returned from World Pay was NOT THE SAME as our order total. The order may have been tampered with. Check your World Pay Admin for more information. Order was left set to Pending.">
</cfif>

<!--- Update Order record --->
<cfquery datasource="#request.dsn#" username="#request.dsnUsername#" password="#request.dsnPassword#">
UPDATE tbl_orders
SET
order_TransactionID = '#var.WPreturnTranId#',
order_Status = #odrStatus#,
order_Notes = '#odrNotes#'
WHERE order_ID = '#var.WPreturnOrderID#'
</cfquery>

<!--- Notify Merchnat that WorldPay has posted --->
<cfmail to="#var.CompanyEmail#"
from="#var.CompanyEmail#"
subject="World Pay Results Returned"
server="#var.MailServer#">
World Pay has returned the transaction results for
order number: #var.WPreturnOrderID#
World Pay Transaction ID: #var.WPreturnTranId#
Payment Validation Message: #odrNotes#
</cfmail>
</cfif><!--- [END IF] -- OdrStatus NEQ 0 --->
</cfif><!--- [END IF] -- IsDefined ('FORM.transId') --->
</cfsilent>
</cfoutput>

is the site code we belive it is something to do with the code.

if anyone could enlight me it would be great appreciated, thanks alot.

Reply With Quote
  #2  
Old May 24th, 2005, 08:57 AM
CfFreelancer CfFreelancer is offline
CF Developer
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Mar 2004
Location: Long Island, NY
Posts: 34 CfFreelancer User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 4 h 29 m 50 sec
Reputation Power: 5
what is the error you are getting?

Reply With Quote
  #3  
Old May 24th, 2005, 09:06 AM
grickey grickey is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: May 2005
Posts: 2 grickey User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 53 m 15 sec
Reputation Power: 0
well it goes through to world pay and then it brings up all world pays default even tho callback and the link is enabled it was giving this error :

This callback failure means we were unable to pass information
to your server about the following transaction:

Transaction ID: 117602933
Cart ID: 0E8A3819-C764-46BC-C0FC5FEBF78F2E08
Installation ID: 109855

Error reported: Callback to http://www.urbanbreakzfm.com/newshop/wpCallBackNew.cfm: NOT OK, recevied HTTP status: 500
Server Reference: mggaeq4a:callbackFailureEmail-20059:MerchReq-121

Reply With Quote
  #4  
Old May 24th, 2005, 09:22 AM
CfFreelancer CfFreelancer is offline
CF Developer
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Mar 2004
Location: Long Island, NY
Posts: 34 CfFreelancer User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 4 h 29 m 50 sec
Reputation Power: 5
I personally have not used this gateway but I found some information on their support pages. Hope this helps.

http://support.worldpay.com/kb/reference/faqs/callback_faqs.html#callback_failure

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming Languages - MoreColdFusion Development > Call Back WorldPay Junior


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 3 hosted by Hostway
Stay green...Green IT