BTCPrivate / btcp-widget

JS widget for online shop payments
5 stars 2 forks source link

Sending transaction data to store #55

Closed mattpass closed 6 years ago

mattpass commented 6 years ago

The merchant will be provided the option to have transaction data sent to our server or not.

If they enable this and btcpWidget.sendTransactionData is true, the following data will be POST'd on transaction completion:

Suggested params: date_time - eg 2017-05-03 11:54:12 address_merchant_last_6 - eg 3dh84k address_user_last_6 - eg 9hd398 amount - eg 1.24876338 domain - eg https://icecoder.net

API endpoint for this to be decided

mattpass commented 6 years ago

@daniel-farina is well underway with storing transaction details - may want to consider the above and/or close issue?

mattpass commented 6 years ago

postServerNotification function started but needs finishing - @daniel-farina, let me know where you're at on this?

mattpass commented 6 years ago

postServerNotification was actually OK (and even better since changing from get to post methods). So we have a suitable solution here and issue can be closed.