All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.flutterwave.rave.java.entry.transValidation Maven / Gradle / Ivy

There is a newer version: 1.03
Show newest version
/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package com.flutterwave.rave.java.entry;

import com.flutterwave.rave.java.payload.transverifyPayload;
import com.flutterwave.rave.java.service.verificationServices;
import org.json.JSONObject;

/**
 *
 * @author cleopatradouglas
 */
public class transValidation {

    public String bvnvalidate(transverifyPayload transverifyPayload) {
        verificationServices verificationServices = new verificationServices();

//        transverifyPayload.setSECKEY(raveConfig.SECRET_KEY);
        
         String payload = new JSONObject(transverifyPayload).toString();
        String response = verificationServices.dotransverify(payload, transverifyPayload);
//        return response;
        return new JSONObject(response).toString();
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy