Utilizé un metodo para pasarlo todo a array.
Ahora tengo esto:
Código:
array(8) {
["id"]=>
string(28) "PAY-854213594E541481RKKS7GQA"
["create_time"]=>
string(20) "2013-12-09T16:43:44Z"
["update_time"]=>
string(20) "2013-12-09T16:44:01Z"
["state"]=>
string(8) "approved"
["intent"]=>
string(4) "sale"
["payer"]=>
array(2) {
["payment_method"]=>
string(6) "paypal"
["payer_info"]=>
array(5) {
["email"]=>
string(19) "[email protected]"
["first_name"]=>
string(7) "Cliente"
["last_name"]=>
string(6) "Orozco"
["payer_id"]=>
string(13) "U8C2RMNA4SP9E"
["shipping_address"]=>
array(5) {
["line1"]=>
string(9) "1 Main St"
["city"]=>
string(8) "San Jose"
["state"]=>
string(2) "CA"
["postal_code"]=>
string(5) "95131"
["country_code"]=>
string(2) "US"
}
}
}
["transactions"]=>
array(1) {
[0]=>
array(4) {
["amount"]=>
array(3) {
["total"]=>
string(6) "100.00"
["currency"]=>
string(3) "USD"
["details"]=>
array(1) {
["subtotal"]=>
string(6) "100.00"
}
}
["description"]=>
string(14) "Lo que pagaras"
["item_list"]=>
array(1) {
["items"]=>
array(1) {
[0]=>
array(4) {
["name"]=>
string(23) "video: federer en paris"
["price"]=>
string(6) "100.00"
["currency"]=>
string(3) "USD"
["quantity"]=>
string(1) "1"
}
}
}
["related_resources"]=>
array(1) {
[0]=>
array(1) {
["sale"]=>
array(7) {
["id"]=>
string(17) "90052198EU831541J"
["create_time"]=>
string(20) "2013-12-09T16:43:44Z"
["update_time"]=>
string(20) "2013-12-09T16:44:01Z"
["state"]=>
string(9) "completed"
["amount"]=>
array(2) {
["total"]=>
string(6) "100.00"
["currency"]=>
string(3) "USD"
}
["parent_payment"]=>
string(28) "PAY-854213594E541481RKKS7GQA"
["links"]=>
array(3) {
[0]=>
array(3) {
["href"]=>
string(65) "https://api.sandbox.paypal.com/v1/payments/sale/90052198EU831541J"
["rel"]=>
string(4) "self"
["method"]=>
string(3) "GET"
}
[1]=>
array(3) {
["href"]=>
string(72) "https://api.sandbox.paypal.com/v1/payments/sale/90052198EU831541J/refund"
["rel"]=>
string(6) "refund"
["method"]=>
string(4) "POST"
}
[2]=>
array(3) {
["href"]=>
string(79) "https://api.sandbox.paypal.com/v1/payments/payment/PAY-854213594E541481RKKS7GQA"
["rel"]=>
string(14) "parent_payment"
["method"]=>
string(3) "GET"
}
}
}
}
}
}
}
["links"]=>
array(1) {
[0]=>
array(3) {
["href"]=>
string(79) "https://api.sandbox.paypal.com/v1/payments/payment/PAY-854213594E541481RKKS7GQA"
["rel"]=>
string(4) "self"
["method"]=>
string(3) "GET"
}
}
}
Como manipulo esos datos?
Gracias