rwcurry Posted January 26, 2010 Share Posted January 26, 2010 I have a web page where I want to redirect the user to a credit card processing site. To do this I have the following code. <form action="http://www.creditcardprocessor.com" method="POST"> <input type="hidden" name="ssl_logon" value="ausername"> <input type="hidden" name="ssl_password" value="apassword"> <input type="submit" value="Click Here to Register"> </form> unfortunately this allows a user savvy enough to view the code in their browser to see what the logon and password values are. How do I do this safely? Thanks Quote Link to comment https://forums.phpfreaks.com/topic/189904-how-to-send-post-data-including-variables-without-it-being-visible-in-code/ Share on other sites More sharing options...
schilly Posted January 26, 2010 Share Posted January 26, 2010 I can hardly believe that's the code the credit card processing site gave you to redirect them? Quote Link to comment https://forums.phpfreaks.com/topic/189904-how-to-send-post-data-including-variables-without-it-being-visible-in-code/#findComment-1002054 Share on other sites More sharing options...
rwcurry Posted January 26, 2010 Author Share Posted January 26, 2010 Actually it is the example they gave, but with the instruction not to use it. About as useful as your reply.. Quote Link to comment https://forums.phpfreaks.com/topic/189904-how-to-send-post-data-including-variables-without-it-being-visible-in-code/#findComment-1002057 Share on other sites More sharing options...
teamatomic Posted January 26, 2010 Share Posted January 26, 2010 Its standard practice for a place like that to give you space on a https server for your form. If they wont or dont do that get another processor. HTH Teamatomic Quote Link to comment https://forums.phpfreaks.com/topic/189904-how-to-send-post-data-including-variables-without-it-being-visible-in-code/#findComment-1002061 Share on other sites More sharing options...
waynew Posted January 26, 2010 Share Posted January 26, 2010 If you want help, I suggest that you act a little less sassy with the people who reply to your thread. If this credit card processing website expects you to store passwords etc in plain text, you need to find a different company to do business with. They most likely have further documentation. I suggest checking their site out or even contacting them/using their support forums. Quote Link to comment https://forums.phpfreaks.com/topic/189904-how-to-send-post-data-including-variables-without-it-being-visible-in-code/#findComment-1002069 Share on other sites More sharing options...
schilly Posted January 26, 2010 Share Posted January 26, 2010 If you want help, I suggest that you act a little less sassy with the people who reply to your thread. If this credit card processing website expects you to store passwords etc in plain text, you need to find a different company to do business with. They most likely have further documentation. I suggest checking their site out or even contacting them/using their support forums. +1. For a credit card company to have something like that is unthinkable, hence my reply. Quote Link to comment https://forums.phpfreaks.com/topic/189904-how-to-send-post-data-including-variables-without-it-being-visible-in-code/#findComment-1002081 Share on other sites More sharing options...
rwcurry Posted January 26, 2010 Author Share Posted January 26, 2010 +1. For a credit card company to have something like that is unthinkable, hence my reply. I agree. And actually there is a typo in the original example (should be https://) however the question is, how is this done normally? Preferably with some example. So far no one has volunteered any solutions, and while I agree that help is voluntary, everything else is just noise. thanks anyway. Quote Link to comment https://forums.phpfreaks.com/topic/189904-how-to-send-post-data-including-variables-without-it-being-visible-in-code/#findComment-1002088 Share on other sites More sharing options...
schilly Posted January 26, 2010 Share Posted January 26, 2010 It's hard to say. Each credit card company has their own methods. It's usually by API calls or a form redirect but I would say you never would include your password in the form. ie. PayPal use to just use username but I think they switched to some kind of user code now for Express Checkout and they have an API for calls from your own site. all use https and no where is there a visible password. I would contact them directly, check their documentation or find a new payment merchant. Quote Link to comment https://forums.phpfreaks.com/topic/189904-how-to-send-post-data-including-variables-without-it-being-visible-in-code/#findComment-1002093 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.