Idan-Neeman / Crypto-Payments-Woo

Accept Bitcoin/FairCoin payment from WooCommerce store without help of middle man! Receive payment instantly and directly to your own coin address (generate on-the-fly by Electrum) without rotating to 3rd party wallet.
GNU General Public License v2.0
2 stars 1 forks source link

wo #2

Closed Rockinrqt closed 3 years ago

Rockinrqt commented 3 years ago

I get this error when I try to update the plugin: "Bitcoin payment gateway is not operational! Electrum Master Public Key is invalid. Must be 128 or 111 characters long, consisting of digits and letters."

I copied the key directly so I don't know what else to do.

Idan-Neeman commented 3 years ago

I would love to help you, could you please create a Master Public Key and publish it here so I can find out what the error is?

Rockinrqt commented 3 years ago

This is the Master Public Key

zpub6mf4W8jMKMKnSji6pnLV2VkhmRFSvyTio67nFwmnZNSevWkS1z7e9et5r8A7b4dxxmVZwsvR2kniT73vC3QDUnotNmEyXqroADxbEmdpYdE

Idan-Neeman commented 3 years ago

Ohh ok I got it :) This plugin support xPub keys (P2PKH script type) but you try to set zPub. Please generate xPub key and it's should work well. You can convert your zPub MPK into xPub using this converter. Please do that carefully!

Rockinrqt commented 3 years ago

I don't think it worked. I sent a test and it didn't go through to my wallet.

Idan-Neeman commented 3 years ago

Hey, did you check before sending if the address appears on your wallet? do you set a confirmations validation in the plugin settings?

Rockinrqt commented 3 years ago

how many Required Confirmations should there be?

Idan-Neeman commented 3 years ago

1 - by default (configurable).

Rockinrqt commented 3 years ago

It said that it was confirmed but it didn't go into my wallet.

Idan-Neeman commented 3 years ago

Do you see the transaction as approved on the WooCommerce, but can't see that in your electrum? Are you sure that the MPK you set, is correct from your electrum? did you convert the zPub to xPub using the converter?

Rockinrqt commented 3 years ago

"Do you see the transaction as approved on the WooCommerce, but can't see that in your electrum?" yes "Are you sure that the MPK you set, is correct from your electrum? did you convert the zPub to xPub using the converter?" I took the MPK from my electrum, went to the site you gave me, made sure the conversion dropdown was correct, and then converted it.

Rockinrqt commented 3 years ago

the plugin accepted it but the address that it gave me didn't show up in my electrum wallet. I copied it from the site and [command f] to look for it in there and it didn't show up.

Idan-Neeman commented 3 years ago

If the transaction marked as approved, so it's mean the plugin works well. I guess the problem is that you put an incorrect MPK, you should check in google how to get electrum xPub MPK (maybe the converter is a bad idea).

Rockinrqt commented 3 years ago

wordpress says that it worked so that makes me think that I have connected to someone else's wallet.

Idan-Neeman commented 3 years ago

You need to create electrum wallet and choose legacy (p2pkh) as script type, not segwit...

https://preview.redd.it/2vqb45iep6n11.png?width=603&format=png&auto=webp&s=ded2617247e56113fb307e07353121610c763825

Rockinrqt commented 3 years ago

ok, that worked. Thanks. Can you update your instructions so this doesn't happen to other people?

Idan-Neeman commented 3 years ago

Yeah sure! Thank you :)