ConnectorInterface
in
PayU connector interface.
Table of Contents
- __construct() : mixed
- Construct.
- authenticate() : void
- Authenticate connector.
- cancelOrder() : void
- Cancel order.
- createOrder() : CreateResponseDto
- Create new order.
- getOrder() : OrderDto
- Get order details.
Methods
__construct()
Construct.
public
__construct(array<string|int, mixed> $config) : mixed
Parameters
- $config : array<string|int, mixed>
Return values
mixed —authenticate()
Authenticate connector.
public
authenticate() : void
Return values
void —cancelOrder()
Cancel order.
public
cancelOrder(string $orderId) : void
Order cancellation is possible only for statuses before COMPLETED.
Parameters
- $orderId : string
Return values
void —createOrder()
Create new order.
public
createOrder(OrderDto $order) : CreateResponseDto
Parameters
- $order : OrderDto
Return values
CreateResponseDto —getOrder()
Get order details.
public
getOrder(string $orderId) : OrderDto
Parameters
- $orderId : string