OfflinePayment
class OfflinePayment extends AbstractPayment (View source)
Properties
protected Cart | $cart | The instance of the cart. |
from AbstractPayment |
protected Order | $order | The instance of the order. |
from AbstractPayment |
protected | $config | Any config for this payment provider. |
from AbstractPayment |
protected | $data | Data storage. |
from AbstractPayment |
Methods
withData(array $data)
Set any data the provider might need.
from
AbstractPayment
setConfig(array $config)
Set any configuration on the driver.
from
AbstractPayment
authorize()
Authorize the payment.
refund(Transaction $transaction, int $amount = 0, null|string $notes = null)
Refund a transaction for a given amount.
Details
PaymentTypeInterface
cart(Cart $cart)
Set the cart.
PaymentTypeInterface
order(Order $order)
Set the order.
PaymentTypeInterface
withData(array $data)
Set any data the provider might need.
PaymentTypeInterface
setConfig(array $config)
Set any configuration on the driver.
PaymentAuthorize
authorize()
Authorize the payment.
PaymentRefund
refund(Transaction $transaction, int $amount = 0, null|string $notes = null)
Refund a transaction for a given amount.
PaymentCapture
capture(Transaction $transaction, int $amount = 0)
Capture an amount for a transaction.