Class Socialveo\Core\library\payment\adapter\StripeAdapter

InheritanceSocialveo\Core\library\payment\adapter\StripeAdapter » Socialveo\Core\library\payment\adapter\PaymentAdapter

Class StripeAdapter

Method Details

__construct() public method

Stripe constructor.

public void __construct ( )
throws Exception
charge() public method

Make a charge

public \Stripe\Charge charge ( $user, $data )
$user Socialveo\Core\models\User
$data array
throws Exception
createCustomer() public method

Create stripe customer

public \Stripe\Customer createCustomer ( $user, $currency )
$user Socialveo\Core\models\User
$currency string
throws Exception
subscription() public method

Create a subscription

public \Stripe\Subscription subscription ( $user, $data )
$user Socialveo\Core\models\User
$data array
throws Exception
updatePayment() public method

public void updatePayment ( $payment, $charge, &$history = [] )
$payment
$charge
$history
updateSubscription() public method

Update subscription

public void updateSubscription ( $payment )
$payment Socialveo\Core\models\Payment