支払い認証コードの送信

Verify API は、決済のための強力な顧客認証をサポートしています。プロセスを開始するには、顧客の電話番号 ( E.164フォーマット )、支払いを受け取る受取人、取引金額(ユーロ)を、以下の宛先に送付する。 PSD2エンドポイント.

を返します。 request_id.を作成するときなど、その後の API 呼び出しで特定の検証リクエストを識別するために使用します。 チェックリクエスト で、ユーザーが正しいコードを入力したかどうかを確認する。

サンプルコードの以下の変数を、独自の値に置き換えてください:

キー説明
VONAGE_API_KEY

Your Vonage API key (see it on your dashboard).

VONAGE_API_SECRET

Your Vonage API secret (also available on your dashboard).

RECIPIENT_NUMBER

The phone number to verify

PAYEE

Included in the message to describe the payment recipient

AMOUNT

How much the payment is for (always in Euro)

Write the code

Add the following to send-psd2-code.sh:

curl -X POST "https://api.nexmo.com/verify/psd2/json" \

View full source

Run your code

Save this file to your machine and run it:

sh send-psd2-code.sh