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"
}
}
DADOS RESPONSE:
stdClass Object
(
[id] => CHEC_7BA90533-0DBE-4BC2-8FFB-9288E5993557
[reference_id] => 0001
[created_at] => 2025-03-13T12:12:41-03:00
[status] => ACTIVE
[customer] => stdClass Object
(
[name] => Jose da Silva
[email] => teste@teste.com
[tax_id] => 12345678909
)
[customer_modifiable] => 1
[items] => stdClass Object
(
[0] => stdClass Object
(
[reference_id] => referencia do item
[name] => nome do item
[quantity] => 1
[description] => descrição
[unit_amount] => 50000
)
)
[additional_amount] => 0
[discount_amount] => 0
[payment_methods_configs] => stdClass Object
(
[0] => stdClass Object
(
[type] => CREDIT_CARD
[config_options] => stdClass Object
(
[0] => stdClass Object
(
[option] => INSTALLMENTS_LIMIT
[value] => 6
)
)
)
)
[notification_urls] => stdClass Object
(
[0] => http://meusite.com/nitifications
)
[payment_notification_urls] => stdClass Object
(
[0] => http://meusite.com/nitifications
)
[links] => stdClass Object
(
[0] => stdClass Object
(
[rel] => SELF
[href] => https://sandbox.api.pagseguro.com/checkouts/CHEC_7BA90533-0DBE-4BC2-8FFB-9288E5993557
[method] => GET
)
[1] => stdClass Object
(
[rel] => PAY
[href] => https://pagamento.sandbox.pagbank.com.br/pagamento?code=7ba90533-0dbe-4bc2-8ffb-9288e5993557
[method] => GET
)
[2] => stdClass Object
(
[rel] => INACTIVATE
[href] => https://sandbox.api.pagseguro.com/checkouts/CHEC_7BA90533-0DBE-4BC2-8FFB-9288E5993557/inactivate
[method] => POST
)
)
)