Solved

Redirect and posting of encrypted information

Posted on 2004-09-07
13
142 Views
Last Modified: 2013-12-24
So i have form, the users fill out, moves to a verify page which displays the information entered and calculates the costs, then he is prometed to submit. upon submit, a page open with a notification then this page has a  cfheader that referesh after 10 sec. and takes the user to the online payment processor. that all works perfect, the only problem is that the total amount due is displayed in the url, and if he edits this total amount, the online payment processor charges the edited value not the one passed from our site!

How can i do the redirection and send the information so that the user cannot edit it?
0
Comment
Question by:MMsabry
  • 6
  • 4
  • 3
13 Comments
 
LVL 21

Expert Comment

by:pinaldave
ID: 11998196
Hi MMsabry,
you can store your information in the session or application (not preferable) variable before you redirect.
Then after you can retrive those information new page.
You do not have to use url or forms param for that...

Regards,
---Pinal
0
 

Author Comment

by:MMsabry
ID: 11998245
sorry! the cc processing ask that we send them a url linke something like this
https://www.cardprocessorname/xxx/xxx/pay?myid=123&total=123&invoiceid=123&
now i need to hide everything after "pay"
0
 
LVL 21

Expert Comment

by:pinaldave
ID: 11998296
Hi MMsabry,
here you can not do anything... as it is their page of cardprocessorname...
and the way they retrive the stored info..it is upto them... you can not change anything here..
if this was my page... i might have to stuck things in session or even in url.total param and retrive them without passing them to url...but you can do nothing here... you can talk with them and see what alternative they offer.

Regards,
---Pinal
0
 

Author Comment

by:MMsabry
ID: 11998374
hi pinal
thanks, i already contacted them and waiting!!, i will keep the question open to see if someone has any ideas!
0
 
LVL 21

Expert Comment

by:pinaldave
ID: 11998432
No problem, let us wait what other experts says.
Regards,
---Pinal
0
 
LVL 17

Expert Comment

by:anandkp
ID: 12003462
Have a look at URLEncodedFormat() & URLDecode()
OR
<CFSET mykey = "Anand"><!--- set the key value for encrypt & decrypt --->

Encrypt the contents of the URL by using
#Encrypt(QUERY_STRING,mykey)#
so that users cannot edit the query string

& then later decrypt it as
#Decrypt(QUERY_STRING,mykey)#

hope that helps ...
0
Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

 
LVL 21

Expert Comment

by:pinaldave
ID: 12003570
hello Anand,
That is true but buddy... the url is passed to the credit card company... so user do not have control on that side of credit card...
that is what I was telling above that... he needs to contact the credit card...
if we have control on the other side buddy... I will try to use form variables or something like that...
otherwise, I respect your idea as always,
Good Day,
---Pinal
0
 

Author Comment

by:MMsabry
ID: 12004111
here is what the company said:
"
We do support MD5 hash checking so you can verifiy the integrity of the sale
to prevent this.

The MD5 hash is created as follows.

md5 ( secret word + vendor number + order number + total )"

Now i know what the md5 is and what is the hash, I'm still waiting for them to explain a little more how should i do that, or where on the url string passed to them this hashed key
0
 
LVL 17

Accepted Solution

by:
anandkp earned 500 total points
ID: 12013200
try using CFHTTP - i think it wld solve ur issues & u wldnt have the need to encrypt / hide any information
0
 

Author Comment

by:MMsabry
ID: 12018128
hey anandkp,
what you indicated is true, but the problem is: my payment processor when you first go there, you get a page that says the total amount and give you some options to chosse from (e.g. pay by credit card, pay by check, etc.) now when i click to proceed to the actual payment page, all the information is lost, no total amount, nothing the whole thing is empty! I think the cfhttp passes the info correctly to the first page, but it is lost afterwords!
Is there any known solution to this?
0
 
LVL 17

Expert Comment

by:anandkp
ID: 12024695
use form submission to pass values via hidden fields to subsequent pages - so that the information is retained.
0
 

Author Comment

by:MMsabry
ID: 12025089
Sorry,
you mean, i take the values and put them in a hidden form, or do you mean using the cfhttpparam form and submitting that?
0
 

Author Comment

by:MMsabry
ID: 12025132
to add to that, can one do something like
<cfheader name="refresh" value="10; <cfhttp  method="post" url="https://flkjshfklj"> <cfhttpparam name="1" type="formfield" value="xyz"></cfhttp>">

The idea is to still be able to display the page, then redirect after 10 seconds, and still use the cfhttp?
is there another way?
0

Featured Post

Highfive Gives IT Their Time Back

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
Nginx CDN 12 114
WSUS Client Issues 52 968
Website being blocked? 3 114
LAMP problem identifier tool ? 9 101
This is a guide to setting up a new WHM/cPanel Server to be used for web hosting accounts. It is intended for web hosting company administrators and dedicated server owners. For under $99 per month (considering normal rate of Big Data Cetnters like …
Introduction This article explores the design of a cache system that can improve the performance of a web site or web application.  The assumption is that the web site has many more “read” operations than “write” operations (this is commonly the ca…
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, Just open a new email message.  In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…
This video demonstrates how to create an example email signature rule for a department in a company using CodeTwo Exchange Rules. The signature will be inserted beneath users' latest emails in conversations and will be displayed in users' Sent Items…

706 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now