Conversation
supportWhere can I look to debug why orders aren’t getting updated from CoinPayments I have been using this plugin for years, and my orders would usually get automatic “notes” added to the order. For example: Order status changed from Pending payment to Processing. CoinPayments.net Payment Status: Complete CoinPayments.net Payment Status: Funds received and confirmed, sending to you shortly… CoinPayments.net Payment Status: Waiting for buyer funds… Unfortunately, I recently updated woocommerce (not this plugin), and new orders in cryptocurrency are not getting updated. Where can I go to debug what’s wrong? Ideally, there would be a button to press in this plugin to test bidirectional communication. If I actually have to create an order, it makes it much harder to troubleshoot. And I don’t know if I have to enable debug settinge somewhere — or in which log to look. Please tell me how I can troubleshoot issues with orders being updated from CoinPayments.
It looks like this is the line that’s responsible for adding the note to the order in woocommerce: https://github.com/CoinPaymentsNet/coinpayments-woocommerce/blob/c0849d3e0a8f25014187a29f75acfaab07f76bdb/class-wc-gateway-coinpayments.php#L461
Unfortunately, CoinPayments apparently doesn’t respond to support threads here. That’s bad for both of us, because it prevents common questions about this plugin from being find-able by others (search before asking). You have to open a support ticket on their website everytime. For the benefit of others, I’ll describe here what CoinPayments told me in our private support ticket. It looks like (as the code linked-to above suggests) that the status updates are made by IPN = Instant Payment Notifications. If you log into your CoinPayments accounts, you can get a list of the past 30 days worth of transactions to your account by going to the “IPN History” page via Account -> IPN History. Or go here: https://www.coinpayments.net/acct-ipn-history That page has a table. Each row in the table has an entry for a payment. There’s a row for Time Created, Type, Payment/Txn ID, Status, Sent Successfully, Last Sent, and Resend. “Status” appears to refer to the payment status by the customer. For me, I had three Status types. “0” for ‘Waiting for buyer funds…’, “1” for ‘Funds received and confirmed, sending to you shortly…’, and 100 for ‘Complete’. “Sent Successfully” apparently does *not* refer to the customer sending the funds, but CoinPayments sending the IPN to your (wordpress) server. In my case, I had “Yes” for this column on all the rows before the upgrade, and “No” for all those after the upgrade. The last column (Resend) has a checkbox. If you tick this checkbox and click the “Re-send checked IPN(s)” button below the table, it will try to resend the payment notification to your server. I was able to use this form to trigger CoinPayments to try to update my woocommerce page. When I did that, I quickly saw this in my web server access logs: "POST /?wc-api=WC_Gateway_Coinpayments HTTP/1.1" 200 467 "-" "CoinPayments.net IPN Generator" And then you can monitor your error logs and troubleshoot the issue. This reply was modified 1 year, 1 month ago by maltfield .
For more info, see the official CoinPayments documentation on IPNs here: https://www.coinpayments.net/merchant-tools-ipn
It looks like this is the line that’s responsible for adding the note to the order in woocommerce: https://github.com/CoinPaymentsNet/coinpayments-woocommerce/blob/c0849d3e0a8f25014187a29f75acfaab07f76bdb/class-wc-gateway-coinpayments.php#L461
Unfortunately, CoinPayments apparently doesn’t respond to support threads here. That’s bad for both of us, because it prevents common questions about this plugin from being find-able by others (search before asking). You have to open a support ticket on their website everytime. For the benefit of others, I’ll describe here what CoinPayments told me in our private support ticket. It looks like (as the code linked-to above suggests) that the status updates are made by IPN = Instant Payment Notifications. If you log into your CoinPayments accounts, you can get a list of the past 30 days worth of transactions to your account by going to the “IPN History” page via Account -> IPN History. Or go here: https://www.coinpayments.net/acct-ipn-history That page has a table. Each row in the table has an entry for a payment. There’s a row for Time Created, Type, Payment/Txn ID, Status, Sent Successfully, Last Sent, and Resend. “Status” appears to refer to the payment status by the customer. For me, I had three Status types. “0” for ‘Waiting for buyer funds…’, “1” for ‘Funds received and confirmed, sending to you shortly…’, and 100 for ‘Complete’. “Sent Successfully” apparently does *not* refer to the customer sending the funds, but CoinPayments sending the IPN to your (wordpress) server. In my case, I had “Yes” for this column on all the rows before the upgrade, and “No” for all those after the upgrade. The last column (Resend) has a checkbox. If you tick this checkbox and click the “Re-send checked IPN(s)” button below the table, it will try to resend the payment notification to your server. I was able to use this form to trigger CoinPayments to try to update my woocommerce page. When I did that, I quickly saw this in my web server access logs: "POST /?wc-api=WC_Gateway_Coinpayments HTTP/1.1" 200 467 "-" "CoinPayments.net IPN Generator" And then you can monitor your error logs and troubleshoot the issue. This reply was modified 1 year, 1 month ago by maltfield .
For more info, see the official CoinPayments documentation on IPNs here: https://www.coinpayments.net/merchant-tools-ipn