-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Updated for package-registry-refactor
- Loading branch information
Showing
4 changed files
with
48 additions
and
26 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" | ||
}); | ||
|
||
|
@@ -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", | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" | ||
} | ||
] |