public static function confirmPayment($options)
    {
        $api = new Api\ConfirmPayment();

        if (isset($options['hash'])) {
            $api->setHash($options['hash']);
        }
        if (isset($options['emailAddress'])) {
            $api->setEmailAddress($options['emailAddress']);
        }
        if (isset($options['languageId'])) {
            $api->setLanguageId($options['languageId']);
        }

        $result = $api->doRequest();
        return new Result\ConfirmPayment($result);
    }
public static function confirmPayment($options)
    {
        $api = new Api\ConfirmPayment();

        if (isset($options['hash'])) {
            $api->setHash($options['hash']);
        }
        if (isset($options['emailAddress'])) {
            $api->setEmailAddress($options['emailAddress']);
        }
        if (isset($options['languageId'])) {
            $api->setLanguageId($options['languageId']);
        }

        $result = $api->doRequest();
        return new Result\ConfirmPayment($result);
    }
public static function confirmPayment ( $ options ) { $ api = new Api \ ConfirmPayment ( ) ; if ( isset ( $ options [ 'hash' ] ) ) { $ api -> setHash ( $ options [ 'hash' ] ) ; } if ( isset ( $ options [ 'emailAddress' ] ) ) { $ api -> setEmailAddress ( $ options [ 'emailAddress' ] ) ; } if ( isset ( $ options [ 'languageId' ] ) ) { $ api -> setLanguageId ( $ options [ 'languageId' ] ) ; } $ result = $ api -> doRequest ( ) ; return new Result \ ConfirmPayment ( $ result ) ; }
Confirm the payment

When email address is set, the customer will receive a receipt of the transaction.
The language can be set to define the language of the email

Options:
['hash'] string the hash of the transaction
['emailAddress'] string the email address to send the receipt to
['languageId'] int the languageId
1. Dutch
2. Flemish
4. English
5. German
6. French
8. Spanish
9. Italian

@param array $options (See above)
@return Result\ConfirmPayment
Confirm the payment