本当に簡単な支払いフォームを作成しています。ここで、ユーザーは額と感謝のメッセージを入力できます。私はそれが正常に量だけで動作しているが、私はメッセージフィールドを追加して、それを介して来る得ることができません!PayPal APIのお支払いにメッセージ/メモフィールドを含めます。
ここは私の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": "[email protected][hidden].com"
}
}
]
},
experience: {
input_fields: {
no_shipping: 1,
allow_note: true
}
}
});
},
私はcustom
とnote_to_payee
を設定しようとしたが、どちらも通知メールまたは記録されたデータのいずれかに記録されているように見えます受信者のアカウントに
経験者の設定でallow_note: true
を設定して、支払人がメモを追加する機能をオンにしましたが、何もしません。
お手数ですが、ちょっとしたお支払いのメッセージをお送りするだけで十分です。