{
"id": "cs_xxxxx",
"resource": "checkout_session",
"amount": 100000,
"billing_details_collection": "always",
"customer_reference_id": null,
"customer_id": "cus_xxxxx",
"customer": {
"billing": null,
"currency": "PHP",
"email": "test@example.com",
"livemode": false,
"name": "Test Customer",
"metadata": null,
"created_at": 1721726975,
"updated_at": 1721726975
},
"client_secret": "cs_xxxxx_secret_xxxxx",
"status": "active",
"currency": "PHP",
"line_items": [
{
"id": "cs_li_xxxxx",
"resource": "checkout_session_line_item",
"name": "Test Product",
"amount": 10000,
"quantity": 1,
"description": null,
"image": null
}
],
"livemode": false,
"url": "https://checkout.payrexhq.com/c/cs_xxxxx_secret_xxxxx",
"payment_intent": {
"id": "pi_xxxxx",
"resource": "payment_intent",
"amount": 10000,
"client_secret": "pi_xxxxx_secret_xxxxx",
"currency": "PHP",
"livemode": false,
"payment_methods": ["card"],
"status": "awaiting_payment_method",
"next_action": null,
"customer": {
"id": "cus_xxxxx",
"resource": "customer",
"billing": null,
"billing_statement_prefix": "RKT3PSRX",
"currency": "PHP",
"email": "test@example.com",
"livemode": false,
"name": "Test Customer",
"next_billing_statement_sequence_number": "1",
"metadata": null,
"created_at": 1721726975,
"updated_at": 1721726975
},
"amount_received": 0,
"amount_capturable": 0,
"description": null,
"metadata": null,
"payment_method_id": null,
"payment_method_options": {
"card": {
"capture_type": "automatic",
"request_three_d_secure": "any"
}
},
"last_payment_error": null,
"latest_payment": null,
"return_url": null,
"statement_descriptor": null,
"created_at": 1721726975,
"updated_at": 1721726975
},
"metadata": null,
"statement_descriptor": null,
"success_url": "https://example.com/success",
"cancel_url": "https://example.com/cancel",
"payment_methods": ["card"],
"payment_method_options": {
"card": {
"capture_type": "automatic"
}
},
"description": null,
"submit_type": "pay",
"expires_at": 1721813375,
"created_at": 1721726975,
"updated_at": 1721726975
}
|