Method CreateOrder
CreateOrder(AfterPayCreateOrderRequest, AfterPayCallContext)
Creates a new AfterPay order, which is basically a request for payment using a pre-approval code.
Declaration
Task<AfterPayOrder> CreateOrder(AfterPayCreateOrderRequest request, AfterPayCallContext requestContext)
Parameters
| Type | Name | Description |
|---|---|---|
| AfterPayCreateOrderRequest | request | A AfterPayCreateOrderRequest containing details of the order to be created. |
| AfterPayCallContext | requestContext | A AfterPayCallContext instance containing additional details required to make the request. |
Returns
| Type | Description |
|---|---|
| Task<AfterPayOrder> | An AfterPayOrder created within the AfterPay system. |