简体   繁体   English

Magento订单重定向到支付网关

[英]Magento Order Redirect to Payment Gateway

I have an order (order id: 10000012). 我有一个订单(订单ID:10000012)。 I wish to pass this order id to a script which then loads the order information and sends the user to Protx/SagePay. 我希望将此订单ID传递给脚本,该脚本随后加载订单信息并将用户发送到Protx / SagePay。

This would be dynamic, so if an order is already created, I could pass it any order ID as long as the payment isn't complete/processing. 这将是动态的,因此,如果已创建订单,只要付款未完成/正在处理,我就可以将任何订单ID传递给它。

So basically what I need is to programatically checkout selecting Sagepay Standard/Protx Standard then redirect to Protx/Sagepay to pay for the order etc. 因此,基本上我需要以编程方式结帐,选择Sagepay Standard / Protx Standard,然后重定向到Protx / Sagepay以支付订单等费用。

Thank you. 谢谢。

To accomplish this you can create a payment gateway with method 为此,您可以使用方法创建付款网关

function getOrderPlaceRedirectUrl() {
  return 'http://www.paymentgateway.com/pay';
}

See - magento redirect checkout payment to a 3rd party gateway 请参阅-magento将结帐付款重定向到第三方网关

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM