【问题标题】:magento2 custom payment with external redirect带有外部重定向的magento2自定义付款
【发布时间】:2018-02-21 18:59:54
【问题描述】:

有人做过吗?我正在尝试使用外部重定向进行自定义付款,我已经阅读了所有内容,但仍然无法使其正常工作。是否有人进行了需要外部重定向到银行页面的自定义付款?我已经阅读了 paypal 工作流程和其他内容,但如果有人真的做到了(不是理论上),那么很高兴得到他们的帮助...:)

【问题讨论】:

    标签: redirect paypal payment magento2 gateway


    【解决方案1】:

    在您的支付模型类中,您必须指定 getOrderPlaceRedirectUrl()

    protected $_canUseCheckout= true;
    
    public function getOrderPlaceRedirectUrl()
    {
        return $this->urlBuilder->getUrl('magento4u/payment/redirect', ['_secure' => true]);
    }
    

    【讨论】:

      猜你喜欢
      • 2013-09-04
      • 2019-09-11
      • 2014-11-01
      • 1970-01-01
      • 2013-08-20
      • 2014-11-07
      • 2012-02-29
      • 2013-05-26
      • 2014-08-26
      相关资源
      最近更新 更多