blockonomics / prestashop-plugin

Accept bitcoins on your website, payments go directly into your wallet
Other
16 stars 22 forks source link

Update callback to update invoices using reference number instead of ID #139

Closed thisisayush closed 2 years ago

thisisayush commented 3 years ago

Fixes #138

Using the id_order stored, the order with the same reference number is fetched, and all the underlying orders are then updated for paid status.

thisisayush commented 3 years ago

image

E.g. Orders with same reference are updated when payment is received

DarrenWestwood commented 2 years ago

This is working well at marking all the orders as paid/underpaid respectively.

Paid: Multiple Orders Multiple Orders 3 Is there a better way of handling the split payments saved to the order? Either by only linking the relative payment to the order, as with underpayments, or ensuring each payment has the txid?

Underpayment: Multiple Orders 2 Multiple Orders 4

thisisayush commented 2 years ago

Split payments are handled automatically by Prestashop, actual payment is recoded against the reference of order at once. Will look more into it to see what can be done.

This is related to the following epic on Prestashop, https://github.com/PrestaShop/PrestaShop/issues/15491

thisisayush commented 2 years ago

PS Validator Passed ✅