Formbuilder: Submit to payment gateway
Posted: Wed Mar 30, 2016 6:58 am
Hi,
I am using CMSMS 1.12.2;
PHP version 5.5.23;
MySQL version 5.5.48;
Running on Linux
Formbuilder 0.8.1.3, which depends on CMSMailer. My CMSMailer version is 5.2.14, which is set to use 'Mail'.
What I am attempting to do is have a user fill in a form with some basic contact information and the amount of products they would like to buy. Then when the user submits the form the information is saved to a ListIt instance (so we can view the information through CMSMS), an email is sent to our office admin to say an order has been placed and a payment gateway popup appear so the client can pay for the products.
A basic, non styled, form can be viewed at http://upgrade.peo.gov.au/form-test.html
I have the items saving to listit and an email is being sent but I am stumbling on the payment gateway part.
At the moment I haven't attempted to open the payment gateway in a popup as I can't get FormBuilder to open the payment gateway page outside of a page template.
To open the gateway page I am using formbuilders '*Submit to an arbitrary form action' field type, which I was hoping would just replace the existing page with the gateway page, but, it appear formbuilder will just overright the {content} or {formbuilder} tags. This results in an entire page (including the doctype) being loaded into the current page.
If someone knows how to get formbuilder to open an external payment gateway in a new window i'd be very happy to know how, or if there are easier ways to acheive this I am happy to change what I am doing.
Happy to clarify if this makes no sense.
Thanks in advance,
Tbunt
I am using CMSMS 1.12.2;
PHP version 5.5.23;
MySQL version 5.5.48;
Running on Linux
Formbuilder 0.8.1.3, which depends on CMSMailer. My CMSMailer version is 5.2.14, which is set to use 'Mail'.
What I am attempting to do is have a user fill in a form with some basic contact information and the amount of products they would like to buy. Then when the user submits the form the information is saved to a ListIt instance (so we can view the information through CMSMS), an email is sent to our office admin to say an order has been placed and a payment gateway popup appear so the client can pay for the products.
A basic, non styled, form can be viewed at http://upgrade.peo.gov.au/form-test.html
I have the items saving to listit and an email is being sent but I am stumbling on the payment gateway part.
At the moment I haven't attempted to open the payment gateway in a popup as I can't get FormBuilder to open the payment gateway page outside of a page template.
To open the gateway page I am using formbuilders '*Submit to an arbitrary form action' field type, which I was hoping would just replace the existing page with the gateway page, but, it appear formbuilder will just overright the {content} or {formbuilder} tags. This results in an entire page (including the doctype) being loaded into the current page.
If someone knows how to get formbuilder to open an external payment gateway in a new window i'd be very happy to know how, or if there are easier ways to acheive this I am happy to change what I am doing.
Happy to clarify if this makes no sense.
Thanks in advance,
Tbunt