Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Simple subscription billing in the browser

Merge pull request #177 from recurly/pricing-coupon-plan-fix

Fixes issue with pricing coupon and plan mismatches
latest commit 4557185d97
Benjamin Eckel bhelx authored

README.md

Recurly.js

Simple subscription billing in the browser

build status code quality

Documentation

Getting Started & API Documentation

Examples

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

Installation

Standard

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

Component

component.json

{
  "dependencies": {
    "recurly/recurly-js": "*"
  }
}

index.html

<script>
  var recurly = require('recurly');
</script>

Learn more about component

Build

$ make

Test

$ make test

Beta 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 in the CORS implementation in IE9.

License

MIT

aurea mediocritas

Something went wrong with that request. Please try again.