Consulte as informações de um cartão!

Guid merchantKey = Guid.Parse("00000000-0000-0000-0000-000000000000");
Guid instantBuyKey = Guid.Parse("3b3b5b62-6660-428d-905e-96f49d46ae28");

// Cria o cliente para obter os dados do cartão.
var client = new GatewayServiceClient(merchantKey,new Uri("https://sandbox.mundipaggone.com"));

// Obtém os dados do cartão de crédito no gateway.
var httpResponse = client.CreditCard.GetInstantBuyData(instantBuyKey);

if (httpResponse.HttpStatusCode == HttpStatusCode.OK
    && httpResponse.Response.CreditCardDataCollection.Any() == true) {
        Console.WriteLine("Número cartão: {0}", httpResponse.Response.CreditCardDataCollection.FirstOrDefault().MaskedCreditCardNumber);
}
<?php

try
{
    // Carrega dependências
    require_once(dirname(__FILE__) . '/vendor/autoload.php');

    // Define a url utilizada
    \Gateway\ApiClient::setBaseUrl("https://sandbox.mundipaggone.com");

    // Define a chave da loja
    \Gateway\ApiClient::setMerchantKey("85328786-8BA6-420F-9948-5352F5A183EB");

    // Cria um objeto ApiClient
    $client = new \Gateway\ApiClient();

    // Faz a chamada para criação
    $response = $client->GetCreditCard("3b3b5b62-6660-428d-905e-96f49d46ae28");

}
catch (\Gateway\One\DataContract\Report\CreditCardError $error)
{
    $response = array("message" => $error->getMessage());
}
catch (\Gateway\One\DataContract\Report\ApiError $error)
{
    $response = array("message" => $error->errorCollection->ErrorItemCollection[0]->Description);
}
catch (\Exception $ex)
{
    $response = array("message" => "Ocorreu um erro inesperado.");
}
finally
{
    header('Content-Type: application/json');
    var_dump($response);
}
require 'mundipagg_sdk'

# variable with merchant key
merchantKey = '85328786-8BA6-420F-9948-5352F5A183EB'

# instantiate class with request methods
# :sandbox for sandbox ambient
# :production for production ambient
gateway = Gateway::Gateway.new(:sandbox, merchantKey)

# make the request and returns a response hash
response = gateway.GetCreditCard('3b3b5b62-6660-428d-905e-96f49d46ae28')

# prints the response
puts response
from uuid import UUID
from mundipaggOnePython import GatewayServiceClient
from enum_types import PlatformEnvironment, HttpContentTypeEnum

merchant_key = UUID('85328786-8BA6-420F-9948-5352F5A183EB')
end_point = "https://sandbox.mundipaggone.com"

service_client = GatewayServiceClient(merchant_key, PlatformEnvironment.sandbox, HttpContentTypeEnum.json, end_point)

http_response = service_client.credit_card.get_instant_buy_data(instant_bur_key='3b3b5b62-6660-428d-905e-96f49d46ae28')

json_response = http_response.json()

print json_response
// Define loja
UUID merchantKey = UUID.fromString("85328786-8BA6-420F-9948-5352F5A183EB"); // Chave da Loja - MerchantKey

// Cria o cliente que vai enviar a transação
GatewayServiceClient serviceClient = new GatewayServiceClient(merchantKey, "https://sandbox.mundipaggone.com");
                     
// Autoriza a transação e retorna a resposta do gateway
HttpResponseGenericResponse<GetInstantBuyDataResponse> httpResponse
        = serviceClient.getCreditCard().GetCreditCard(UUID.fromString("3b3b5b62-6660-428d-905e-96f49d46ae28"));

// Retorna resposta
return httpResponse.getRawResponse();

Além de usar o InstantBuyKey para realizar transações, você pode consultar as informações dele com o nosso serviço!

Ao fazer o GET em um InstantBuyKey, você receberá na resposta: a bandeira do cartão, o InstantBuyKey, uma tag dizendo se o cartão está com prazo expirado (true ou false) e o número do cartão mascarado.

🚧

Limite de consulta

As consultas nessa rota possuem um limite de até 300 requisições por minuto. Caso o limite de requisições seja alcançado retornaremos HttpStatusCode: 429 com a mensagem de erro: "limite de requisições por minuto excedido para esse endpoint. Tente novamente em breve."

Language