WorldPay 集成

发布于 2024-11-19 05:05:23 字数 578 浏览 4 评论 0原文

我目前正在使用一个系统,我的用户可以为他们添加到订单中的商品付款。

付款将使用 Worldpay。

我有一个 Worldpay 帐户,但我对下一步需要执行的步骤有点困惑。

我正在使用 symfony,并且有一个订单以及与之相关的产品。然后,我创建了一个“立即付款”链接,该链接链接到 executePayment 操作。

我真正想要的是,它会将我带到 Worldpay 上的托管支付页面,支付订单,然后将我带回我的网站,进入订单成功页面。

有人用 symfony 实现过 WorldPay 吗?

谢谢

编辑:

看起来,我可以在 Pay Now 按钮所在的页面上有一个表单,但将其更改为 < /code> 然后将详细信息发布到 https://secure-test.wp3.rbsworldpay.com/wcc/purchase

是否有某种回调功能,将我重定向到确认/失败页面如果交易完成?

谢谢

I am currently working a system whereby my users can pay for items that they have added to an order.

The payment will be using Worldpay.

I have a Worldpay account, but I am a little confused as to what steps I need to do next.

I am using symfony and I have an order, with products associated to it. I have then created a 'Pay Now' link, which links to a executePayment action.

What I'd really like, is for this to then take me to the hosted payment pages on Worldpay, pay for the order and then takes me back to my site to an order success page.

Has anyone implemented WorldPay using symfony before?

Thanks

EDIT:

So It seems, that I can have a form on the page where the Pay Now button is, but change it to a <input type="submit" /> and then post the details to https://secure-test.wp3.rbsworldpay.com/wcc/purchase

Is there some kind of callback functioanlity, to redirect me to a confirmation/failure page if the transaction was completed?

Thanks

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

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

发布评论

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

评论(2

晨光如昨 2024-11-26 05:05:23

WorldPay 的工作原理如下...

1) 您的网站上有一个表格,用于收集您的客户详细信息。然后,您将此数据发布到 https://secure-test.wp3.rbsworldpay.com/wcc /purchase

2) 客户将他们的付款详细信息添加到 WorldPay

3) 接下来,(取决于付款是否成功)用户将被定向到您的 resultY.html 或您可以将 resultC.html 页面上传到 WorldPay 后台的文件管理部分。

或者,您可以向服务器上的回调文件提供 URL,当客户单击付款时,会对该回调文件执行 ping 操作。这允许您获取有关交易的信息并将其添加到您的数据库中。

通过服务器上的回调页面,您可以输出付款确认信息,但随后您必须包含一个链接以使用户返回您的网站。我认为从此页面自动重定向违反了 Worldpay 的条款和条件。

希望这有帮助。

菲利普

WorldPay works like this...

1) You have a form on your website that collects your customer details. You then POST this data to https://secure-test.wp3.rbsworldpay.com/wcc/purchase

2) The customer will add their payment details in to WorldPay

3) Next, (depending on if the payment was successful or not) the user will be either directed to your resultY.html or resultC.html page that you can upload to your file management section within the WorldPay admin.

Alternatively you can supply a URL to a callback file on your server that is pinged when the customer clicks pay. This allows you to get information about the transaction and add it to your database.

With the callback page on your server, you can output a confirmation of payment, but you then have to include a link to physically get the user to come back to your site. I think automatically redirecting from this page is against Worldpay's T&Cs.

Hope this helps.

Philip

走走停停 2024-11-26 05:05:23

我使用 Symfony 使用 RBSWorldPay - 它的设置非常简单 - 是的,您可以在 RBSWorldPay 帐户的设置中设置一个回调函数 - 您也可以通过添加测试字段进行测试 - 再次检查 RBS 文档进行测试。

I user RBSWorldPay with Symfony - its very simple to setup - yes there is a callback function that you setup within the Settings of your RBSWorldPay account - you can also test by adding a test field - again check the RBS Documentation for testing.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文