Skip to content

Commit

Permalink
0.0.1
Browse files Browse the repository at this point in the history
  • Loading branch information
dmitrii-fediuk committed Apr 18, 2017
0 parents commit 3c564ea
Show file tree
Hide file tree
Showing 22 changed files with 615 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# 2017-03-09
# https://github.com/isaacs/github/issues/170#issuecomment-150489692
root = true
[*]
indent_size = 4
indent_style = tab
13 changes: 13 additions & 0 deletions Block/Info.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<?php
namespace Dfe\Paypal\Block;
// 2017-04-18
/** @final Unable to use the PHP «final» keyword here because of the M2 code generation. */
class Info extends \Df\Payment\Block\Info {
/**
* 2017-04-18
* @override
* @see \Df\Payment\Block\Info::prepare()
* @used-by \Df\Payment\Block\Info::_prepareSpecificInformation()
*/
final protected function prepare() {}
}
35 changes: 35 additions & 0 deletions Charge.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
<?php
namespace Dfe\Paypal;
/**
* 2017-04-18
* @method Method m()
* @method Settings s()
*/
final class Charge extends \Df\PaypalClone\Charge {
/**
* 2017-04-18
* @override
* @see \Df\PaypalClone\Charge::pCharge()
* @used-by \Df\PaypalClone\Charge::p()
* @return array(string => mixed)
*/
protected function pCharge() {$s = $this->s(); return [];}

/**
* 2017-04-18
* @override
* @see \Df\PaypalClone\Charge::k_RequestId()
* @used-by \Df\PaypalClone\Charge::p()
* @return string
*/
protected function k_RequestId() {return '';}

/**
* 2017-04-18
* @override
* @see \Df\PaypalClone\Charge::k_Signature()
* @used-by \Df\PaypalClone\Charge::p()
* @return string
*/
protected function k_Signature() {return '';}
}
4 changes: 4 additions & 0 deletions ConfigProvider.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
<?php
namespace Dfe\Paypal;
// 2017-04-18
final class ConfigProvider extends \Df\Payment\ConfigProvider {}
14 changes: 14 additions & 0 deletions Init/Action.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
<?php
namespace Dfe\Paypal\Init;
// 2017-04-18
/** @method \Dfe\Paypal\Method m() */
final class Action extends \Df\PaypalClone\Init\Action {
/**
* 2017-04-18
* @override
* @see \Df\Payment\Init\Action::redirectUrl()
* @used-by \Df\Payment\Init\Action::action()
* @return string
*/
protected function redirectUrl() {return '';}
}
13 changes: 13 additions & 0 deletions Method.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<?php
namespace Dfe\Paypal;
// 2017-04-18
final class Method extends \Df\PaypalClone\Method {
/**
* 2017-04-18
* @override
* @see \Df\Payment\Method::amountLimits()
* @used-by \Df\Payment\Method::isAvailable()
* @return null
*/
protected function amountLimits() {return null;}
}
81 changes: 81 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,81 @@
An alternative **PayPal** module for **Magento 2** you can get fast support and customizations for.

## How to buy
The extension is not released yet, so there is no way to buy it just now.
The extension will be released before 2017-05-18.

## How to install
### 1. Free installation service
Just order my [free installation service](https://mage2.pro/t/3585).

### 2. Self-installation
```
composer require mage2pro/paypal:*
bin/magento setup:upgrade
rm -rf pub/static/* && bin/magento setup:static-content:deploy <locale, e.g.: en_GB>
rm -rf var/di var/generation && bin/magento setup:di:compile
```
If you have some problems while executing these commands, then check the [detailed instruction](https://mage2.pro/t/263).

## Licensing
It is a paid extension, not free.
You can use it for free for the testing puproses only.
Please read the [testing policy](https://mage2.pro/t/topic/2590) before installation.

## Support
- [The extension's **forum** branch](https://mage2.pro/c/extensions/paypal).
- [Where and how to report a Mage2.PRO extension's issue?](https://mage2.pro/t/2034)
- I also provide a **[generic Magento 2 support](https://mage2.pro/t/topic/755)** and [Magento 2 installation service](https://mage2.pro/t/748).

## Want to be notified about the extension's updates?
- [Subscribe](https://mage2.pro/t/2540) to the extension's [forum branch](https://mage2.pro/c/extensions/paypal).
- Subscribe to my [Twitter](https://twitter.com/mage2_pro) and [YouTube](https://www.youtube.com/channel/UCvlDAZuj01_b92pzRi69LeQ) channels.

## Need a new feature?
I provide the [**customization service**](https://mage2.pro/t/2020) for my payment extensions.

## Need another payment extension for Magento 2?

- «[**2Checkout**](https://mage2.pro/c/extensions/2checkout)» payment extension.
- «[**歐付寶 allPay**](https://mage2.pro/c/extensions/allpay)» payment extension (Taiwan).
- «[**Checkout.com**](https://mage2.pro/c/extensions/checkout-com)» payment extension.
- «[**Paypal**](https://mage2.pro/c/extensions/paypal)» payment extension (Philippines).
- «[**Ginger Payments**](https://mage2.pro/c/extensions/ginger-payments)» extension (the Netherlands, Belgium).
- «[**iPay88**](https://mage2.pro/c/extensions/ipay88)» payment extension (Malaysia, Indonesia, Philippines, Thailand, Singapore, China).
- «[**iyzico**](https://mage2.pro/c/extensions/iyzico)» payment extension (Turkey).
- «[**Kassa Compleet**](https://mage2.pro/c/extensions/kassa-compleet)» payment extension by ING Bank (the Netherlands).
- «[**Klarna**](https://mage2.pro/c/extensions/klarna)» payment extension (Austria, Denmark, Finland, Germany, Norway, Sweden).
- «[**Moip**](https://mage2.pro/c/extensions/moip)» payment extension (Brazil).
- «[**mPAY24**](https://mage2.pro/c/extensions/mpay24)» payment extension (Austria, Germany).
- «[**Omise**](https://mage2.pro/c/extensions/omise)» payment extension (Thailand, Japan).
- «[**Paymill**](https://mage2.pro/c/extensions/paymill)» payment extension (the European Union).
- «[**PayPal**](https://mage2.pro/c/extensions/paypal)»: an alternative module you can get fast support and customizations for.
- «[**Paystation**](https://mage2.pro/c/extensions/paystation)» payment extension (New Zealand).
- «[**Robokassa**](https://mage2.pro/c/extensions/robokassa)» payment extension (Russia).
- «[**SecurePay**](https://mage2.pro/c/extensions/securepay)» payment extension (Australia).
- «[**Spryng**](https://mage2.pro/c/extensions/spryng)» payment extension (the European Union).
- «[**Square**](https://mage2.pro/c/extensions/square)» payment extension (USA, Canada).
- «[**Stripe**](https://mage2.pro/c/extensions/stripe)» payment extension.
- «[**Yandex.Kassa**](https://mage2.pro/c/extensions/yandex-kassa)» (as known as Yandex.Checkout, Яндекс.Касса) payment extension (Russia, Armenia, Azerbaijan, Belarus, Georgia, Kazakhstan, Kyrgyzstan, Latvia, Moldova, Tajikistan).

## See also my other Magento 2 extensions:

- «[**Price Format**](https://mage2.pro/c/extensions/price-format)» (set a custom display format for the prices and other currency values: discounts, taxes, sales amounts).
- «[**Sales Documents Numeration**](https://mage2.pro/c/extensions/sales-documents-numeration)» (use a custom numeration for the sales documents: orders, invoices, shipments, and credit memos).
- «[**Login with Amazon**](https://mage2.pro/c/extensions/amazon-login)» (a single sign-on extension).
- «[**Backend Login with Google Account**](https://mage2.pro/c/extensions/google-backend-login)» (a single sign-on extension for the Magento 2 backend).
- «[**Facebook Login**](https://mage2.pro/c/extensions/facebook-login)» (a single sign-on extension).
- «[**Blackbaud NetCommunity**](https://mage2.pro/c/extensions/blackbaud-netcommunity)» (an integration with an online fundraising software).
- «[**Markdown Editor**](https://mage2.pro/c/extensions/markdown)» (an alternative content editor for the Magento 2 backend).
- «[**Twitter Timeline**](https://mage2.pro/c/extensions/twitter-timeline)» (shows your latest tweets in your store's frontend sidebar).
- «[**Facebook Like & Share**](https://mage2.pro/c/extensions/facebook-like)» (shows the Facebook's «Like» and «Share» buttons on the frontend product pages).
- «[**Salesforce**](https://mage2.pro/c/extensions/salesforce)» (an integration with a CRM software).

## Need a custom payment extension?
I provide a [custom payment gateway integration service](https://mage2.pro/t/917).

## Want to get the full rights on my extension?
It is possible: the price depends on a extension and starts from $5.000.
You will get 2 years of support, updates, and free installation service for all your clients.


5 changes: 5 additions & 0 deletions Settings.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<?php
namespace Dfe\Paypal;
// 2017-04-18
/** @method static Settings s() */
final class Settings extends \Df\Payment\Settings {}
26 changes: 26 additions & 0 deletions Signer.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
<?php
namespace Dfe\Paypal;
/**
* 2017-04-18
* @see \Dfe\Paypal\Signer\Request
* @see \Dfe\Paypal\Signer\Response
* @method Settings s()
*/
abstract class Signer extends \Df\PaypalClone\Signer {
/**
* 2017-04-18
* @used-by sign()
* @see \Dfe\Paypal\Signer\Request::values()
* @see \Dfe\Paypal\Signer\Response::values()
* @return string[]
*/
abstract protected function values();

/**
* 2017-04-18
* @override
* @see \Df\PaypalClone\Signer::sign()
* @return string
*/
final protected function sign() {return implode($this->values());}
}
13 changes: 13 additions & 0 deletions Signer/Request.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<?php
namespace Dfe\Paypal\Signer;
// 2017-04-18
final class Request extends \Dfe\Paypal\Signer {
/**
* 2017-04-18
* @override
* @see \Dfe\Paypal\Signer::values()
* @used-by \Dfe\Paypal\Signer::sign()
* @return string[]
*/
protected function values() {return dfa_select_ordered($this->v(), []);}
}
13 changes: 13 additions & 0 deletions Signer/Response.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<?php
namespace Dfe\Paypal\Signer;
// 2017-04-18
final class Response extends \Dfe\Paypal\Signer {
/**
* 2017-04-18
* @override
* @see \Dfe\Paypal\Signer::values()
* @used-by \Dfe\Paypal\Signer::sign()
* @return string[]
*/
protected function values() {return dfa_select_ordered($this->v(), []);}
}
30 changes: 30 additions & 0 deletions composer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
{
"name": "mage2pro/paypal"
,"version": "0.0.1"
,"description": "An alternative PayPal module for Magento 2 you can get fast support and customizations for"
,"type": "magento2-module"
,"homepage": "https://mage2.pro/c/extensions/paypal"
,"license": "proprietary"
,"authors": [{
"name": "Dmitry Fedyuk",
"email": "admin@mage2.pro",
"homepage": "https://mage2.pro/users/dmitry_fedyuk",
"role": "Developer"
}]
,"require": {"mage2pro/core": ">=2.5.6"}
,"autoload": {"files": ["registration.php"], "psr-4": {"Dfe\\Paypal\\": ""}}
,"keywords": [
"API"
,"Bank card"
,"Credit card"
,"PayPal"
,"eCommerce"
,"Magento"
,"Magento 2"
,"Magento extension"
,"Payment"
,"Payment authorization"
,"Payment integration"
,"Payment gateway"
]
}
Loading

0 comments on commit 3c564ea

Please sign in to comment.