DADOS ENVIADOS:
array(6) {
["reference_id"]=>
string(4) "0001"
["customer"]=>
array(4) {
["name"]=>
string(13) "Jose da Silva"
["email"]=>
string(15) "teste@teste.com"
["tax_id"]=>
string(11) "12345678909"
["phones"]=>
array(1) {
[0]=>
array(4) {
["country"]=>
string(2) "55"
["area"]=>
string(2) "21"
["number"]=>
string(9) "987172990"
["type"]=>
string(6) "MOBILE"
}
}
}
["items"]=>
array(1) {
[0]=>
array(5) {
["reference_id"]=>
string(18) "referencia do item"
["name"]=>
string(12) "nome do item"
["description"]=>
string(11) "descrição"
["quantity"]=>
string(1) "1"
["unit_amount"]=>
string(5) "50000"
}
}
["qr_codes"]=>
array(1) {
[0]=>
array(1) {
["amount"]=>
array(1) {
["value"]=>
string(5) "50000"
}
}
}
["payment_methods_configs"]=>
array(1) {
[0]=>
array(2) {
["type"]=>
string(11) "credit_card"
["config_options"]=>
array(1) {
[0]=>
array(2) {
["option"]=>
string(18) "installments_limit"
["value"]=>
string(1) "6"
}
}
}
}
["notification_urls"]=>
array(1) {
[0]=>
string(32) "http://meusite.com/nitifications"
}
}
API RESPONSE:
object(stdClass)#1 (13) {
["id"]=>
string(41) "CHEC_5EAFC413-F6F2-4CBB-AD50-E19A4B8D40F6"
["reference_id"]=>
string(4) "0001"
["created_at"]=>
string(25) "2025-03-13T12:58:28-03:00"
["status"]=>
string(6) "ACTIVE"
["customer"]=>
array(3) {
["name"]=>
string(13) "Jose da Silva"
["email"]=>
string(15) "teste@teste.com"
["tax_id"]=>
string(11) "12345678909"
}
["customer_modifiable"]=>
bool(true)
["items"]=>
array(1) {
[0]=>
array(5) {
["reference_id"]=>
string(18) "referencia do item"
["name"]=>
string(12) "nome do item"
["quantity"]=>
int(1)
["description"]=>
string(11) "descrição"
["unit_amount"]=>
int(50000)
}
}
["additional_amount"]=>
int(0)
["discount_amount"]=>
int(0)
["payment_methods_configs"]=>
array(1) {
[0]=>
array(2) {
["type"]=>
string(11) "CREDIT_CARD"
["config_options"]=>
array(1) {
[0]=>
array(2) {
["option"]=>
string(18) "INSTALLMENTS_LIMIT"
["value"]=>
string(1) "6"
}
}
}
}
["notification_urls"]=>
array(1) {
[0]=>
string(32) "http://meusite.com/nitifications"
}
["payment_notification_urls"]=>
array(1) {
[0]=>
string(32) "http://meusite.com/nitifications"
}
["links"]=>
array(3) {
[0]=>
array(3) {
["rel"]=>
string(4) "SELF"
["href"]=>
string(85) "https://sandbox.api.pagseguro.com/checkouts/CHEC_5EAFC413-F6F2-4CBB-AD50-E19A4B8D40F6"
["method"]=>
string(3) "GET"
}
[1]=>
array(3) {
["rel"]=>
string(3) "PAY"
["href"]=>
string(92) "https://pagamento.sandbox.pagbank.com.br/pagamento?code=5eafc413-f6f2-4cbb-ad50-e19a4b8d40f6"
["method"]=>
string(3) "GET"
}
[2]=>
array(3) {
["rel"]=>
string(10) "INACTIVATE"
["href"]=>
string(96) "https://sandbox.api.pagseguro.com/checkouts/CHEC_5EAFC413-F6F2-4CBB-AD50-E19A4B8D40F6/inactivate"
["method"]=>
string(4) "POST"
}
}
}
id: CHEC_5EAFC413-F6F2-4CBB-AD50-E19A4B8D40F6
URL de pagamento (rel PAY): https://pagamento.sandbox.pagbank.com.br/pagamento?code=5eafc413-f6f2-4cbb-ad50-e19a4b8d40f6