/** * Constructor * * @param cbpaidGatewayAccount $account */ public function __construct( $account ) { parent::__construct( $account ); // Set gateway URLS for $this->pspUrl() results: first 2 are the main hosted payment page posting URL, next ones are gateway-specific: $this->_gatewayUrls = array( 'psp+normal' => $this->getAccountParam( 'psp_normal_url' ), 'psp+test' => $this->getAccountParam( 'psp_test_url' ), ); }
/** * Returns a cbpaidGatewaySelectorButton object parameters for rendering an HTML form with a visible button and hidden fields for the gateway * Or a string with HTML content instead (not recommended) * * @param cbpaidPaymentBasket $paymentBasket paymentBasket object * @param string $subMethod 'single', 'subscribe' or gateway-specific string (e.g. credit-card brand) * @param string $paymentType 'single' or 'subscribe' or for subscriptions 'cancel' * @return cbpaidGatewaySelectorButton or string with HTML */ protected function getPayButtonRecepie($paymentBasket, $subMethod, $paymentType) { $ps = parent::getPayButtonRecepie($paymentBasket, $subMethod, $paymentType); $dummyTxt = ' (' . CBPTXT::T("Dummy") . ')'; $ps->altText .= $dummyTxt; $ps->titleText .= $dummyTxt; return $ps; }