【发布时间】:2017-08-15 21:29:18
【问题描述】:
我正在构建一个非常简单的付款表单,用户可以在其中输入金额和感谢信息。我已经成功地使用了金额,但我无法添加消息字段并让它通过!
这只是我的 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
}
}
});
},
我已尝试设置custom 和note_to_payee,但似乎都没有记录在通知电子邮件或收件人帐户中记录的数据中。
我还尝试通过在体验配置中设置allow_note: true 来启用付款人添加备注的功能,但这无济于事!
请帮忙,我只需要通过任何方式传递付款信息。
【问题讨论】:
标签: paypal paypal-ipn