/** * Get the url to forward the customer to for completion of payment * * @param PayResponse $payResponse * @return string The URL to forward to */ public function getForwardPayUrl($payResponse) { return self::PAYSON_WWW_HOST . sprintf(self::PAYSON_WWW_PAY_FORWARD_URL, $payResponse->getToken()); }
/** * Get the url to forward the customer to for completion of payment * * @param PayResponse $payResponse * @return string The URL to forward to */ public function getForwardPayUrl($payResponse) { return sprintf($this->protocol, $this->useTestEnvironment ? 'test-' : '') . self::PAYSON_WWW_HOST . sprintf(self::PAYSON_WWW_PAY_FORWARD_URL, $payResponse->getToken()); }