Action confirmation
The ActionConfirmationService manages SMS confirmations for various user actions.
Methods:
| Method | Description | Corresponding API call |
|---|---|---|
createSmsConfirmation(request: CreateSmsConfirmationRequest) | Start an SMS confirmation session | Request SMS code |
completeSmsConfirmation(request: CompleteSmsConfirmationRequest) | Verify an OTP code and complete the session | Verify 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));Updated 8 months ago
What’s Next
