にそれを割り当てるこんにちは、私は現在のJSONJSON値を取得し、変数
{
"merchantOrderId": "123",
"customer": {
"name": "Fulano de Tal",
"email": null,
"birthDate": null,
"identity": null,
"identityType": null,
"address": null,
"deliveryAddress": null
},
"payment": {
"serviceTaxAmount": 0,
"installments": 1,
"interest": 0,
"capture": false,
"authenticate": false,
"recurrent": false,
"recurrentPayment": null,
"creditCard": {
"cardNumber": "545301******6167",
"holder": "Fulano de Tal",
"expirationDate": "05\/2018",
"securityCode": null,
"saveCard": false,
"brand": "Master",
"cardToken": null
},
"debitCard": null,
"authenticationUrl": null,
"tid": "10927989166K6L145T3B",
"proofOfSale": "006015",
"authorizationCode": null,
"softDescriptor": "",
"returnUrl": null,
"provider": "Cielo",
"paymentId": "c1a253ce-0f9a-4bc1-b8d7-43cf18f023bf",
"type": "CreditCard",
"amount": 15700,
"receivedDate": "2017-10-18 18:18:51",
"capturedAmount": null,
"capturedDate": null,
"currency": "BRL",
"country": "BRA",
"returnCode": "GA",
"returnMessage": "Autorizacao negada",
`"status":3`,
"links": [{
"Method": "GET",
"Rel": "self",
"Href": "https:\/\/apiquery.cieloecommerce.cielo.com.br\/1\/sales\/c1a253ce-0f9a-4bc1-b8d7-43cf18f023bf"
}],
"extraDataCollection": null,
"expirationDate": null,
"url": null,
"number": null,
"barCodeNumber": null,
"digitableLine": null,
"address": null
}
}
にはどうすればstatus
の値を取得し、変数に割り当てることができていますか?