abstract class AbstractPayment implements PaymentTypeInterface (View source)

Properties

protected Cart $cart

The instance of the cart.

protected Order $order

The instance of the order.

protected $config

Any config for this payment provider.

protected $data

Data storage.

Methods

cart(Cart $cart)

Set the cart.

order(Order $order)

Set the order.

withData(array $data)

Set any data the provider might need.

setConfig(array $config)

Set any configuration on the driver.

Details

PaymentTypeInterface cart(Cart $cart)

Set the cart.

Parameters

Cart $cart

Return Value

PaymentTypeInterface

PaymentTypeInterface order(Order $order)

Set the order.

Parameters

Order $order

Return Value

PaymentTypeInterface

PaymentTypeInterface withData(array $data)

Set any data the provider might need.

Parameters

array $data

Return Value

PaymentTypeInterface

PaymentTypeInterface setConfig(array $config)

Set any configuration on the driver.

Parameters

array $config

Return Value

PaymentTypeInterface