Abstract Class Socialveo\Core\library\payment\adapter\PaymentAdapter

InheritanceSocialveo\Core\library\payment\adapter\PaymentAdapter
SubclassesSocialveo\Core\library\payment\adapter\PayPalAdapter, Socialveo\Core\library\payment\adapter\StripeAdapter

Class PaymentAdapter

Method Details

__construct() public abstract method

PaymentAdapter constructor.

public abstract void __construct ( )
charge() public abstract method

Charge a payment

public abstract mixed charge ( $user, $data )
$user Socialveo\Core\models\User
$data array
subscription() public abstract method

Create a subscription

public abstract mixed subscription ( $user, $data )
$user
$data
updatePayment() public abstract method

Update payment after form validation

public abstract Socialveo\Core\models\Payment updatePayment ( $payment, $charge, &$history = [] )
$payment Socialveo\Core\models\Payment
$charge mixed
$history array
updateSubscription() public abstract method

Update subscription

public abstract void updateSubscription ( $payment )
$payment \Socialveo\Core\library\payment\adapter\Payment