Jump to content

Trouble with submit event of payment form.


Recommended Posts

Hello, I have a payment form embedded on my webpage. When the payment is submitted I am trying to have a listener for the submission and have it do various things. I have tested out an on click event that works for the form, and the function I have inside works properly, but onsubmit is not working like I would like. Here is what I have. Does anyone have any advice?

 

document.getElementById('caspioform').onsubmit = () => {
        //do various things
}
Link to comment
Share on other sites

  • 2 weeks later...
  • 10 months later...
On 3/9/2020 at 10:45 AM, Thewf said:

Hello, I have a payment form embedded on my webpage. When the payment is submitted I am trying to have a listener for the submission and have it do various things. I have tested out an on click event that works for the form, and the function I have inside works properly, but onsubmit is not working like I would like. Here is what I have. Does anyone have any advice?

 

document.getElementById('caspioform').onsubmit = () => {
        //do various things
}

Hello, may I know if this payment is under the standard features? It may not be secure if it's just a custom code and you might want to look into this one: https://howto.caspio.com/datapages/forms/accepting-payments-in-your-application/ 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...