AfterbuyCheckoutSuccessContentControl
extends AfterbuyCheckoutSuccessContentControl_parent
in package
Class AfterbuyCheckoutSuccessContentControl
Table of Contents
- proceed() : mixed
- callAfterbuyApi() : void
- Initializes the AfterbuyOrderSender and sends the order information to Afterbuy immediately.
- getOrderId() : OrderId
- Returns the last order id.
- isPaidOrUnpaid() : bool
- Checks whether the order status of the order is considered paid or unpaid for Afterbuy.
- getContextForThrowable() : array<string|int, mixed>
- Creates a context array from any throwable.
- getServices() : array<string|int, mixed>|null
- Provides afterbuy services.
Methods
proceed()
public
proceed() : mixed
Return values
mixed —callAfterbuyApi()
Initializes the AfterbuyOrderSender and sends the order information to Afterbuy immediately.
protected
callAfterbuyApi(OrderId $orderId) : void
Parameters
- $orderId : OrderId
Return values
void —getOrderId()
Returns the last order id.
protected
getOrderId() : OrderId
Return values
OrderId —isPaidOrUnpaid()
Checks whether the order status of the order is considered paid or unpaid for Afterbuy.
protected
isPaidOrUnpaid(AfterbuyCheckPaidStatusService $checkPaidService, OrderId $orderId) : bool
Parameters
- $checkPaidService : AfterbuyCheckPaidStatusService
- $orderId : OrderId
Return values
bool —getContextForThrowable()
Creates a context array from any throwable.
private
getContextForThrowable(Throwable $throwable) : array<string|int, mixed>
Serializes the throwable to an array.
Parameters
- $throwable : Throwable
Return values
array<string|int, mixed> —getServices()
Provides afterbuy services.
private
getServices() : array<string|int, mixed>|null