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:
Stop making mediocre tutorials.The best tutorials are video! Camtasia Studio makes it easy to create engaging, buzz-building screen videos at any size, in any popular format. Download the free trial!
  #1  
Old February 24th, 2004, 05:30 AM
Kyn Kyn is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Feb 2004
Posts: 2 Kyn User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Exclamation Retrieving Values via URL/Link

Dear Dev Shed,

I am pretty stuck at this point and am still very new to ColdFusion. I would be deeply grateful if you could lend a hand.

I need to retrieve the variables from this particular link that would be passed back to me via the "statusurl", upon completion of a transaction from a payment gateway, to update my database so that the user can move on to another stage.

Without these values updated, everyone is stuck.

The link/parameters passed back is:

www.flickswitch.com/test/status.cfm?TM_RefNo=QW000016-11&TM_DebitAmt=25.00&TM_Status=YES&TM_ErrorMsg=&TM_PaymentType=2&TM_ApprovalCode=888888[/url]

How can I retrieve the variables and its values if it was passed back to me via URL?

I tried using the URL.TM_Status method and cfparam followed by cfset but of no use and I am not familiar with CFHTTP.

No further information provided by the payment gateway, except this "The variables will be combined together with the statusurl provided through the "get" method".

Does this mean I have to do a CFHTTP "get" to obtain the values and if so, how do I go about doing this?


Please help.

Reply With Quote
  #2  
Old February 24th, 2004, 09:52 AM
kiteless kiteless is offline
Moderator
Dev Shed Loyal (3000 - 3499 posts)
 
Join Date: Jun 2002
Location: Raleigh, NC
Posts: 3,480 kiteless User rank is Sergeant Major (2000 - 5000 Reputation Level)kiteless User rank is Sergeant Major (2000 - 5000 Reputation Level)kiteless User rank is Sergeant Major (2000 - 5000 Reputation Level)kiteless User rank is Sergeant Major (2000 - 5000 Reputation Level)kiteless User rank is Sergeant Major (2000 - 5000 Reputation Level)kiteless User rank is Sergeant Major (2000 - 5000 Reputation Level) 
Time spent in forums: 1 Week 3 Days 17 h 33 m 17 sec
Reputation Power: 42
If you call a ColdFusion page with this URL:

www.flickswitch.com/test/status.cfm?TM_RefNo=QW000016-11&TM_DebitAmt=25.00&TM_Status=YES&TM_ErrorMsg=&TM_PaymentType=2&TM_ApprovalCode=888888

These variables will be available to the page:
  • url.tm_refno
  • url.tm_debitamt
  • url.tm_status
  • url.tm_errormsg
  • url.tm_paymenttype
  • url.tm_approvalcode

You can output one to test it like this:

<cfoutput>#url.debitamt#</cfoutput>

However, I gather from your variable names that you are passing some sort of money or transaction information in the URL. This is an extremely dangerous and bad idea if that data has any importance at all. If these values are used in a payment transaction or used in a database query, etc, then you had better be doing a lot of validation and confirmation. Values passed in url or form fields should always be regarded with the highest suspicion because it is so easy to modify them.

Reply With Quote
  #3  
Old February 25th, 2004, 03:33 AM
Kyn Kyn is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Feb 2004
Posts: 2 Kyn User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Thank you

Hi Kiteless,

Thank you for replying to this thread. I did try using this method mentioned but to no avail.

Perhaps, I should check with the payment gateway as I noticed the page is not called upon at all.

Hopefully, this will be resolved soon as time is really ticking on my side

And yes, you are correct. It is for some payment transaction. Will definitely heed your advice on the preventive measures.
Grateful for your time.

This is a really, really cool site and I will definitely drop by very often.

Once again, thanks!!

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming Languages - MoreColdFusion Development > Retrieving Values via URL/Link


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

 Free IT White Papers!
 
Accelerating Trading Partner Performance
One in five. That's how many partner transactions have at least one error. That is an amazing statistic, particularly given the extraordinary leaps in innovation across the global supply chain during the past two decades. Download this white paper to learn more.

 
Competing on Analytics
This Tech Analysis is designed to help identify characteristics shared by analytics competitors, and includes information about 32 organizations that have made a commitment to quantitative, fact-based analysis.

 
Cost Effective Scaling with Virtualization and Coyote Point Systems
An overview of the industry trend toward virtualization, how server consolidation has increased the importance of application uptime and the steps being taken to integrate load balancing technology with virtualized servers.

 
Five Checkpoints to Implementing IP Telephony
Implementation planning for IP PBX software and IP telephony has become vital as businesses replace discontinued legacy PBX phone systems. This informative whitepaper outlines five "checkpoints" for any implementation plan that will help make IP communications a successful proposition.

 
Hosted Email Security: Staying Ahead of New Threats
In the last two years, email has become a fierce battleground between the nefarious forces of spam and malware, and the heroes of messaging protection. The spam volumes increased alarmingly every month, bringing clever new forms of phishing and virus propagation attacks.

 

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





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 1 hosted by Hostway