Action confirmation

The ActionConfirmationService manages SMS confirmations for various user actions.

Methods:

MethodDescriptionCorresponding API call
createSmsConfirmation(request: CreateSmsConfirmationRequest)Start an SMS confirmation sessionRequest SMS code
completeSmsConfirmation(request: CompleteSmsConfirmationRequest)Verify an OTP code and complete the sessionVerify SMS code

Usage Examples:

Completing SMS confirmation

WirexPay.actionConfirmation.completeSmsConfirmation({ code: '123456', session_id: 'some-id' })
  .then(response => console.log('SMS confirmation token:', response))
  .catch(error => console.error('Error fetching transactions:', error));

What’s Next