public function MiniorangeSAMLCustomer::validateOtp in SAML SP 2.0 Single Sign On (SSO) - SAML Service Provider 7
Validate OTP.
File
- includes/
customer_setup.php, line 95 - Contains miniOrange Customer class.
Class
- MiniorangeSAMLCustomer
- @file This class represents configuration for customer.
Code
public function validateOtp($transaction_id) {
$url = MiniorangeSAMLConstants::BASE_URL . '/moas/api/auth/validate';
$fields = array(
'txId' => $transaction_id,
'token' => $this->otpToken,
);
return $this
->callService($url, $fields, true);
}