interface PaymentStripeInterface

Interface to be called for DI for PaymentStripeInterface related services

Methods

true|array
charge(Payment $payment)

Charges the payment to Stripe server - This will charge the user's card!

string
getPublishableKey(bool $live = false)

Gets the Stripe publishable key

string
getSecretKey(bool $live = false)

Gets the Stripe Secret key

Details

at line 26
true|array charge(Payment $payment)

Charges the payment to Stripe server - This will charge the user's card!

Parameters

Payment $payment

Return Value

true|array

at line 33
string getPublishableKey(bool $live = false)

Gets the Stripe publishable key

Parameters

bool $live

Return Value

string

Exceptions

InvalidArgumentException

at line 40
string getSecretKey(bool $live = false)

Gets the Stripe Secret key

Parameters

bool $live

Return Value

string

Exceptions

InvalidArgumentException