+31 (0) 20 760 2040 info@spilgames.com

Include Javascript

JavaScript client inclusion

payment.client.js is the file containing the JavaScript client that provides the payment selection screen functionality. You can include the file in either of these document (gamepage) sections:

 

Important

NEVER proxy our content.Always include payment.client.js directly or use a direct link:

https://payments.spilgames.com/static/javascript/spil/payment.client.js.

JavaScript client inclusion in the document HEAD

To include the JavaScript client in your document, you need to include the following string:

https://payments.spilgames.com/static/javascript/spil/payment.client.js

This string needs to be the value of the src attribute inside a <script> tag:

When you include it inside a <head> tag, the result is similar to the example below:

JavaScript client inclusion in the document BODY

To include the JavaScript client in your document, you need to add the following string to your file:

https://payments.spilgames.com/static/javascript/spil/payment.client.js

This string needs to be the value of the src attribute inside a  tag:

When you include it inside a <body> tag, the result is similar to the example below:

src attribute domain value

The domain associated to the src attribute in the opening <script> tag is https://payments.spilgames.com.