This tool checks if your orders.json file is set up correctly for the success.php integration.
✅ PASS - orders.json found at:
/home/urbanet/www/backend/../data/orders.json
✅ PASS - Valid JSON format
Total orders in file: 12
Analyzing first order (most recent):
❌ FAIL - Missing or Empty
The stripe_session_id field is either missing or empty.
This means:
🔧 HOW TO FIX:
Edit your stripe-webhook.php and find the section where you save orders to JSON.
It should look something like:
$orderData = [
'order_number' => $orderNumber,
'customer_name' => $session->customer_details->name,
'customer_email' => $session->customer_details->email,
'status' => 'confirmed',
// ... other fields
];
ADD THIS LINE:
'stripe_session_id' => $session->id,
So it becomes:
$orderData = [
'order_number' => $orderNumber,
'stripe_session_id' => $session->id, // ← ADD THIS
'customer_name' => $session->customer_details->name,
'customer_email' => $session->customer_details->email,
'status' => 'confirmed',
// ... other fields
];
After editing, make another test payment and check again.
🚫 Cannot proceed yet
First, fix your webhook to save stripe_session_id:
stripe-webhook.php'stripe_session_id' => $session->id, to order dataShowing last 3 order(s):
[
{
"order_number": "ORD-BHSKN6HH",
"email": "stripe@example.com",
"name": "Jenny Rosen",
"status": "confirmed"
},
{
"order_number": "ORD-T5SX11SZ",
"stripe_session_id": "cs_test_a1yuPQndYgKjFgYCV520lTy66ulolaHCcnnVVmAGKser1xcSOCT5SX11sZ",
"customer_name": "jjjj",
"customer_email": "rpetrucci@graphema.fr",
"shipping_country": "FR",
"status": "confirmed",
"estimated_delivery": "2025-12-24",
"created_at": "2025-12-19T19:51:56+01:00",
"locale": "fr"
},
{
"order_number": "ORD-AYIRG1BY",
"stripe_session_id": "cs_test_a1UqqktTzJd5mwoeFvvXfg7oH2eGsKoZFkt1rY7jdx3LZjxtY5AyiRG1by",
"customer_name": "kkkk",
"customer_email": "rpetrucci@graphema.fr",
"shipping_country": "FR",
"status": "confirmed",
"estimated_delivery": "2025-12-24",
"created_at": "2025-12-19T20:03:19+01:00",
"locale": "fr"
}
]DELETE THIS FILE AFTER TESTING
Once you've verified your setup is correct, delete verify-orders-structure.php from your server for security reasons.
This file shows sensitive order information and should not be left on a live server.