Sofort: Order marked as ‘Paid’ although sofort payment did’nt go through
-
Hi,
Paypal and Credit Card p. methods work fine. However when a Sofort payment does not go through (Cancelled,Failed…) we do not receive any Woocommerce notification and the order status is marked as ‘Processing’ and payment method as ‘Paid’. This causes many false order processing which are mistakenly perceived as successfully paid.
Here is the Stripe log for the API calls from WC of the latest case of the failed Sofort payment. (Private details were deleted).
LOG 1:
Event details
ID
evt_1FqQguGj3lbIwgxB4seTuYcP
Date
16/12/2019, 22:01:20
Type
source.canceled
Source
Automatic{
“object”: {
“id”: “src_1FqPjjGj3lbIwgxBSGKXk53c”,
“object”: “source”,
“amount”: 12500,
“client_secret”: “src_client_secret_GNA3hl7N7C2ljA70RdckxPqr”,
“created”: 1576526411,
“currency”: “eur”,
“flow”: “redirect”,
“livemode”: true,
“metadata”: {
},
“owner”: {
“address”: {
“city”: “____”,
“country”: “__”,
“line1”: “____________”,
“line2”: “”,
“postal_code”: “____”,
“state”: “__”
},
“email”: “________________”,
“name”: “________________”,
“phone”: “_______________”,
“verified_address”: null,
“verified_email”: null,
“verified_name”: null,
“verified_phone”: null
},
“redirect”: {
“failure_reason”: null,
“return_url”: “https://www.mykilos.com/de/zur-kasse/order-received/12707/?key=wc_order_BRwhivpmbCg5Q&utm_nooverride=1&order_id=12707”,
“status”: “pending”,
“url”: “https://hooks.stripe.com/redirect/authenticate/src_1FqPjjGj3lbIwgxBSGKXk53c?client_secret=src_client_secret_GNA3hl7N7C2ljA70RdckxPqr”
},
“sofort”: {
“country”: “DE”,
“preferred_language”: “de”,
“bank_code”: null,
“bic”: null,
“bank_name”: null,
“iban_last4”: null,
“statement_descriptor”: null
},
“statement_descriptor”: null,
“status”: “canceled”,
“type”: “sofort”,
“usage”: “single_use”
}
}LOG 2:
evt_1FqPizGj3lbIwgxB2QAyGIBA
Date
16/12/2019, 20:59:25
Type
source.failed
Source
Automatic
Event data
{
“object”: {
“id”: “src_1FqPhWGj3lbIwgxBwhGVk2Zh”,
“object”: “source”,
“amount”: 12500,
“client_secret”: “src_client_secret_GNA1JOAX4uiM1rU87URSYakZ”,
“created”: 1576526274,
“currency”: “eur”,
“flow”: “redirect”,
“livemode”: true,
“metadata”: {
},
“owner”: {
“address”: {
“city”: “_____”,
“country”: “__”,
“line1”: “______”,
“line2”: “”,
“postal_code”: “_____”,
“state”: “__”
},
“email”: “__________”,
“name”: “_____________”,
“phone”: “________”,
“verified_address”: null,
“verified_email”: null,
“verified_name”: null,
“verified_phone”: null
},
“redirect”: {
“failure_reason”: “user_abort”,
“return_url”: “https://www.mykilos.com/de/zur-kasse/order-received/12707/?key=wc_order_BRwhivpmbCg5Q&utm_nooverride=1&order_id=12707”,
“status”: “failed”,
“url”: “https://hooks.stripe.com/redirect/authenticate/src_1FqPhWGj3lbIwgxBwhGVk2Zh?client_secret=src_client_secret_GNA1JOAX4uiM1rU87URSYakZ”
},
“sofort”: {
“country”: “DE”,
“preferred_language”: “de”,
“bank_code”: null,
“bic”: null,
“bank_name”: null,
“iban_last4”: null,
“statement_descriptor”: null
},
“statement_descriptor”: null,
“status”: “failed”,
“type”: “sofort”,
“usage”: “single_use”
}
}Why did the order go through despite the fact it didn’t go through and why isn’t the order status automatically set to ‘Failed’ when such thing happens?
Thx
Tal
- The topic ‘Sofort: Order marked as ‘Paid’ although sofort payment did’nt go through’ is closed to new replies.