Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/gunn/radiant-reader_shop-extension
Manages orders via paypal.
https://github.com/gunn/radiant-reader_shop-extension
Last synced: about 1 month ago
JSON representation
Manages orders via paypal.
- Host: GitHub
- URL: https://github.com/gunn/radiant-reader_shop-extension
- Owner: gunn
- Created: 2010-07-09T06:21:55.000Z (over 14 years ago)
- Default Branch: master
- Last Pushed: 2010-11-15T01:22:29.000Z (about 14 years ago)
- Last Synced: 2023-04-18T04:19:42.127Z (over 1 year ago)
- Language: Ruby
- Homepage:
- Size: 117 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.rdoc
Awesome Lists containing this project
README
== Reader Shop
Works with the reader extension to charge for items via paypal.
Differs from other payment extensions by being very light. There is no products table - instead orders are created by sending for data to the /orders path.=== Requirements
Works with 0.8.1 and probably 0.9.
Currently requires my fork of Spanner's reader extension:
http://github.com/gunn/radiant-reader-extensionCurrently requires the multi-site extension installed, although this will probably change.
http://github.com/spanner/radiant-multi-site-extension/=== Installation
Get the code however you like. Submodules are a good idea:
git submodule add http://github.com/gunn/radiant-reader_shop-extension vendor/extensions/reader_shopRun the migrations:
rake radiant:extensions:reader_shop:migrateIn your environment.rb:
config.gem 'inherited_resources', :version => "1.0.6"=== Usage
Go to the settings page for whichever site requires ordering functionality and enter your paypal credentials.
Create a user facing form which when submitted sends the parameters title, description, and price (in cents) to the /orders path.There is a tag to help create the form, the tag can take argument normally, or by having the its inner content interpereted as YAML. For example:
title:
submit: Purchase
Arguments from YAMl take override the regular ones.
A user submitting the form, if not signed in as a reader, will be asked to create a reader account or sign in. They will then be asked to confirm their billing details before being redirected to paypal.
Any questions: please message me.