Skip to content

Commit

Permalink
Refactor to use Patreon abstract library
Browse files Browse the repository at this point in the history
  • Loading branch information
gregoriohc committed Mar 12, 2018
1 parent 000f43e commit 7a465b5
Show file tree
Hide file tree
Showing 26 changed files with 58 additions and 1,082 deletions.
16 changes: 2 additions & 14 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,19 +4,7 @@ All notable changes to `moneta` will be documented in this file.

Updates should follow the [Keep a CHANGELOG](http://keepachangelog.com/) principles.

## NEXT - YYYY-MM-DD
## v1.0.0 - 2018-03-12

### Added
- Nothing

### Deprecated
- Nothing

### Fixed
- Nothing

### Removed
- Nothing

### Security
- Nothing
- Initial release
2 changes: 0 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
# Moneta

> **:warning: This library is not yet ready for production! :warning:**
[![Latest Version on Packagist][ico-version]][link-packagist]
[![Software License][ico-license]](LICENSE.md)
[![Build Status][ico-travis]][link-travis]
Expand Down
3 changes: 1 addition & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,7 @@
],
"require": {
"php": "~5.6|~7.0",
"illuminate/support": "^5.0,<5.7",
"illuminate/validation": "^5.0,<5.7"
"gregoriohc/protean": "~1.0"
},
"require-dev": {
"phpunit/phpunit" : ">=4.0",
Expand Down
166 changes: 0 additions & 166 deletions src/Common/AbstractGateway.php

This file was deleted.

35 changes: 35 additions & 0 deletions src/Common/AbstractPaymentGateway.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
<?php

namespace Gregoriohc\Moneta\Common;

use Gregoriohc\Protean\Common\AbstractGateway;

/**
* @method bool supportsAuthorize()
* @method bool supportsCapture()
* @method bool supportsPurchase()
* @method bool supportsRefund()
* @method bool supportsVoid()
* @method bool supportsCreatePaymentMethod()
* @method bool supportsDeletePaymentMethod()
* @method bool supportsUpdatePaymentMethod()
* @method bool supportsAcceptNotification()
*/
abstract class AbstractPaymentGateway extends AbstractGateway
{

protected $requestMethods = [
'authorize',
'capture',
'purchase',
'refund',
'void',
'createPaymentMethod',
'deletePaymentMethod',
'updatePaymentMethod',
];

protected $webhookMethods = [
'acceptNotification',
];
}

0 comments on commit 7a465b5

Please sign in to comment.