Payment gateway Magento 2:如何通过post方法从支付网关发送数据?

Payment gateway Magento 2:如何通过post方法从支付网关发送数据?,payment-gateway,magento2,Payment Gateway,Magento2,Magento 2:如何通过post方法从支付网关发送数据?我想你说的是从支付网关到Magento 2设置的webhook,因此他们会通知你离线支付。我建议你创建一个离线支付方式。然后创建一个可以处理此类信息的web api端点 您需要提供更多信息。我想您正在谈论从支付网关到Magento2设置的webhook,因此他们会通知您离线支付。我建议你创建一个离线支付方式。然后创建一个可以处理此类信息的web api端点 您需要提供更多信息。根据我对Payflow pro magento 2.3.3的

Magento 2:如何通过post方法从支付网关发送数据?

我想你说的是从支付网关到Magento 2设置的webhook,因此他们会通知你离线支付。我建议你创建一个离线支付方式。然后创建一个可以处理此类信息的web api端点


您需要提供更多信息。

我想您正在谈论从支付网关到Magento2设置的webhook,因此他们会通知您离线支付。我建议你创建一个离线支付方式。然后创建一个可以处理此类信息的web api端点


您需要提供更多信息。

根据我对Payflow pro magento 2.3.3的研究,请按照以下方式将数据发送到支付网关

vendor/magento/module-payment/view/frontend/web/js/transparent.js

_postPaymentToGateway: function (data) {
    var tmpl,
        iframeSelector = '[data-container="' + this.options.gateway + '-transparent-iframe"]';
    tmpl = this.hiddenFormTmpl({
        data: {
            target: $(iframeSelector).attr('name'),
            action: this.options.cgiUrl,
            inputs: data
        }
    });
    $(tmpl).appendTo($(iframeSelector)).submit();
}

成功订购后,使用上述功能将数据发布到支付网关。

根据我对Payflow pro magento 2.3.3的研究,使用以下方式将数据发送到支付网关

vendor/magento/module-payment/view/frontend/web/js/transparent.js

_postPaymentToGateway: function (data) {
    var tmpl,
        iframeSelector = '[data-container="' + this.options.gateway + '-transparent-iframe"]';
    tmpl = this.hiddenFormTmpl({
        data: {
            target: $(iframeSelector).attr('name'),
            action: this.options.cgiUrl,
            inputs: data
        }
    });
    $(tmpl).appendTo($(iframeSelector)).submit();
}

成功订购后,使用上述功能将数据发布到支付网关。

当用户单击magento 2中的网关选项时,我只想在magento 2上创建支付网关,然后使用Post方法将数据重定向到网关页面。到目前为止,我坚持将数据发布到我们的网关,并提供建议或解决方案。我建议您将Paypal模块作为参考。这是当您选择PaypalI just Wang make payment gateway on magento 2时发生的流程,当用户单击magento 2中的网关选项时,将使用post方法重定向到网关页面,并提供必要的数据。到目前为止,我坚持将数据发布到我们的网关,并提供建议或解决方案。我建议您将Paypal模块作为参考。这就是选择Paypal时发生的流程