class PaymentStripe implements PaymentStripeInterface

PaymentStripe class

Properties

private ConfigServiceInterface $configService Stores ConfigServiceInterface
private Request $request Stores current Request

Methods

__construct(ConfigServiceInterface $configService, RequestStack $requestStack)

No description

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 46
__construct(ConfigServiceInterface $configService, RequestStack $requestStack)

Parameters

ConfigServiceInterface $configService
RequestStack $requestStack

at line 58
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 132
string getPublishableKey(bool $live = false)

Gets the Stripe publishable key

Parameters

bool $live

Return Value

string

Exceptions

InvalidArgumentException

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

Gets the Stripe Secret key

Parameters

bool $live

Return Value

string

Exceptions

InvalidArgumentException