Skip to content

A javascript library to build payment forms and connect with Tuna services

Notifications You must be signed in to change notification settings

tuna-software/tuna.js

Repository files navigation

Tuna.js V2 Library

The Tuna JavaScript library allow you to build a secure payment form, tokenize sensitive custumer card's information and accept payments rigth on your website or using your backend.

MIT License AppVeyor cdn npm

Building Locally

Building tuna libraries

  npm install
  yarn bundle

Building only tuna-api.js

  yarn bundleTunaAPI

Run tests

  yarn test

Run in debug mode

  yarn debug

Installation on website

To use tuna.js to build your checkout form add

  <script src="https://js.tuna.uy/tuna.js"></script>

To use tuna.js API only

  <script src="https://js.tuna.uy/tuna-api.js"></script>

We strongly encourage the use of tuna.js via these links provided by us istead of a local copy of the file

Usage example

<html>
    <head>
        <script src="https://js.tuna.uy/tuna.js"></script>
    </head>
    <body>
        <span id="defaultFormRoot"></span>
        <script>
              let tuna = Tuna('61205-xxxx-2305');
              tuna.useDefaultForm("#defaultFormRoot",
                {
                    checkoutCallback: response => console.log(response),
                });
        </script>
    </body>
</html>

Alt Text

Documentação

To more details, access the entire documentation at this link

Licença

MIT

About

A javascript library to build payment forms and connect with Tuna services

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published