Skip to content

ewlloyd/recurly-js

 
 

Repository files navigation

Recurly.js

Simple subscription billing in the browser

build status code quality

Browser test status

Documentation

Getting Started & API Documentation

Examples

See our Examples Repo for example client-side and server-side implementations.

Installation

<script src="https://js.recurly.com/v4/recurly.js"></script>

Build

Development build server

make

Build to the file system

$ make build

If you are having issues with the build, try make clean.

Test

$ make test

Additional Features

XHR+CORS

As of v3.0.9, Recurly.js supports API communication using Cross-Origin Resource Sharing over XMLHttpRequest, as opposed to the traditional method of JSONP. A later version of Recurly.js will switch over to using CORS+XHR exclusively, but if you would like to test out this feature first, you may enable it by setting the cors configuration property to true.

recurly.configure({
  publicKey: 'YOUR PUBLIC KEY',
  cors: true
});

Please note that in order to use this feature in IE9, you must serve your payment page over HTTPS. This is a known limitation of the CORS implementation in IE9.

License

MIT

aurea mediocritas

About

Simple subscription billing in the browser

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 96.5%
  • CSS 2.3%
  • Other 1.2%