src/Order.php
public static function createWithSofort(
        $amount,
        $currency,
        array $paymentMethodDetails = [],
        $description = null,
        $merchantOrderId = null,
        $returnUrl = null,
        $expirationPeriod = null,
        $customer = null,
        $extra = null,
        $webhookUrl = null
    ) {
        return static::create(
            $amount,
            $currency,
            PaymentMethod::SOFORT,
            $paymentMethodDetails,
            $description,
            $merchantOrderId,
            $returnUrl,
            $expirationPeriod,
            $customer,
            $extra,
            $webhookUrl
        );
    }
public static function createWithSofort(
        $amount,
        $currency,
        array $paymentMethodDetails = [],
        $description = null,
        $merchantOrderId = null,
        $returnUrl = null,
        $expirationPeriod = null,
        $customer = null,
        $extra = null,
        $webhookUrl = null
    ) {
        return static::create(
            $amount,
            $currency,
            PaymentMethod::SOFORT,
            $paymentMethodDetails,
            $description,
            $merchantOrderId,
            $returnUrl,
            $expirationPeriod,
            $customer,
            $extra,
            $webhookUrl
        );
    }
Create a new Order with the SOFORT payment method.

@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