public function getEncryptedParams( // parameter values
        $invoice_id,
        $amount,
        $currency = null,
        $language = null,
        $user_field = null,
        $mode = null,
        $salutation = null,
        $name = null,
        $street = null,
        $street2 = null,
        $zip = null,
        $city = null,
        $country = null,
        $email = null,
        $phone = null,
        $success = null,
        $error = null,
        $confirmation = null,
        // parameters names
        $invoice_idVar = "TID",
        $amountVar = "AMOUNT",
        $currencyVar = "CURRENCY",
        $languageVar = "LANGUAGE",
        $user_fieldVar = "USER_FIELD",
        $modeVar = "MODE",
        $salutationVar = "SALUTATION",
        $nameVar = "NAME",
        $streetVar = "STREET",
        $street2Var = "STREET2",
        $zipVar = "ZIP",
        $cityVar = "CITY",
        $countryVar = "COUNTRY",
        $emailVar = "EMAIL",
        $phoneVar = "PHONE",
        $successVar = "SUCCESS_URL",
        $errorVar = "ERROR_URL",
        $confirmationVar = "CONFIRMATION_URL"
    ) {

        if (!$this->mpay24Sdk) {
            die("You are not allowed to define a constructor in the child class of Mpay24flexLink!");
        }

        $params[$invoice_idVar] = $invoice_id;
        $params[$amountVar]     = $amount;

        if ($currency == null) {
            $currency = "EUR";
        }

        $params[$currencyVar] = $currency;

        if ($language == null) {
            $language = "DE";
        }

        $params[$languageVar]   = $language;
        $params[$user_fieldVar] = $user_field;
/*
        if ($description == null) {               //TODO: undefined variable $description => check where this is coming from
            $description = "Rechnungsnummer:";
        }

        $params[$descriptionVar] = $description;    //TODO: undefined variable $descriptionVar => check where this is coming from
*/
        if ($mode == null) {
            $mode = "ReadWrite";
        }

        $params[$modeVar] = $mode;

        $params[$nameVar]    = $name;
        $params[$streetVar]  = $street;
        $params[$street2Var] = $street2;
        $params[$zipVar]     = $zip;
        $params[$cityVar]    = $city;

        if ($country == null) {
            $country = "AT";
        }

        $params[$countryVar] = $country;

        $params[$emailVar]        = $email;
        $params[$successVar]      = $success;
        $params[$errorVar]        = $error;
        $params[$confirmationVar] = $confirmation;

        $parameters = $this->mpay24Sdk->flexLink($params);

        return $parameters;
    }
public function getEncryptedParams( // parameter values
        $invoice_id,
        $amount,
        $currency = null,
        $language = null,
        $user_field = null,
        $mode = null,
        $salutation = null,
        $name = null,
        $street = null,
        $street2 = null,
        $zip = null,
        $city = null,
        $country = null,
        $email = null,
        $phone = null,
        $success = null,
        $error = null,
        $confirmation = null,
        // parameters names
        $invoice_idVar = "TID",
        $amountVar = "AMOUNT",
        $currencyVar = "CURRENCY",
        $languageVar = "LANGUAGE",
        $user_fieldVar = "USER_FIELD",
        $modeVar = "MODE",
        $salutationVar = "SALUTATION",
        $nameVar = "NAME",
        $streetVar = "STREET",
        $street2Var = "STREET2",
        $zipVar = "ZIP",
        $cityVar = "CITY",
        $countryVar = "COUNTRY",
        $emailVar = "EMAIL",
        $phoneVar = "PHONE",
        $successVar = "SUCCESS_URL",
        $errorVar = "ERROR_URL",
        $confirmationVar = "CONFIRMATION_URL"
    ) {

        if (!$this->mpay24Sdk) {
            die("You are not allowed to define a constructor in the child class of Mpay24flexLink!");
        }

        $params[$invoice_idVar] = $invoice_id;
        $params[$amountVar]     = $amount;

        if ($currency == null) {
            $currency = "EUR";
        }

        $params[$currencyVar] = $currency;

        if ($language == null) {
            $language = "DE";
        }

        $params[$languageVar]   = $language;
        $params[$user_fieldVar] = $user_field;
/*
        if ($description == null) {               //TODO: undefined variable $description => check where this is coming from
            $description = "Rechnungsnummer:";
        }

        $params[$descriptionVar] = $description;    //TODO: undefined variable $descriptionVar => check where this is coming from
*/
        if ($mode == null) {
            $mode = "ReadWrite";
        }

        $params[$modeVar] = $mode;

        $params[$nameVar]    = $name;
        $params[$streetVar]  = $street;
        $params[$street2Var] = $street2;
        $params[$zipVar]     = $zip;
        $params[$cityVar]    = $city;

        if ($country == null) {
            $country = "AT";
        }

        $params[$countryVar] = $country;

        $params[$emailVar]        = $email;
        $params[$successVar]      = $success;
        $params[$errorVar]        = $error;
        $params[$confirmationVar] = $confirmation;

        $parameters = $this->mpay24Sdk->flexLink($params);

        return $parameters;
    }
public function getEncryptedParams ( // parameter values $ invoice_id , $ amount , $ currency = null , $ language = null , $ user_field = null , $ mode = null , $ salutation = null , $ name = null , $ street = null , $ street2 = null , $ zip = null , $ city = null , $ country = null , $ email = null , $ phone = null , $ success = null , $ error = null , $ confirmation = null , // parameters names $ invoice_idVar = "TID" , $ amountVar = "AMOUNT" , $ currencyVar = "CURRENCY" , $ languageVar = "LANGUAGE" , $ user_fieldVar = "USER_FIELD" , $ modeVar = "MODE" , $ salutationVar = "SALUTATION" , $ nameVar = "NAME" , $ streetVar = "STREET" , $ street2Var = "STREET2" , $ zipVar = "ZIP" , $ cityVar = "CITY" , $ countryVar = "COUNTRY" , $ emailVar = "EMAIL" , $ phoneVar = "PHONE" , $ successVar = "SUCCESS_URL" , $ errorVar = "ERROR_URL" , $ confirmationVar = "CONFIRMATION_URL" ) { if ( ! $ this -> mpay24Sdk ) { die ( "You are not allowed to define a constructor in the child class of Mpay24flexLink!" ) ; } $ params [ $ invoice_idVar ] = $ invoice_id ; $ params [ $ amountVar ] = $ amount ; if ( $ currency == null ) { $ currency = "EUR" ; } $ params [ $ currencyVar ] = $ currency ; if ( $ language == null ) { $ language = "DE" ; } $ params [ $ languageVar ] = $ language ; $ params [ $ user_fieldVar ] = $ user_field ; /*
        if ($description == null) {               //TODO: undefined variable $description => check where this is coming from
            $description = "Rechnungsnummer:";
        }

        $params[$descriptionVar] = $description;    //TODO: undefined variable $descriptionVar => check where this is coming from
*/ if ( $ mode == null ) { $ mode = "ReadWrite" ; } $ params [ $ modeVar ] = $ mode ; $ params [ $ nameVar ] = $ name ; $ params [ $ streetVar ] = $ street ; $ params [ $ street2Var ] = $ street2 ; $ params [ $ zipVar ] = $ zip ; $ params [ $ cityVar ] = $ city ; if ( $ country == null ) { $ country = "AT" ; } $ params [ $ countryVar ] = $ country ; $ params [ $ emailVar ] = $ email ; $ params [ $ successVar ] = $ success ; $ params [ $ errorVar ] = $ error ; $ params [ $ confirmationVar ] = $ confirmation ; $ parameters = $ this -> mpay24Sdk -> flexLink ( $ params ) ; return $ parameters ; }
Encrypt the parameters you want to post to mPAY24 - see details

@param string $invoice_id      The invoice ID of the transaction
@param string $amount          The amount which should be invoiced in 12.34
@param string $currency        length = 3 (ISO currency code, e. g. "EUR")
@param string $language        length = 2 (ISO currency code, e. g. "DE")
@param string $user_field      A placeholder for free chosen user information
@param string $mode            BillingAddress Mode (ReadWrite or ReadOnly)
@param string $salutation      Salutation of the customer
@param string $name            Name of the customer
@param string $street          Billing address street
@param string $street2         Billing address street2
@param string $zip             Billing address zip
@param string $city            Billing address city
@param string $country         Billing address country, length = 2 (ISO country code, e. g. "AT")
@param string $email           Billing address e-mail
@param string $phone           Billing address phone
@param string $success         Success-URL
@param string $error           Error-URL
@param string $confirmation    Confirmation-URL
@param string $invoice_idVar   Default = TID
@param string $amountVar       Default = AMOUNT
@param string $currencyVar     Default = CURRENCY
@param string $languageVar     Default = LANGUAGE
@param string $user_fieldVar   Default = USER_FIELD
@param string $modeVar         Default = MODE
@param string $salutationVar   Default = SALUTATION
@param string $nameVar         Default = NAME
@param string $streetVar       Default = STREET
@param string $street2Var      Default = STREET2
@param string $zipVar          Default = ZIP
@param string $cityVar         Default = CITY
@param string $countryVar      Default = COUNTRY
@param string $emailVar        Default = EMAIL
@param string $phoneVar        Default = PHONE
@param string $successVar      Default = SUCCCESS_URL
@param string $errorVar        Default = ERROR_URL
@param string $confirmationVar Default = CONFIRMATION_URL

@return string
Encrypt the parameters you want to post to mPAY24 - see details