CreateOrder
in package
Table of Contents
- createOrder() : mixed
- This is the sample function to create an order. It uses the JSON body returned by buildRequestBody() to create an order.
- buildRequestBody() : mixed
- Setting up the JSON request body for creating the order. Set the intent in the request body to "AUTHORIZE" for authorize intent flow.
Methods
createOrder()
This is the sample function to create an order. It uses the JSON body returned by buildRequestBody() to create an order.
public
static createOrder([mixed $debug = false ]) : mixed
Parameters
- $debug : mixed = false
Return values
mixed —buildRequestBody()
Setting up the JSON request body for creating the order. Set the intent in the request body to "AUTHORIZE" for authorize intent flow.
private
static buildRequestBody() : mixed