PaymentTypeInterface
interface PaymentTypeInterface (View source)
Methods
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.
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, null|string $notes = null)
Refund a transaction for a given amount.
PaymentCapture
capture(Transaction $transaction, int $amount = 0)
Capture an amount for a transaction.