3DS2の実装

We are providing a service using Square in Japan. In response to the mandatory 3DS2 implementation starting from April 1st, we are making modifications. However, an exception occurs when calling payments.verifyBuyer.
 

```
const result = await card.tokenize();

if (result.status === 'OK') {

const verificationDetails = {
intent: 'STORE',
billingContact: {
givenName: 'Taro',
familyName: 'Yamada',
email: '[email protected]',
country: 'JP'
}
};

try {
const verificationResults = await payments.verifyBuyer(
result.token,
verificationDetails,
{ locationId: 'LASVFJ871BQ34' }
);
```
an exception occurs when calling payments.verifyBuyer

```
//検証情報
const verificationDetails = {
intent: 'STORE',
billingContact: {
givenName: 'Taro',
familyName: 'Yamada',
email: '[email protected]',
phone: '+[Redacted]11',
countryCode: 'JP'
},
customerInitiated: false,
sellerKeyedIn: false
};
try {

const result = await card.tokenize(verificationDetails);

if (result.status === 'OK') {


try {

//検証トークン取得
const verificationResults = await payments.verifyBuyer(
result.token,
verificationDetails
);
```
an exception occurs when calling card.tokenize

  • API
469件の閲覧回数
メッセージ1/2
不適切なコンテンツを報告
1 返信
Square Community Moderator

 Hi @SPOTEC, thank you for reaching out.

 

For this inquiry, we would be appreciated if you could access to Developer Forums, which would be more appropriate for this type of question than Seller Community.

 

Thank you for your cooperations.

伊藤 −Ito
Square コミュニティ回答担当
解決策や有用な回答には、ログイン して ベストアンサーとしてマークをクリックしましょう!
369件の閲覧回数
メッセージ2/2
不適切なコンテンツを報告