/** * Returns the URL and hidden params, and name of currency param for a form to change currency * * @param cbpaidPaymentBasket $paymentBasket * @return array ( url unsefed/unhtmlspecialchared, array( hidden form params ), name of currency input ) */ public static function getCurrencyChangeFormParams( $paymentBasket ) { $getParams = $paymentBasket->getSetBasketPaymentMethodUrl( null, 'html', 'setbsktcurrency' ); $ajaxGetParams = cbUnHtmlspecialchars( $paymentBasket->getSetBasketPaymentMethodUrl( null, 'raw', 'setbsktcurrency' ) ); $formHiddens = array( cbpaidApp::getBaseClass()->_getPagingParamName('act') => 'setbsktcurrency', 'ajaxurl' => bin2hex( $ajaxGetParams ) ); return array( $getParams, $formHiddens, 'currency' ); }