Jump to content

Credit card Payment module: Custom form parameters are appearing in the query string param section in browser network tab.


purna7788
 Share

Recommended Posts

Hi All,

I started creating a custom payment module for authorize.net for processing the credit cards. Created a custom form for entering the credit card details cc number, name , expiry date and CVV.

In validation.php front controller fetching these values and making a call to authorize.net. Based on the response, we are calling either the order-confirmation page Or "ccfailure" front end controller to display error message from authorize.net. The Complete flow is working as expected.

My problem is when submitting the Credit card form, I am able to see the user cc information in browser network tab in Query string parameters.  This information is also appending the URL in the browser. 

Can anyone let me know How can I hide these details?

Thanks In Advance

Edited by purna7788 (see edit history)

Share this post


Link to post
Share on other sites

  • 2 weeks later...
On 1/15/2021 at 2:35 AM, Prestachamps said:

Hi,

when submitting then send the form parameters with POST and not with GET, as most probably you're sending now with GET and this is why it's added to the URL.

<form method="post">

Kind regards, Leo

Thanks. That just helped me with one of my modifications. Appreciated.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More