Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/timrogers/alexa-charge-customer-by-direct-debit
Collect money your friends owe you with your voice using the GoCardless API
https://github.com/timrogers/alexa-charge-customer-by-direct-debit
Last synced: 28 days ago
JSON representation
Collect money your friends owe you with your voice using the GoCardless API
- Host: GitHub
- URL: https://github.com/timrogers/alexa-charge-customer-by-direct-debit
- Owner: timrogers
- License: mit
- Created: 2016-11-17T11:48:27.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2023-01-20T02:49:56.000Z (about 2 years ago)
- Last Synced: 2024-11-24T13:43:51.343Z (2 months ago)
- Language: Ruby
- Size: 30.3 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 7
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# "Charge Customer by Direct Debit" for Alexa
Collect money your friends owe you with your voice using the [GoCardless API](https://developer.gocardless.com).
## TODO
* Add support for OAuth (requires configuration in Alexa, and then fetching the access token from the request)
## Preparing your local environment
1. Install the application's dependencies with `bundle`
2. Make a copy of `.env.example` into `.env`, and fill in your Alexa application ID (obtained when you create your skill [here](https://developer.amazon.com/edw/home.html#/skill/create/)) and your GoCardless access token (created from your Dashboard [here](https://manage.gocardless.com/developers/access-tokens/create)).
3. Run the application with `heroku local` (which will use the included `Procfile`).## Configuring with Alexa
You can create your Alexa skill on the Amazon site [here](https://developer.amazon.com/edw/home.html#/skill/create/)).
For the intent schema and sample utterances you'll need to provide, see `intent_schema.json` and `sample_utterances.txt`.
## Deploying
This application is ready to deploy to Heroku. Simply create an application, push it up, and set the `GOCARDLESS_ACCESS_TOKEN` and `ALEXA_APPLICATION_ID` environment variables with `heroku config:set`.
## Contributing
Pull requests are welcomed.
When making any changes, make sure you write tests, ensure them and the existing tests are passing, and check your code conforms to good Ruby style with Rubocop:
```bash
bundle exec rspec spec
bundle exec rubocop
```The tests will automatically run in [Travis](https://travis-ci.org/).