public function createCashOnDeliveryOrder(
        $amount,
        $currency,
        array $paymentMethodDetails = [],
        $description = null,
        $merchantOrderId = null,
        $returnUrl = null,
        $expirationPeriod = null,
        $customer = null,
        $extra = null,
        $webhookUrl = null
    ) {
        return $this->postOrder(
            Order::createWithCod(
                $amount,
                $currency,
                $paymentMethodDetails,
                $description,
                $merchantOrderId,
                $returnUrl,
                $expirationPeriod,
                $customer,
                $extra,
                $webhookUrl
            )
        );
    }
public function createCashOnDeliveryOrder(
        $amount,
        $currency,
        array $paymentMethodDetails = [],
        $description = null,
        $merchantOrderId = null,
        $returnUrl = null,
        $expirationPeriod = null,
        $customer = null,
        $extra = null,
        $webhookUrl = null
    ) {
        return $this->postOrder(
            Order::createWithCod(
                $amount,
                $currency,
                $paymentMethodDetails,
                $description,
                $merchantOrderId,
                $returnUrl,
                $expirationPeriod,
                $customer,
                $extra,
                $webhookUrl
            )
        );
    }
public function createCashOnDeliveryOrder ( $ amount , $ currency , array $ paymentMethodDetails = [ ] , $ description = null , $ merchantOrderId = null , $ returnUrl = null , $ expirationPeriod = null , $ customer = null , $ extra = null , $ webhookUrl = null ) { return $ this -> postOrder ( Order :: createWithCod ( $ amount , $ currency , $ paymentMethodDetails , $ description , $ merchantOrderId , $ returnUrl , $ expirationPeriod , $ customer , $ extra , $ webhookUrl ) ) ; }
Create a new Cash On Delivery order.

@param integer $amount Amount in cents.
@param string $currency A valid currency code.
@param array $paymentMethodDetails An array of extra payment method details.
@param string $description A description of the order.
@param string $merchantOrderId A merchant-defined order identifier.
@param string $returnUrl The return URL.
@param string $expirationPeriod The expiration period as an ISO 8601 duration
@param array $customer Customer information.
@param array $extra Extra information.
@param string $webhookUrl The webhook URL.

@return Order The newly created order.
Create a new Cash On Delivery order .