Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/rhysforyou/pin-meteor
An example of integrating Pin into a Meteor app
https://github.com/rhysforyou/pin-meteor
Last synced: 5 days ago
JSON representation
An example of integrating Pin into a Meteor app
- Host: GitHub
- URL: https://github.com/rhysforyou/pin-meteor
- Owner: rhysforyou
- Created: 2013-06-01T06:07:01.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2013-06-02T02:26:44.000Z (over 11 years ago)
- Last Synced: 2024-12-17T04:07:32.780Z (7 days ago)
- Language: JavaScript
- Size: 117 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Pin Meteor Integration Example
This code illustrates how to integrate [Pin][pin-site] payment processing to a
Meteor app. Pin's a great service and the core of this app took around half an
hour to get working.The eventual goal of this project is to build an [atmosphere][atmosphere]
package that makes adding Pin to an app as easy as possible.[pin-site]: http://pin.net.au/
[atmosphere]: https://atmosphere.meteor.com## Roadmap
This example code is pretty new so it still has a few rough edges, here's what
I'll be working on over the next few days to make this a more well-rounded
example:- Integration with the accounts system
- Proper redirection support
- Animation
- Support for showing the payment form as a bootstrap modal
- Support for recurring paymentsOnce all of those are out of the way, we'll look at turning this into a package.
## Usage
Right now this is all pretty rough, you'll need to first go into
`/client/main.js` and change the following line to use your publishable API
key:Pin.setPublishableKey('YOUR_PUBLISHABLE_KEY');
This key can be found on your [account page][account].
Next up you'll need to set the `PIN_API_SECRET` environment variable to your
private key, which should be on the same page as the publishable key.After that just use the meteorite `mrt server` command and everything should
work without a hitch.[account]: https://dashboard.pin.net.au/account