英文:
What is the key to enable the display of the shopper's name in Adyen's dropin for stored cards with ReactJs?
问题
"Used 'dropin' for showing stored cards. The UI rendered from Adyen dropin component doesn't show the shopper's name.
Is there any key which enables showing the shopper/holder's name in stored cards' container?
Web dropin used with ReactJs."
英文:
Used 'dropin' for showing stored cards. The UI rendered from Adyen dropin component doesn't show the shopper's name.
Is there any key which enables showing the shopper/holder's name in stored cards' container?
Web dropin used with ReactJs.
答案1
得分: 1
"drop-in" 不提供内置的配置选项来直接在 Drop-in 组件中显示持卡人姓名。
但是,您可以通过调用 /paymentMethods
并额外传递 shopperReference
来获取此信息,并自定义结帐页面。
fetch('/paymentMethods', {
method: 'POST',
headers: {
'Content-Type': 'application/json'
},
body: JSON.stringify({
merchantAccount: 'your_merchant_account',
shopperReference: 'the_shopper_reference'
})
})
英文:
The drop-in
does not provide this built-in configuration option to display the card holder's name directly within the Drop-in component.
You could however get hold of this information making a call to /paymentMethods
, passing additionally the shopperReference
and customise the checkout page.
fetch('/paymentMethods', {
method: 'POST',
headers: {
'Content-Type': 'application/json'
},
body: JSON.stringify({
merchantAccount: 'your_merchant_account',
shopperReference: 'the_shopper_reference'
})
})
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论