com.flutterwave.rave.java.entry.validateCardCharge Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of Rave-Java Show documentation
Show all versions of Rave-Java Show documentation
A Java API wrapper for the Rave API
/*
* 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.validateCardPayload;
import com.flutterwave.rave.java.service.verificationServices;
import javax.ws.rs.Path;
import org.json.JSONObject;
/**
*
* @author cleopatradouglas
*/
public class validateCardCharge {
public String doflwcardvalidate(validateCardPayload validatecardpayload){
// validatecardpayload.setPBFPubKey(raveConfig.PUBLIC_KEY);
String payload = new JSONObject(validatecardpayload).toString();
//System.out.println("payload is ===>" + payload);
verificationServices verificationservices = new verificationServices();
String response = verificationservices.docardvalidate(payload, validatecardpayload);
return response;
}
}