mirror of
https://we.phorge.it/source/phorge.git
synced 2024-12-12 08:36:13 +01:00
19 lines
431 B
PHP
19 lines
431 B
PHP
|
<?php
|
||
|
|
||
|
abstract class PhortunePaymentProvider {
|
||
|
|
||
|
/**
|
||
|
* Determine of a provider can handle a payment method.
|
||
|
*
|
||
|
* @return bool True if this provider can apply charges to the payment
|
||
|
* method.
|
||
|
*/
|
||
|
abstract public function canHandlePaymentMethod(
|
||
|
PhortunePaymentMethod $method);
|
||
|
|
||
|
abstract protected function executeCharge(
|
||
|
PhortunePaymentMethod $payment_method,
|
||
|
PhortuneCharge $charge);
|
||
|
|
||
|
}
|