【发布时间】:2023-03-18 13:47:01
【问题描述】:
我正在 PrestaShop 1.6 中实施东部银行支付网关。我已经配置了成功支付和取消支付的回调 URL。 我的付款控制器如下:
class EblpaymentPaymentModuleFrontController extends ModuleFrontController
{
public $ssl = true;
/**
* @see FrontController::initContent()
*/
public function initContent()
{
parent::initContent();
}
$this->setTemplate('ebl_payment.tpl');
}
ebl_payment.tpl 如下:
<script src= "https:easterbank-test-server/checkout.js"
data-complete="http://localhost/modules/eblpayment/eblcallback"
data-cancel="http://localhost/modules/eblpayment/eblcallback"
>
<input type="button" name="paymentSubmit" onclick="Checkout.showPaymentPage();" value="Submit Order" class="exclusive_large"/>
当我点击 ebl_payment.tpl 中的按钮时,我被重定向到付款页面。
付款成功后,我被重定向到以下网址:
对于这个 URL,我得到 404 页面。
我可以在 SEO 和 URLS 部分下为后台的前端控制器页面添加一个友好的 URL。
现在我想用两个尾参数“resultIndicator”和“sessionVersion”为上述 URL 添加友好 URL,以便我可以重定向到 ebl_payment.tpl 页面中作为数据完整值给出的“eblcallback”前端控制器 URL .
提前致谢
【问题讨论】:
标签: php prestashop