The earlier timestamp is what matches up with the payment:

Code: Select all
Installed Version: CE Phoenix v1.1.0.1
Code: Select all
Installed Version: CE Phoenix v1.1.0.1Are you saying I should not have money in Stripe for either of these orders because their status is "Preparing [Stripe SCA]"? I do have money in Stripe for one of them.raiwa wrote: ↑Mon Apr 07, 2025 7:05 am Hi,
Stripe saves all orders when the customer goes to the checkout confirmation page and they will stay at "Preparing [Stripe SCA]" status. DIfferent cart content will be saved as different orders. Completed and successful paid orders will be switched to the "Set Order Processed Status" status.
The Stripe hook will auto-delete the uncompleted orders after the amount of days entered in the module under "Days waiting to delete Preparing Stripe Orders." By default it's 2 days.

Thank you! Do you have any idea about these PHP warnings?
Code: Select all
[root@www php-fpm]# cat www-error.log
[08-Apr-2025 15:55:43 America/Chicago] Stripe Notice: Undefined property of Stripe\PaymentIntent instance: charges
[08-Apr-2025 15:55:43 America/Chicago] PHP Warning: Attempt to read property "data" on null in /var/www/html/shop/ext/modules/payment/stripe_sca/webhook.php on line 280
[08-Apr-2025 15:55:43 America/Chicago] PHP Warning: Trying to access array offset on null in /var/www/html/shop/ext/modules/payment/stripe_sca/webhook.php on line 280
[08-Apr-2025 15:55:43 America/Chicago] PHP Warning: Attempt to read property "billing_details" on null in /var/www/html/shop/ext/modules/payment/stripe_sca/webhook.php on line 282
[08-Apr-2025 15:55:43 America/Chicago] PHP Warning: Trying to access array offset on null in /var/www/html/shop/ext/modules/payment/stripe_sca/webhook.php on line 282
[08-Apr-2025 15:55:43 America/Chicago] PHP Warning: Attempt to read property "billing_details" on null in /var/www/html/shop/ext/modules/payment/stripe_sca/webhook.php on line 283
[08-Apr-2025 15:55:43 America/Chicago] PHP Warning: Trying to access array offset on null in /var/www/html/shop/ext/modules/payment/stripe_sca/webhook.php on line 283
Code: Select all
} else {
$error_message = "unknown event";
processFailure($intent, $stripe_sca, $error_message);
http_response_code(200);
exit();
}
Code: Select all
if ($event->type == "payment_intent.succeeded") {
$intent = $event->data->object;
$customer_id = $intent->metadata['customer_id'];
try {
processPayment($intent, $stripe_sca, $currencies);
} catch (Exception $e) {
$stripe_sca->event_log($customer_id, "webhook error", $e->getMessage(), $e->getTraceAsString());
echo MODULE_PAYMENT_STRIPE_SCA_WEBHOOK_SERVER;
http_response_code(500);
exit();
}
http_response_code(200);
exit();
} elseif ($event->type == "payment_intent.payment_failed") {
$intent = $event->data->object;
$error_message = $intent->last_payment_error ? $intent->last_payment_error->message : "";
processFailure($intent, $stripe_sca, $error_message);
http_response_code(200);
exit();
} else {
$error_message = "unknown event";
processFailure($intent, $stripe_sca, $error_message);
http_response_code(200);
exit();
}