Skip to content

floernoult/recurly-js-examples

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

125 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Recurly.js examples

This repository contains a set of example implementations of recurly.js using html, css, and JavaScript, and a set of API usage examples to demonstrate a few common use-cases for collecting and using recurly.js tokens.

Please note that these examples are not meant to be set onto a web server and forgotten. They are intended to act as a suggestion, wherein your custom needs may fill in any implementaiton gaps.

Deploy to Heroku

This repository can be deployed immediately to Heroku using the included Ruby Heroku API backend. If you choose to do this, feel free to delete the other language backends from your clone.

Deploy

Payment form examples

API token usage examples

Running locally

These examples are meant to be run locally, allowing you to easily experiment with modifications and get running quickly.

Simply clone this repository, read through the simple application code to familiarize yourself, and follow the startup instructions in one of the API token usage examples above.

You'll want to adjust the code to fit your specific redirection and error handling needs, but the example applications are designed to perform essential API functions on first boot.

Configuring the examples

Each API example will pull configuration values from environment variables. You may set them to quickly configure the example to connect to your Recurly site.

Environment variable description
RECURLY_SUBDOMAIN The subdomain of your recurly site
RECURLY_API_KEY Your private API key
RECURLY_PUBLIC_KEY Your public API key
SUCCESS_URL A URL to redirect to when an action suceeds
ERROR_URL A URL to redirect to when an error occurs

Contributing

See CONTRIBUTING file.

License

MIT

About

No description, website, or topics provided.

Resources

License

Contributing

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • HTML 65.3%
  • Ruby 9.0%
  • CSS 6.0%
  • Java 5.3%
  • PHP 5.0%
  • JavaScript 4.7%
  • Python 4.7%