From e3dc76d1fa9d7485ace11b264b95dec1c6b733ca Mon Sep 17 00:00:00 2001 From: Flavio Copes Date: Sun, 7 Feb 2016 18:36:25 +0100 Subject: [PATCH] Prepare for the release --- .gitignore | 2 ++ CHANGELOG.md | 5 ++++ LICENSE | 21 ++++++++++++++ README.md | 17 ++++++++++++ blueprints.yaml | 60 ++++++++++++++++++++++++++++++++++++++++ composer.json | 2 +- shoppingcart-paypal.yaml | 1 - 7 files changed, 106 insertions(+), 2 deletions(-) create mode 100644 .gitignore create mode 100644 CHANGELOG.md create mode 100644 LICENSE create mode 100644 README.md create mode 100644 blueprints.yaml diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..1f1025f --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +.idea +.DS_Store \ No newline at end of file diff --git a/CHANGELOG.md b/CHANGELOG.md new file mode 100644 index 0000000..be8face --- /dev/null +++ b/CHANGELOG.md @@ -0,0 +1,5 @@ +# v1.0.0 +## 07-02-2016 + +1. [](#new) + * First release of the PayPal Express Plugin \ No newline at end of file diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000..b277311 --- /dev/null +++ b/LICENSE @@ -0,0 +1,21 @@ +The MIT License (MIT) + +Copyright (c) 2015 - 2016 Flavio Copes + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. diff --git a/README.md b/README.md new file mode 100644 index 0000000..53f75dd --- /dev/null +++ b/README.md @@ -0,0 +1,17 @@ +# PayPal add-on for the Grav Shopping Cart + +! Make sure you have a PayPal Premier / Business account or the plugin will not work. + +This plugin adds PayPal Express Checkout to your Shopping Cart. + +# Installation + +To install this plugin, just download the zip version of this repository and unzip it under `/your/site/grav/user/plugins`. Then, rename the folder to `shoppingcart-paypal`. + +You should now have all the plugin files under + + /your/site/grav/user/plugins/shoppingcart-paypal + +# Usage + +In the Admin, go to Plugins and configure the plugin with the required information, then enable it. diff --git a/blueprints.yaml b/blueprints.yaml new file mode 100644 index 0000000..f89d1c8 --- /dev/null +++ b/blueprints.yaml @@ -0,0 +1,60 @@ +name: Shopping Cart Plugin PayPal Express +version: 1.0.0 +description: "Add PayPal Express checkout to the Grav Shopping Cart Plugin. Requires a PayPal Premier / Business account." +icon: shopping-cart +author: + name: Flavio Copes + email: copesc@gmail.com + url: http://flaviocopes.com +homepage: http://gravshoppingcart.com +keywords: shoppingcart, ecommerce, e-commerce, plugin, shop, cart, paypal +readme: https://github.com/flaviocopes/grav-plugin-shoppingcart/blob/develop/README.md +bugs: https://github.com/flaviocopes/grav-plugin-shoppingcart/issues +license: MIT + +form: + validation: loose + fields: + enabled: + type: toggle + label: PLUGIN_ADMIN.PLUGIN_STATUS + highlight: 1 + default: 0 + options: + 1: PLUGIN_ADMIN.ENABLED + 0: PLUGIN_ADMIN.DISABLED + validate: + type: bool + + payment.methods.paypal_express.name: + type: hidden + default: 'PayPal Express' + + payment.methods.paypal_express.name: + type: spacer + text: See this link on how to fill the following required fields + + payment.methods.paypal_express.username: + type: text + default: '' + label: Username + size: medium + placeholder: The PayPal Username + help: The PayPal Username + + payment.methods.paypal_express.password: + type: text + default: '' + label: Password + size: medium + placeholder: The PayPal Password + help: The PayPal Password + + payment.methods.paypal_express.signature: + type: text + default: '' + label: Signature + size: medium + placeholder: The PayPal Signature + help: The PayPal Signature + diff --git a/composer.json b/composer.json index c7f27cf..2c79cd4 100644 --- a/composer.json +++ b/composer.json @@ -1,5 +1,5 @@ { - "name": "flaviocopes/grav-plugin-shoppingcart-pro", + "name": "flaviocopes/grav-plugin-shoppingcart-paypal", "description": "PayPal Plugin for Grav Shopping Cart", "license": "MIT", "authors": [ diff --git a/shoppingcart-paypal.yaml b/shoppingcart-paypal.yaml index 6ec756f..492bff8 100644 --- a/shoppingcart-paypal.yaml +++ b/shoppingcart-paypal.yaml @@ -3,7 +3,6 @@ payment: methods: paypal_express: # http://www.putler.com/support/faq/how-to-get-paypal-api-username-password-and-signature-information/ name: "PayPal Express" - enabled: true username: '' # Add your own password: '' # Add your own signature: '' # Add your own