Recurly.js

Easily build your subscription checkout and accept payments

Recurly.js now gives you the speed to securely accept payments as well as the flexibility to build your own checkout UI for subscriptions.

Simple

Recurly.js makes it easy to integrate quickly and can be built with your own UI.

Secure

Cardholder data is sent directly to Recurly. By never touching your servers, we reduce your PCI scope.

Open

Leverage our open source community to build your integration. We love feedback, so let us know how we’re doing.

Improve your checkout flow today!

Get started now

Getting Started

Spend less time writing code and more time capturing purchases.

<script src="https://js.recurly.com/v3/recurly.js"></script>
<form>
  <input type="text" data-recurly="number">
  <input type="text" data-recurly="cvv">
  <input type="text" data-recurly="month">
  <input type="text" data-recurly="year">
  <input type="hidden" data-recurly="token" name="recurly-token">
  <button>subscribe<button>
</form>
<script>
  recurly.configure({ publicKey: 'your-public-key' });

  $('form').on('click', function (event) {
    var form = this;
    event.preventDefault();
    recurly.token(form, function (err, token) {
      form.submit();
    });
  });
</script>

Include the library

Start by adding the script tag using Recurly.js

Build your payment form

Choose how you want to build your form.

Get a token from Recurly

Recurly handles sensitive customer data, returning a secure token.

Built by the community

Recurly.js is an active, open source project hosted, developed and publicly maintained on GitHub. Check out the source now to submit feature requests, report issues and contribute.

0

Contributors

0

Open issues

0

Commits

0

Pull requests

0

Stargazers

0

Watchers

We're here for you

Having a little bit of trouble getting your integration to work? No problem, we’re all here to lend a hand.

IRC

Visit #recurly to chat with our engineering team.

Live Chat

Look for the Chat Now tab inside your Recurly account to chat live with our support team Monday through Friday, 8am-6pm PST.

Stack Overflow

Check out posts tagged Recurly on Stack Overflow to ask questions and share ideas with the Recurly API community.

Email

Email support@recurly.com with your question or request.

Improve your checkout flow today!

Get started now