<?php $response = json_decode('{ "id": "evt_17nbtYKUd4opXxchKeF6HgHi", "object": "event", "api_version": "2015-10-16", "created": 1457647476, "data": { "object": { "id": "in_17nbtYKUd4opXxch4dOedKfT", "object": "invoice", "amount_due": 0, "application_fee": null, "attempt_count": 0, "attempted": true, "charge": null, "closed": true, "currency": "usd", "customer": "cus_83jM3RNq9uJl3q", "date": 1457647476, "description": null, "discount": null, "ending_balance": 0, "forgiven": false, "lines": { "object": "list", "data": [ { "id": "sub_83jMwogqR9O71P", "object": "line_item", "amount": 0, "currency": "usd", "description": null, "discountable": true, "livemode": true, "metadata": { "tax_info": "{\"trial_tax\":\"0.00\",\"trial_tax_per\":\"0%\",\"tax\":\"0.00\",\"tax_per\":\"0%\"}" }, "period": { "start": 1457647476, "end": 1458943476 }, "plan": { "id": "s2_21028876a71593f57ee39916c8d3e02f", "object": "plan", "amount": 100, "created": 1454710644, "currency": "usd", "interval": "day", "interval_count": 30, "livemode": true, "metadata": { "recurring": "true", "recurring_times": "-1" }, "name": "$1 for 15-Day Trial then renews according to usage.", "statement_descriptor": null, "trial_period_days": 15 }, "proration": false, "quantity": 1, "subscription": null, "type": "subscription" } ], "has_more": false, "total_count": 1, "url": "\/v1\/invoices\/in_17nbtYKUd4opXxch4dOedKfT\/lines" }, "livemode": true, "metadata": [], "next_payment_attempt": null, "paid": true, "period_end": 1457647476, "period_start": 1457647476, "receipt_number": null, "starting_balance": 0, "statement_descriptor": null, "subscription": "sub_83jMwogqR9O71P", "subtotal": 0, "tax": null, "tax_percent": null, "total": 0, "webhooks_delivered_at": null } }, "livemode": true, "pending_webhooks": 2, "request": "req_83jMiqaynfazQr", "type": "invoice.payment_succeeded" }'); print $response->data->object->lines->data[0]->period->end;
You have javascript disabled. You will not be able to edit any code.
Value for `_results` contains invalid data `array`