• 1

Read this first!

We do not monitor these forums. The forum is provided to exchange information and experience with other users ONLY. Forum responses are not guaranteed.

However, please submit a ticket if you have an active subscription and wish to receive support. Our ticketing system is the only way of getting in touch with RSJoomla! and receiving the official RSJoomla! Customer Support.

For more information, the Support Policy is located here.

Thank you!

TOPIC: Calling a payment window using javascrip

Calling a payment window using javascrip 10 years 8 months ago #28499

  • clucking
  • clucking's Avatar
  • OFFLINE
  • Junior Boarder
  • Posts: 21
  • Thank you received: 2
Hi,

I have absolutely no experience with javascript nor PHP.

Anyway, I have build a lot of forms and now want to launch an api payment window from a danish payment gateway provider.

This provider has given the following javascript example code, which I have entered as additional javascript code in the form:

<script charset="UTF-8" src="ssl.ditonlinebetalingssystem.dk/integrat...dow/paymentwindow.js" type="text/javascript"></script>
<script type="text/javascript">
paymentwindow = new PaymentWindow({
'merchantnumber': "1234567",
'amount': "10095",
'currency': "DKK"
});
</script>


Furthermore, they have given the code below as example in order to call the script - I have put this code into the additional code field for the submit button:

<input onclick="javascript: paymentwindow.open()" type="button" value="Go to payment">

But the external payment window is not called when I hit the submit button.
Can anybody help what the code for the two parts exactly should look like?

Thanks in advance,

Claus.
The administrator has disabled public write access.
  • 1

Read this first!

We do not monitor these forums. The forum is provided to exchange information and experience with other users ONLY. Forum responses are not guaranteed.

However, please submit a ticket if you have an active subscription and wish to receive support. Our ticketing system is the only way of getting in touch with RSJoomla! and receiving the official RSJoomla! Customer Support.

For more information, the Support Policy is located here.

Thank you!