• Resolved tommyd17

    (@tommyd17)


    Hey,

    I’ve had a few cases in the past few weeks where the payment had failed, then the customer tried again and succeeded with the payment. Woocommerce then received the following information:
    Order charge successful in Stripe. Payment method: Klarna pay later

    A minute later the order was marked as failed again and this information was received:
    Payment authorization failed. Order status changed from In Process to Failed.

    I asked Stripe support, who said that only three events were sent: payment_intent.requires_action, charge.succeeded, payment_intent.succeeded
    So stripe told me to ask directly here.

    Here the woocommere comments if that helps: https://stripe.zendesk.com/attachments/token/DzUrRxSIa4iGDzz7DIF7zF0YR/?name=Bildschirmfoto+2021-12-08+um+13.58.44.png

    Can you understand this and look into this?

    Thank you, Thomas

Viewing 11 replies - 1 through 11 (of 11 total)
  • Plugin Author Payment Plugins

    (@mrclayton)

    Hi @tommyd17,

    What is the actual status of the payment in Stripe? Is this a Source or PaymentIntent? It appears to be a PaymentIntent based on the events Stripe says were triggered.

    Version 3.3.13 updated Klarna to use the new PaymentIntent API.

    The order note Payment authorization failed. can only be written if the customer’s payment failed and they are redirected back to the checkout page. So it’s odd that would happen after Stripe sends the payment_intent.succeeded.

    Kind Regards,

    Thread Starter tommyd17

    (@tommyd17)

    Hey @mrclayton,

    the status is “succeeded”. Its a PaymentIntent.

    Yes that’s what I thought too, that’s weird after the payment is successful…

    Here is the activity Log from the payment in stripe if that helps: https://imgur.com/a/JuYb0rR

    Thanks, Tom

    Plugin Author Payment Plugins

    (@mrclayton)

    Hi @tommyd17

    Can you navigate to the Woocommerce logs page and see if this payment intent was completed via the webhook? That will provide the answer to what’s going on.

    I suspect that while the redirect was occurring Stripe issued the payment intent succeeded event which the stripe plugin received and processed.

    When the redirect back to your checkout page was received the payment intent status was not accurate. So this looks like a synchronization issue.

    Kind regards

    Thread Starter tommyd17

    (@tommyd17)

    Hey @mrclayton ,

    can I send you the log somewhere private?

    Thanks, Tom

    Plugin Author Payment Plugins

    (@mrclayton)

    Hi @tommyd17,

    We don’t need the whole log entry, just look for a line that says either:

    payment_intent.succeeded webhook received. Payment has been completed.

    Or

    payment_intent.succeeded event received. Intent has been completed for order

    Depending on which entry is in the log, that determines if the payment was processed by the webhook or the redirect.

    You can always contact us via the Help button located in the plugin settings.

    Thread Starter tommyd17

    (@tommyd17)

    Hey,

    2021-12-07T18:58:04+00:00 INFO Webhook notification received: Event: source.failed. Payload: {

    2021-12-07T18:59:27+00:00 INFO Webhook notification received: Event: payment_intent.created. Payload: {

    2021-12-07T18:59:30+00:00 INFO Webhook notification received: Event: payment_intent.requires_action. Payload: {

    2021-12-07T19:00:35+00:00 INFO Webhook notification received: Event: payment_intent.succeeded. Payload: {

    2021-12-07T19:00:36+00:00 INFO payment_intent.succeeded event received. Intent has been completed for order 10422. Event exited.

    Does this help? Thanks!

    Plugin Author Payment Plugins

    (@mrclayton)

    @tommyd17,

    Is order #10422 one of the orders in question? It’s important that you’re finding the log entries for one of the orders affected by this.

    Thanks,

    Thread Starter tommyd17

    (@tommyd17)

    Hey!

    Yes that is the order ID & all of the Events above contain this number.

    Thanks, Tom

    Plugin Author Payment Plugins

    (@mrclayton)

    @tommyd17 based on the log entries, the Klarna payment was completed via the redirect to your checkout page. But, it was also a redirect that caused the failed status which doesn’t make sense.

    I am wondering if your customer perhaps had multiple browser tabs open. That is the only idea I have at the moment for how a redirect could have completed the payment but also set the order status to failed. It would have had to of been 2 separate requests being processed at nearly the same time.

    Thread Starter tommyd17

    (@tommyd17)

    Okay, that is weird.
    But you cannot think of an error on the checkout page or the payment setup right? So there should be configured everything correctly.

    I will monitor this issue and write back in this chat if it happens again, alright?

    Thanks, Tom

    Plugin Author Payment Plugins

    (@mrclayton)

    But you cannot think of an error on the checkout page or the payment setup right? So there should be configured everything correctly.

    There is only once place that order note for the failed payment can come from and it’s during the redirect back to your checkout page from the Klarna hosted payment page.

    I will monitor this issue and write back in this chat if it happens again, alright?

    Yes please keep us informed. I will set this thread to resolved but you can still comment in it with any updates.

Viewing 11 replies - 1 through 11 (of 11 total)
  • The topic ‘Webhook Payment authorization failed’ is closed to new replies.