Olá,
Neste artigo podemos visualizar formas de capturar alguns dados de transações no pagador Braspag.
URL de POST
produção: https://transaction.pagador.com.br/services/pagadorQuery.asmx
homologação: https://transactionsandbox.pagador.com.br/services/pagadorQuery.asmx
Boleto
Ao enviar a requisição abaixo,
<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://www.w3.org/2003/05/soap-envelope">
<soap:Body>
<GetBoletoData xmlns="https://www.pagador.com.br/query/pagadorquery">
<boletoDataRequest>
<MerchantId>ABA31935-****-****-****-C52A37E1C066</MerchantId>
<BraspagTransactionId>5EE4E13D-****-****-****-144AC919BBE2</BraspagTransactionId>
<Version>1.0</Version>
</boletoDataRequest>
</GetBoletoData>
</soap:Body>
</soap:Envelope>
obtemos o seguinte retorno:
<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<soap:Body>
<GetBoletoDataResponse xmlns="https://www.pagador.com.br/query/pagadorquery">
<GetBoletoDataResult>
<CorrelationId>00000000-0000-0000-0000-000000000000</CorrelationId>
<Success>true</Success>
<ErrorReportDataCollection />
<BraspagTransactionId>5ee4e13d-****-****-****-144ac919bbe2</BraspagTransactionId>
<PaymentMethod>583</PaymentMethod>
<DocumentNumber>3202616659</DocumentNumber>
<DocumentDate>03/01/2019 08:03:10 PM</DocumentDate>
<CustomerName>ASTOLFO-8251152838</CustomerName>
<BoletoNumber>3202616659</BoletoNumber>
<BarCodeNumber />
<BoletoExpirationDate>04/01/2019 12:00:00 AM</BoletoExpirationDate>
<BoletoInstructions>ACEITAR SOMENTE ATE A DATA DE VENCIMENTO</BoletoInstructions>
<BoletoUrl>https://transactionsandbox.pagador.com.br/post/pagador/reenvia.asp/5ee4e13d-ae4b-402f-b3ce-144ac919bbe2</BoletoUrl>
<Amount>1634</Amount>
<PaidAmount>0</PaidAmount>
<BankNumber>001-9</BankNumber>
<Agency>3321-7</Agency>
<Account>4693-1</Account>
<Assignor>Global Collect Services B.V.</Assignor>
</GetBoletoDataResult>
</GetBoletoDataResponse>
</soap:Body>
</soap:Envelope>
Cartão Crédito/Débito
Ao enviar a requisição abaixo,
<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://www.w3.org/2003/05/soap-envelope">
<soap:Body>
<GetTransactionData xmlns="https://www.pagador.com.br/query/pagadorquery">
<transactionDataRequest>
<MerchantId>ED149505-****-****-****-0026B939D54B</MerchantId>
<BraspagTransactionId>84449758-****-****-****-41E37616F3EC</BraspagTransactionId>
<RequestId>0ff569ea-****-****-****-43b7bbf315e1</RequestId>
<Version>1.0</Version>
</transactionDataRequest>
</GetTransactionData>
</soap:Body>
</soap:Envelope>
obtemos o seguinte retorno:
?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<soap:Body>
<GetTransactionDataResponse xmlns="https://www.pagador.com.br/query/pagadorquery">
<GetTransactionDataResult>
<CorrelationId>0ff569ea-7e4b-4cc2-84fe-43b7bbf315e1</CorrelationId>
<Success>true</Success>
<ErrorReportDataCollection />
<BraspagTransactionId>84449758-****-****-****-41e37616f3ec</BraspagTransactionId>
<OrderId>Test0002</OrderId>
<AcquirerTransactionId>0210022654937</AcquirerTransactionId>
<PaymentMethod>997</PaymentMethod>
<PaymentMethodName>Simulado</PaymentMethodName>
<Amount>100</Amount>
<AuthorizationCode>117496</AuthorizationCode>
<NumberOfPayments>3</NumberOfPayments>
<Currency>BRL</Currency>
<Country>BRA</Country>
<TransactionType>1</TransactionType>
<Status>4</Status>
<ReceivedDate>02/28/2019 05:26:54 PM</ReceivedDate>
<VoidedDate>02/28/2019 05:27:27 PM</VoidedDate>
<CreditCardToken xsi:nil="true" />
<ProofOfSale>2654887</ProofOfSale>
<MaskedCardNumber>000000******0001</MaskedCardNumber>
</GetTransactionDataResult>
</GetTransactionDataResponse>
</soap:Body>
</soap:Envelope>
Na tabela abaixo mostra o tipo de transação(TransactionType):
Nesta tabela mostra os status:
Para maiores detalhes sobre a resposta da requisição, de uma olhada na página 16 do manual Pagador Transaction Consulta.
Comentários
0 comentário
Por favor, entre para comentar.