jaimehgb / Mycelium-Opencart-plugin

An extension for Opencart to receive Bitcoin payments through Mycelium
MIT License
2 stars 4 forks source link

[Feature Request] Push Payment Information back to Opencart when updating #7

Open astupidmoose opened 7 years ago

astupidmoose commented 7 years ago

At the moment, Mycelium sends the API that the order is now paid.

I would like to see information being pushed from gear into the order status "comment" field when this happens.

Example:

Amount in BTC : 0.41905909 Amount Paid in BTC: 0.41905909 Payment Address: ...LEKvevMdJkVXsUffwTmy2... Exchange Rate: 3006.735887 Transaction ID: ...de4cc3c2b6faa352f44468ac094cdc963f6317...

astupidmoose commented 7 years ago

gear

Attached is example in admin area based on html mockup

jaimehgb commented 7 years ago

Good point 👍

Actually mycelium sends all that info along with the callback, but it is not being stored anywhere. Working on this.

astupidmoose commented 7 years ago

As an "advanced" implementation. We could also store the data received from gear into a module specific table on the database. This could be referenced by order number, and used at a later date to make reports.

astupidmoose commented 7 years ago

Opencart is now printing this information, however some is missing/incorrect:

"Exchange Rate: 100000000 Txids: "