public function create(array $params)
    {
        if (!array_key_exists('amount', $params) ||
            !array_key_exists('currency', $params) ||
            !array_key_exists('description', $params) ||
            !array_key_exists('order_id', $params) ||
            !array_key_exists('payment_options', $params) ||
            !array_key_exists('type', $params)
        ) {
            throw new \InvalidArgumentException('Invalid data provided.');
        }

        return $this->post('/orders', [], $params);
    }
public function create(array $params)
    {
        if (!array_key_exists('amount', $params) ||
            !array_key_exists('currency', $params) ||
            !array_key_exists('description', $params) ||
            !array_key_exists('order_id', $params) ||
            !array_key_exists('payment_options', $params) ||
            !array_key_exists('type', $params)
        ) {
            throw new \InvalidArgumentException('Invalid data provided.');
        }

        return $this->post('/orders', [], $params);
    }
public function create ( array $ params ) { if ( ! array_key_exists ( 'amount' , $ params ) || ! array_key_exists ( 'currency' , $ params ) || ! array_key_exists ( 'description' , $ params ) || ! array_key_exists ( 'order_id' , $ params ) || ! array_key_exists ( 'payment_options' , $ params ) || ! array_key_exists ( 'type' , $ params ) ) { throw new \ InvalidArgumentException ( 'Invalid data provided.' ) ; } return $ this -> post ( '/orders' , [ ] , $ params ) ; }
Create order.

@param array $params
@return Object
Create order .