如何在ReactJs中启用Adyen的dropin来显示购物者姓名的关键是什么?

huangapple go评论74阅读模式
英文:

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'
  })
})

huangapple
  • 本文由 发表于 2023年5月29日 20:34:09
  • 转载请务必保留本文链接:https://go.coder-hub.com/76357421.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定