I'm trying to make an integration with Paseguro that asks you to send some data to a URL with
Header = 'Accept:application/vnd.pagseguro.com.br.v3+json;charset=ISO-8859-1',
'Content-Type: application/json;charset=ISO-8859-1'
How do I send the parameters below to a url and receive the response in php?
{
"plan": "FFAC8AE62424AC5884C90F8DAAE2F21A",
"reference": "MEU-CODIGO",
"sender": {
"name": "José Comprador",
"email": "[email protected]",
"ip": "1.1.1.1",
"hash": "hash",
"phone": {
"areaCode": "99",
"number": "99999999"
},
"address": {
"street": "Av. PagSeguro",
"number": "9999",
"complement": "99o andar",
"district": "Jardim Internet",
"city": "Cidade Exemplo",
"state": "SP",
"country": "BRA",
"postalCode": "99999999"
},
"documents": [
{
"type": "CPF",
"value": "99999999999"
}]
},
"paymentMethod": {
"type": "CREDITCARD",
"creditCard": {
"token": "4C63F1BD5A0E47220F8DB2920325499D",
"holder": {
"name": "JOSÉ COMPRADOR",
"birthDate": "20/12/1990",
"documents": [ {
"type": "CPF",
"value": "99999999999"
} ],
"phone": {
"areaCode": "99",
"number": "99999999"
},
"billingAddress": {
"street": "Av. PagSeguro",
"number": "9999",
"complement": "99o andar",
"district": "Jardim Internet",
"city": "Cidade Exemplo",
"state": "SP",
"country": "BRA",
"postalCode":
"99999999"
}
} }}}