mollie / PrestaShop1.6

BSD 2-Clause "Simplified" License
1 stars 4 forks source link

klarna paylater payments do not get status "completed" #23

Open Shoprunners opened 1 year ago

Shoprunners commented 1 year ago

Expected behavior

If we set the Prestashop "Sent" state on a klarna paylater order, it should mark all products as sent and mollie should set the state to "completed".

Actual behavior

This actually happens only in very rare occassions. See description below.

Steps to reproduce the behavior

klarnapaylater is set up with OrdersApi and "Automatischer Versand bei markiertem Status" = "automatic shipping with selected state" is activated on the extended configuration tab. 2 states in the next configuration are are selected, while one of them is "sent".

Customer buys a product with klarnapaylater and everything is fine so far. An xx_mollie_payments table entry is created:

transaction_id (ord_xxxxx), cart_id(123456), order_reference(mol_12312332132),method(klarnapaylater, bank_status(open), and created_at are filled. The fields order_id, updated_at are "NULL".

In very rare cases (6 out of 200), after updating the state (via webservice), to "sent" the order_id will be filled up with the prestashop id_order and the order_reference will be replaced with the actual prestashop order_reference and the bank_status switches to "complete". in most other cases a log message in the prestashop with "Shipment information cannot be sent. Order reference (XXX) has no payment information." is written. As far, as I can understand the source code, this happens, when no order_id can be found in above table ( see CanSendShipment") class. I guess the webhook communication backwards somehow fails most of the time?

Environment

Prestrashop 1.6.1.15

justelis22 commented 1 year ago

Hey there,

We will be glad to help you with this! Our team will check your case, and get back to you as soon as possible with an update.

-- Best Regards, Invertus Support team.

justelis22 commented 1 year ago

@Shoprunners,

Could you please send us your Back-Office, FTP, and SSH access to support@invertus.eu so that we could debug the issue?

-- Best Regards, Invertus Support team.

Shoprunners commented 1 year ago

Hi, did you receive our mail?

Could you please send us your Back-Office, FTP, and SSH access to support@invertus.eu so that we could debug the issue?

-- Best Regards, Invertus Support team.

justelis22 commented 1 year ago

Hi there @Shoprunners,

We have not received an email from you, please try to resend it.

-- Best Regards, Invertus Support team.

Shoprunners commented 1 year ago

Done

We have not received an email from you, please try to resend it.

-- Best Regards, Invertus Support team.

justelis22 commented 1 year ago

@Shoprunners,

It seems like we are having some kind of issues with the support@invertus.eu mailbox. Until we sort that issue out, could you please forward that email to me directly at justas.vaitkus@invertus.eu? Thank you for understanding!

-- Best Regards, Invertus Support team.

Shoprunners commented 1 year ago

Done

Shoprunners commented 1 year ago

hi, btw. another customer faces the same problem with the latest 1.7 based version.

justelis22 commented 1 year ago

Hi @Shoprunners,

We are currently under investigation. Mollie's team is communicating with Klarna to make sure this issue is solved. As soon as we have some updates, we will let you know.

Thank you for your patience and understanding!

-- Best Regards, Invertus Support team.

Shoprunners commented 1 year ago

Hi, any news here? Problem still occurs.

Hi @Shoprunners,

We are currently under investigation. Mollie's team is communicating with Klarna to make sure this issue is solved. As soon as we have some updates, we will let you know.

Thank you for your patience and understanding!

-- Best Regards, Invertus Support team.