Skip to content

Commit

Permalink
Updated for package-registry-refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
aaronjudd committed Feb 14, 2015
1 parent b07afc4 commit 2682f9e
Show file tree
Hide file tree
Showing 4 changed files with 48 additions and 26 deletions.
21 changes: 0 additions & 21 deletions common/register.coffee

This file was deleted.

File renamed without changes.
12 changes: 7 additions & 5 deletions package.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Package.describe({
summary: "Reaction Authorize.net - Authorize.net payments for Reaction Commerce",
name: "reactioncommerce:reaction-auth-net",
version: "0.1.0",
version: "0.2.0",
git: "https://github.com/taylorsmithgg/reaction-auth-net"
});

Expand All @@ -12,16 +12,18 @@ Package.onUse(function (api, where) {
api.use("[email protected]");
api.use("coffeescript");
api.use("less");
api.use("reactioncommerce:[email protected]");
api.use("reactioncommerce:[email protected]");

api.add_files("server/register.coffee",["server"]); // register as a reaction package
api.add_files("server/authnet.coffee",["server"]);

api.add_files([
"common/register.coffee",
"common/routing.coffee",
"common/collections.coffee",
"lib/authnet.coffee"
],["client","server"]);
api.add_files("server/authnet.coffee",["server"]);

api.add_files([
"client/routing.coffee",
"client/templates/authnet.html",
"client/templates/authnet.less",
"client/templates/authnet.coffee",
Expand Down
41 changes: 41 additions & 0 deletions server/register.coffee
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
ReactionCore.registerPackage
name: 'reaction-auth-net' # usually same as meteor package
autoEnable: false # auto-enable in dashboard
settings: # private package settings config (blackbox)
mode: false
client_id: ""
client_secret: ""
registry: [
# all options except route and template
# are used to describe the
# dashboard 'app card'.
{
provides: 'dashboard'
label: 'Authorize.net'
description: "Accept Authorize.net Payments"
icon: 'fa fa-credit-card' # glyphicon/fa
cycle: '4' # Core, Stable, Testing (currently testing)
container: 'dashboard' #group this with settings
}
# configures settings link for app card
# use 'group' to link to dashboard card
{
route: 'authnet'
provides: 'settings'
container: 'dashboard'
}
# configures template for checkout
# paymentMethod dynamic template
{
template: 'authnetPaymentForm'
provides: 'paymentMethod'
}
]
# array of permission objects
permissions: [
{
label: "Authorize.net"
permission: "dashboard/payments"
group: "Shop Settings"
}
]

0 comments on commit 2682f9e

Please sign in to comment.