cielo_bin_query 1.0.3 cielo_bin_query: ^1.0.3 copied to clipboard
A Flutter package that helps to use Cielo's Bin Query.
cielo_bin_query #
A Flutter package that helps to use Cielo's Bin Query.
Usage #
These operations must be performed using its specific key (Client Id, Client Secret and Merchand Id) in the respective environment endpoints.
var binquery = CieloBinQuery(
clientId: "YOUR-CLIENT-ID",
clientSecret: "YOUR-CLIENT-SECRET",
merchantId: "YOUR-MERCHANT-ID",
environment: Environment.SANDBOX
);
var result = await binquery.query("410715");
print("Status Code: ${result.statusCode}");
if (result.binQueryResponse != null) {
print("Status: ${result.binQueryResponse.status}");
print("Provider: ${result.binQueryResponse.provider}");
print("Card Type: ${result.binQueryResponse.cardType}");
print("Foreign Card: ${result.binQueryResponse.foreignCard}");
print("Corporate Card: ${result.binQueryResponse.corporateCard}");
print("Issuer: ${result.binQueryResponse.issuer}");
print("Issuer Code: ${result.binQueryResponse.issuerCode}");
print("Pre Paid: ${result.binQueryResponse.prePaid}");
}
if (result.errorResponse != null)
print(result.errorResponse.map((e) {
print("ErrorCode: ${e.code}");
print("ErrorMessage: ${e.message}");
}));