interface PaymentTypeInterface (View source)

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.

authorize()

Authorize the payment.

refund(Transaction $transaction, int $amount, null|string $notes = null)

Refund a transaction for a given amount.

capture(Transaction $transaction, int $amount = 0)

Capture an amount for a transaction.

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

PaymentAuthorize authorize()

Authorize the payment.

Return Value

PaymentAuthorize

PaymentRefund refund(Transaction $transaction, int $amount, null|string $notes = null)

Refund a transaction for a given amount.

Parameters

Transaction $transaction
int $amount
null|string $notes

Return Value

PaymentRefund

PaymentCapture capture(Transaction $transaction, int $amount = 0)

Capture an amount for a transaction.

Parameters

Transaction $transaction
int $amount

Return Value

PaymentCapture