wl-online-payments-direct / plugin-prestashop

Prestashop plugin for Worldline
1 stars 0 forks source link

Split the gift wrapping from the product line + pay without wrapping #2

Open d33x opened 1 year ago

d33x commented 1 year ago

1) Currently, when there is gift wrapping, you add the wrapping cost to the first product cost line. It would be interesting to split the line as you do for shipping: gift-wrapping-prestashop gift-wrapping-wordline

2) I had a bug: a user chose gift wrapping but didn't pay for it via Wordline. How is this possible? I can give the transaction IDs, etc. in private if necessary. gift-wrapping-not-paid-wordline

WorldlineShoppingCarts commented 1 year ago

Hi @d33x,

We are assuming the gift wrapping is a feature added by another PrestaShop add-on. Could you tell us which add-on you are using?

  1. Our plugin sends all item details in the current PrestaShop cart, so that they can be displayed on the payment page as well. The fact that the giftwrap amount is not tallied in the total, and not sent as an item, might mean the add-on does not actually insert it as an item in the PrestaShop cart, they might be applying an unconventional method of adding this item.

  2. This is pretty much summarized in point 1. Since the giftwrap amount is not tallied and not sent as an item to Worldline, it is not being paid for. However, the error message you see in the PrestaShop order is a feature of our plugin to ensure there are no discrepancies between the assumed cart amount and the total paid amount.

The first step in resolving the issue would be to find out which plugin or feature you are using for giftwrapping. Eventually, we would also need access to it's code. This will be crucial in assessing where the compatibility issue lies.

Thank you.

Worldline Shopping Cart team.

d33x commented 1 year ago

Hi @WorldlineShoppingCarts

This is a basic PrestaShop feature. See "Shop Parameters -> Order Settings -> Gift options": gift-wrapping

https://docs.prestashop-project.org/1.7-documentation/user-guide/configuring-shop/shop-parameters/order-settings/orders-preferences#orderspreferences-giftoptions

Thank you

WorldlineShoppingCarts commented 1 year ago

Hi @d33x,

Thank you for pointing this out, we will try to reproduce this error and if it's indeed the native behavior, we will open a bug with our developers.

In the meanwhile, could you provide us with the below information :

We will keep you informed of any progress.

Thank you.

Worldline Shopping Carts team.

d33x commented 1 year ago

Thank you

WorldlineShoppingCarts commented 1 year ago

Hi @d33x,

We just finished testing the second issue and we are unable to recreate. We tested many orders; with one item; multiple items, but we are unable to reproduce.

To proceed with the investigation we will request that we continue outside of Github. We will need to exchange private information and a public website is not suitable for this.

Thank you.

Worldline Shopping Carts team.

d33x commented 1 year ago

@WorldlineShoppingCarts

Done today (case 03229543)

The problem is that I noticed this problem 6 months later (when refunding the customer following a return) but I no longer have the logs from that date.

WorldlineShoppingCarts commented 1 year ago

Hi @d33x,

Thanks for creating the ticket. In the meanwhile our developers looked into the issue and found a bug linked to unusual customer behavior. The unusual behavior is when a customer redirects to the Worldline hosted payment page, then clicks back (browser), adds giftwrapping, the giftwrap amount is not taken into account on the next redirection to Worldline. Vice versa, if the customer has added giftwrapping, then goes back to remove it, it isn't being removed from the total amount at Worldline. We can only suppose this is what happened with your customer as yours and our logs are no longer available since it dates back to 6 months ago.

Either way, we have opened a bug to correct this behavior, the fix should be available in the next release. Please keep an eye on our releases by watching this repository, The release notes should specify this fix.

We will also include an improvement so that the giftwrapping gets added as an item, so it's presented on the Worldline payment page as an item.

Worldline Shopping Carts team.

d33x commented 1 year ago

Great, thank you @WorldlineShoppingCarts

d33x commented 10 months ago

@WorldlineShoppingCarts Just a reminder: not yet fixed in 1.4.1