Skip to content
This repository has been archived by the owner on Jan 7, 2023. It is now read-only.

API PagSeguro Sandbox

Jair edited this page May 3, 2014 · 3 revisions

Checkout Api

Type: POST
Url: https://ws.pagseguro.uol.com.br/v2/checkout
PostData: Pagseguro Payments Api Reference https://pagseguro.uol.com.br/v2/guia-de-integracao/api-de-pagamentos.html


A post request is performed back to your server if the transaction processing goes well, the post will cary a “Notification Code” wich you can use to request the transaction details, and the url used is the one informed as "RedirectUrl" configured at your PagSeguro Library.


Type: POST
Params:

  • checkout: Array
  • checkout[code]: The new notification code
  • checkout[date]: The request date and time

Return: Server Response



Transaction search API

This api you can search transactions by code or date intervals exacly like the PagSeguro Trasaction Api.

Type: GET
Url: https://ws.pagseguro.uol.com.br/v2/transactions/{notificationCode}
Token: Your PagSeguro Token
Email: Your PagSeguro Email

Return: PagSeguro Transaction Xml String

Exemple:
https://ws.pagseguro.uol.com.br/v2/transactions/3EF21C029C8C5ADE307ACE8314883-1-FC07968?token=4166969EE65D4A21A23AF32A1E3EF7F9&email=web%40layoutz.com.br



Notification search Api

This api will return the transaction related to the notificationCode informed in the request, the notification code will be sent to your server as a post request after every status change of a transaction, once with the code you can use this API to get the transaction.

Type: GET
Url: https://ws.pagseguro.uol.com.br/v2/transactions/notifications/{notificationCode}
Token: Your PagSeguro Token
Email: Your PagSeguro Email

Return: PagSeguro Transaction Xml String

Exemple:
https://ws.pagseguro.uol.com.br/v2/transactions/notifications/3EF21C029C8C5ADE307ACE8314883-1-FC07968?token=4166969EE65D4A21A23AF32A1E3EF7F9&email=web%40layoutz.com.br

Clone this wiki locally