Hi
First of all I need to say we love chronoforms. We use it as standard form component for all our joomla installations.
We try now to connect chronoforms with a Payment Provider called datatrans in switzerland...
the deliver the following example code if you want to show the payment instructions and selection as a popup..
For us the questions is:
How can add some parameters to the form tag in chronoform5?
Thank you for your help
First of all I need to say we love chronoforms. We use it as standard form component for all our joomla installations.
We try now to connect chronoforms with a Payment Provider called datatrans in switzerland...
the deliver the following example code if you want to show the payment instructions and selection as a popup..
For us the questions is:
How can add some parameters to the form tag in chronoform5?
<script src="https://code.jquery.com/jquery-1.11.2.min.js"></script>
<script src="https://pilot.datatrans.biz/upp/payment/js/datatrans-1.0.0.js"></script>
<form id="paymentForm"
data-merchant-id="1100004624"
data-amount="1000"
data-currency="CHF"
data-refno="123456789"
data-sign="30916165706580013">
<button id="paymentButton">Pay</button>
</form>
<script type="text/javascript">
$("#paymentButton").click(function () {
Datatrans.startPayment({'form': '#paymentForm'});
});
</script
Thank you for your help
Hi artd2,
You can either use the Form Tag attachment box in the HTML (Render Form) action; or you can turn off the form tags in the same action and use Custom Code for your form including these tags.
Bob
You can either use the Form Tag attachment box in the HTML (Render Form) action; or you can turn off the form tags in the same action and use Custom Code for your form including these tags.
Bob
Ok! This is clear and great! Thx Tor your quick reply.
But how we get the values in it? For example the value of the payment that can be selected from a radio button of a free amount? Or a dynamic reference number?
Thank you again for your great support!
Regards raphael
But how we get the values in it? For example the value of the payment that can be selected from a radio button of a free amount? Or a dynamic reference number?
Thank you again for your great support!
Regards raphael
Hi raphael,
What do you need to do here exactly - do you want ChronoForms to process the form data and then send the user to the payment gateway? Or do you just want to submit directly to the gateway?
If it's the first that is simpler. After the form submits create a thank you page that contains a 'Pay Now' form built using the form data. You can either get the user to click a 'Pay Now' button, or you can use JavaScript to auto-submit after a delay.
Bob
What do you need to do here exactly - do you want ChronoForms to process the form data and then send the user to the payment gateway? Or do you just want to submit directly to the gateway?
If it's the first that is simpler. After the form submits create a thank you page that contains a 'Pay Now' form built using the form data. You can either get the user to click a 'Pay Now' button, or you can use JavaScript to auto-submit after a delay.
Bob
This topic is locked and no more replies can be posted.