Welcome Guest ( Log In | Register )

Outline · [ Standard ] · Linear+

 How does this Online Payment form work?, how is payment info passed to bank

views
     
TSokuribito
post Nov 19 2018, 05:50 PM, updated 8y ago

Regular
******
Senior Member
1,021 posts

Joined: Mar 2010
» Click to show Spoiler - click again to hide... «


My condo management got someone to set up an online payment form to facilitate credit card payments instead of using one of the payment gateways. The full webpage code is in the spoiler above.

Can someone familiar with html / javascript explain how the info submitted is passed to the payment gateway / bank for processing? Which part(s) of the code does that?

For information, this form is implemented on our building manager's website (non-https). I myself don't dare use it because I think my CC# and CVV can be hijacked during transmission (no https) as well as captured by the building manager.

Any web developers here? TIA

>>Mods - apologies if wrong place to post

This post has been edited by okuribito: Nov 19 2018, 05:52 PM
takemehomepls
post Nov 19 2018, 06:00 PM

Getting Started
**
Junior Member
124 posts

Joined: Oct 2012
From: Cosmopolitan


Hi, may I know what is your default.js doing? Thanks.
mynewsin
post Nov 19 2018, 06:05 PM

Getting Started
**
Junior Member
113 posts

Joined: Apr 2013
The code show by you are only front end. There is impossible to see what backend doing
TSokuribito
post Nov 19 2018, 06:06 PM

Regular
******
Senior Member
1,021 posts

Joined: Mar 2010
Good question biggrin.gif I dunno javascript ler but I download for you in spoiler >>

» Click to show Spoiler - click again to hide... «

TSokuribito
post Nov 19 2018, 06:11 PM

Regular
******
Senior Member
1,021 posts

Joined: Mar 2010
QUOTE(mynewsin @ Nov 19 2018, 06:05 PM)
The code show by you are only front end. There is impossible to see what backend doing
*
hmmmm ... but how backend know if got any new transaction coming from the frontend? Does the backend have code to look for activity OR frontend has code to pass info to backend or activate backend ?

Last time I did a simple form in html, I remember I had to specify an action in the form eg email to me any form submitted
mynewsin
post Nov 22 2018, 04:19 PM

Getting Started
**
Junior Member
113 posts

Joined: Apr 2013
QUOTE(okuribito @ Nov 19 2018, 06:11 PM)
hmmmm ... but how backend know if got any new transaction coming from the frontend? Does the backend have code to look for activity  OR frontend has code to pass info to backend or activate backend ?

Last time I did a simple form in html, I remember I had to specify an action in the form eg email to me any form submitted
*
From the code, it look like it passing the necessary info such as card number, cvv to backend. once u click the submit button, it will call a method and pass in the data to backend to continue the transation. Based on what you provided, i could not identify how it work.
TSokuribito
post Nov 23 2018, 06:06 PM

Regular
******
Senior Member
1,021 posts

Joined: Mar 2010
CODE
<input type="submit" onclick="
              MM_validateForm(
                  'unit_id','','isSelect',
                  'prefix_name','','isSelect',
                  'full_name','','R',
                  'email','','RisEmail',
                  'phone','','RisNum',
                  'cc_type','','isSelect',
                  'cc_num','','RisNum',
                  'cc_mm','','isSelect',
                  'cc_yy','','isSelect',
                  'cc_cvv','','RisNum'
              ); return document.MM_returnValue" value="PAY"
           />


Looks like When click the submit button, it runs the form validation ... then nothing else rclxub.gif ... what does return document.MM_returnValue" value="PAY" do?

Anything in default.js? Looks like code for handling validation exceptions only?

 

Change to:
| Lo-Fi Version
0.0147sec    0.30    5 queries    GZIP Disabled
Time is now: 25th November 2025 - 04:10 AM