Magento“下订单”支付网关重定向

发布于 2024-12-10 00:49:06 字数 542 浏览 0 评论 0原文

这是我在 StackOverflow 上的第一篇实际帖子。我经常来这里,因为你们总是解决我的问题!

我们在本地主机上的 Magento 上的结帐车中遇到问题。

我们有 Magento 版本 1.5 并正在使用 direcpay 支付模块(使用 roi smikes 的博客)。

当客户将产品添加到购物车时,就会出现问题。当他们点击“下订单”按钮时,他们应该进入一个表单,用户必须在重定向到支付网关(如商家 ID、名称和地址等)之前输入客户详细信息字段,其中他们可以通过 url 将这些信息发送到 direcpay 支付网关。我不知道下一步该怎么做,我是否应该制作一个新表单来输入这些信息以及如何处理下订单按钮。

任何帮助/建议/解决方案/任何东西!将不胜感激!

谢谢!

this is my first actual post on StackOverflow. I'm on here quite often because you guys always solve my queries!

We have a problem in a checkout cart on a Magento on localhost.

We have Magento version 1.5 and are using the direcpay payment module(Created the module manually by using the blog by roi smikes).

The problem appears when a customer adds products to their cart . When they click on the 'Place Order' button, they should be taken to a form in which the user have to enter customer detail field before redirecting to payment gateway like merchantid,name and address etc, in which they can send these information through url to the direcpay payment gateway.I dont know what to do next,should i have to make a new form in which these information should be entered and how the place order button can be handle.

Any help/advice/solution/anything! would be much appreciated!

Thanks!

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

爱殇璃 2024-12-17 00:49:06

我想您想要的是如下

Click Place order ---> Customer Details Page -----> External payment gateway

实现此

  1. 步骤在文件 app\code\core\Mage\Checkout\controllers\OnepageController.php 中

修改 saveOrderAction()添加此文件代码,用于检查选择的付款方式

    if($data['method']=='cashondelivery')
    {
        $redirectUrl='';
    }
    else
    {
        $redirectUrl = 'https://mysite.com/customer_details.php';
    }
  1. 添加继续按钮customer_details.php 页面现在将客户带到带有发布信息的银行网站

I suppose what you desire is as below

Click Place order ---> Customer Details Page -----> External payment gateway

Steps to achieve this

  1. modifty saveOrderAction() in the file app\code\core\Mage\Checkout\controllers\OnepageController.php

add this file code which checks what payment method was selected

    if($data['method']=='cashondelivery')
    {
        $redirectUrl='';
    }
    else
    {
        $redirectUrl = 'https://mysite.com/customer_details.php';
    }
  1. Add a proceed button in the customer_details.php page which now takes customer to bank website with the posted information
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文