ext/bestitamazonpay4oxid_oxorder.php
public function getAmazonChangePaymentLink()
    {
        $oClient = $this->_getContainer()->getClient();
        //Main part of the link related to selected locale in config
        $sLink = $oClient->getAmazonProperty('sAmazonPayChangeLink', true);

        //Send GetOrderReferenceDetails request to Amazon to get OrderLanguage string
        $oData = $oClient->getOrderReferenceDetails($this, array(), true);

        //If we have language string add it to link
        if (!empty($oData->GetOrderReferenceDetailsResult->OrderReferenceDetails->OrderLanguage)) {
            $sAmazonLanguageString = (string)$oData->GetOrderReferenceDetailsResult->OrderReferenceDetails->OrderLanguage;
            $sLink .= str_replace('-', '_', $sAmazonLanguageString);
        }

        return $sLink;
    }
public function getAmazonChangePaymentLink()
    {
        $oClient = $this->_getContainer()->getClient();
        //Main part of the link related to selected locale in config
        $sLink = $oClient->getAmazonProperty('sAmazonPayChangeLink', true);

        //Send GetOrderReferenceDetails request to Amazon to get OrderLanguage string
        $oData = $oClient->getOrderReferenceDetails($this, array(), true);

        //If we have language string add it to link
        if (!empty($oData->GetOrderReferenceDetailsResult->OrderReferenceDetails->OrderLanguage)) {
            $sAmazonLanguageString = (string)$oData->GetOrderReferenceDetailsResult->OrderReferenceDetails->OrderLanguage;
            $sLink .= str_replace('-', '_', $sAmazonLanguageString);
        }

        return $sLink;
    }
public function getAmazonChangePaymentLink ( ) { $ oClient = $ this -> _getContainer ( ) -> getClient ( ) ; //Main part of the link related to selected locale in config $ sLink = $ oClient -> getAmazonProperty ( 'sAmazonPayChangeLink' , true ) ; //Send GetOrderReferenceDetails request to Amazon to get OrderLanguage string $ oData = $ oClient -> getOrderReferenceDetails ( $ this , array ( ) , true ) ; //If we have language string add it to link if ( ! empty ( $ oData -> GetOrderReferenceDetailsResult -> OrderReferenceDetails -> OrderLanguage ) ) { $ sAmazonLanguageString = ( string ) $ oData -> GetOrderReferenceDetailsResult -> OrderReferenceDetails -> OrderLanguage ; $ sLink .= str_replace ( '-' , '_' , $ sAmazonLanguageString ) ; } return $ sLink ; }
Method returns payment method change link for Invalid payment method order

@return string
@throws Exception
Method returns payment method change link for Invalid payment method order