paypal - 在 PayPal API 支付中包含消息/备注字段

标签 paypal paypal-ipn

我正在构建一个非常简单的付款表单,用户可以在其中输入金额和感谢信息。我已经成功地使用了数量,但我无法添加消息字段并让它通过!

enter image description here

这只是我的 JavaScript 的支付功能:

payment: function(data, actions) {
    return actions.payment.create({
        payment: {
            transactions: [
                {
                    amount: { 
                        total: window.transactionAmount, 
                        currency: 'GBP' 
                    },
                    note_to_payee: document.getElementById('custom-message').value,
                    description: 'A gift to Martin.',
                    custom: 'This is a test custom field',
                    payee: {
                        "email": "martin@[hidden].com"
                    }
                }
            ]
        },
        experience: {
            input_fields: {
                no_shipping: 1,
                allow_note: true
            }
        }
    });
},

我已尝试设置 customnote_to_payee 但似乎都没有记录在通知电子邮件或收件人帐户中记录的数据中。

我还尝试通过在体验配置中设置 allow_note: true 来启用付款人添加注释的功能,但这没有任何作用!

请帮忙,我只需要通过任何方式传递带有付款的小消息。

最佳答案

PayPal 支持团队花了 4 天的时间才回复说不,无法完成。

这是他们的完整回复:

With regard to your request, I have to inform you that "note to seller" (allow_note:true) field is only available in the older PayPal payment experience, and is not available in the newer payment experience.

Unfortunately, there's nothing the caller can do at this time to force an old or new experience and we recommend to collect this information in your website where possible.

所以看起来他们已经放弃了 PayPal 结账功能中最好和最简单的功能之一,即能够包含一个友好的小便条。

现在,我唯一的选择是构建一个带有 API 端点的完整后端系统,并扩展我的 JavaScript 以记录我的付款人的便条。同时,我收到的每封电子邮件通知都将继续包含令人讨厌的谎言:“买家尚未输入任何说明”

PayPal:请在您的新流程中实现一项功能或删除/隐藏该功能!不要半途而废。你拿走我所有交易的 10%,我希望更好。

关于paypal - 在 PayPal API 支付中包含消息/备注字段,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/45701856/

相关文章:

php - Paypal 金库卡数据重复

Paypal 的即时付款通知

paypal - 如何区分我的 BrainTree 商家帐户?

Paypal 获取 token

php - PayPal 沙箱不同于实时模式

php - IPN + mysql for paypal 未验证

paypal - 检查 txn_id 以防止欺诈

Paypal 自动返回不发送 POST 数据

php - PayPal IPN 未经验证

paypal - 如何从 IPN 消息中知道 MaxFailedPayments 已经到达?