Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

106
Vistas
PHP array with Paypal response Array

I have been having an issue trying to get the value of one field from a Paypal response array. I have been working on it for hours and can not figure it out.

I want the value of $related_resources->sale->id, however I tried

$resource_id = $related_resources->sale->id; 

AND

foreach ($related_resources as $related_resource) {
$resource_id = $related_resource->sale-id;
}

and neither have worked. Hopefully someone will be able to help me out and save me from this headache.

"related_resources": [ { "sale": { "id": "000000000000", "state": 
"completed", "amount": { "total": "0.01", "currency": "USD", "details": { 
"subtotal": "0.01" } }, "payment_mode": "INSTANT_TRANSFER", 
"protection_eligibility": "ELIGIBLE", "protection_eligibility_type": 
"ITEM_NOT_RECEIVED_ELIGIBLE,UNAUTHORIZED_PAYMENT_ELIGIBLE", 
"transaction_fee": { "value": "0.01", "currency": "USD" }, "receipt_id": 
"00000000000", "parent_payment": "PAY-000000000000000", "create_time": 
"2017-04-28T14:59:05Z", "update_time": "2017-04-28T14:59:05Z"...
over 4 years ago · Santiago Trujillo
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda