Woocommerce BTCZ Plugin, issues

Try to change the follows line in the btcz.php file, (line 178-189) and reload the plugin:

			$fields = array(
					'f' => "create",
					'p_addr' => urlencode($MerchantAddress),
					'p_pingback' => urlencode($PingbackUrl),
					'p_invoicename' => urlencode($InvoiceID),
					'p_email' => urlencode($MerchantEmail),
					'p_secret' => urlencode($Secret),
					'p_expire' => urlencode($Expire),
					'p_currency_code' => urlencode($CurrencyCode),
					'p_success_url' => urlencode($ReturnUrl),
					'p_amount' => urlencode($Amount)			
			);

by

		    $fields = array(
					'f' => "create",
					'p_addr' => urlencode($MerchantAddress),
					'p_pingback' => urlencode($PingbackUrl),
					'p_invoicename' => urlencode($InvoiceID),
					'p_email' => urlencode($MerchantEmail),
					'p_secret' => urlencode($Secret),
					'p_expire' => urlencode($Expire),
					'p_success_url' => urlencode($ReturnUrl),
					'p_amount_usd' => urlencode($Amount)			
			);

** Removed the line with “p_currency_code” and updated “p_amount” by “p_amount_usd”.

Should get this result (for $10)

3 Likes

It’s working

But then all payments stuck with USD. fix jus edit p_amount_usd” to any currency.
Better than nothing. But for most users is big problem :joy:
We need something like this https://stackoverflow.com/questions/18365551/woocommerce-get-woocommerce-currency-symbol

4 Likes

Awsome Bro!
@renuzit Could you check it for us?

1 Like

Yep, all payment will be converted from usd only.

If you change the “p_amount_usd” by “p_amount_eur”, the payment amount will be converted from euro to usd (10€ will also show in the payment panel as like 12.53$, as with the none modified plugin).

I was unable to get a conversion from swiss franc (chf) or rouble (rub) with the actual btcz.in API.

@renuzit: I don’t found any source of the btcz.in API. So expected that I’m not know exactly the usage, I think the issue is around the fixer.io API that in free version only allow euro based conversion.

2 Likes

Thank you so much Simonas.
It is working with usd

2 Likes

I just tested the btcz.in gateway with some different currency code by using p_amount and p_currency_code parameters: usd, cad, chf, xaf, rub and eur.

The only one that was not just is the USD that also give the amount in euro based conversion…

Until this problem is solved in btcz.in gateway, I put a condition in the btcz.php:

		if ($CurrencyCode == 'usd') {
			$fields = array(
					'f' => "create",
					'p_addr' => urlencode($MerchantAddress),
					'p_pingback' => urlencode($PingbackUrl),
					'p_invoicename' => urlencode($InvoiceID),
					'p_email' => urlencode($MerchantEmail),
					'p_secret' => urlencode($Secret),
					'p_expire' => urlencode($Expire),
					'p_success_url' => urlencode($ReturnUrl),
					'p_amount_usd' => urlencode($Amount)			
			);				
		} else {
			$fields = array(
					'f' => "create",
					'p_addr' => urlencode($MerchantAddress),
					'p_pingback' => urlencode($PingbackUrl),
					'p_invoicename' => urlencode($InvoiceID),
					'p_email' => urlencode($MerchantEmail),
					'p_secret' => urlencode($Secret),
					'p_expire' => urlencode($Expire),
					'p_currency_code' => urlencode($CurrencyCode),
					'p_success_url' => urlencode($ReturnUrl),
					'p_amount' => urlencode($Amount)			
			);				
		}

Hope this help !

2 Likes

Very much thanks for your Efforts Bro! <3
Noob question, which link can I share with FastTech for the working Woocommerce solution?!

2 Likes

Ideally would be that @JordanGreenies (on Github) update the project if someone as contact with. Or we could also fork it…

2 Likes

Thats the problem, we dont know who has the contact with him.
As I saw you forked it already :stuck_out_tongue:

1 Like

Yes, I forked it but I do the modification “on the flay” by testing it directly in the web server… Maybe the dev team could fork it and maintain the plugin?

2 Likes

So a small feedback on the Woocommerce plugin.

Because I’m think that the base issue is comming from the btcz.in gateway, and aslo that we don’t receive any answer in this forum from the developer, I decided to sent a message this morning directly from the “Contact us” form on the website to explain the problem. The automatic answer was that they will contact me back in 3 open days…

So the bellow message is for btcz.in team :


!! SERIOUSLY GUYS !! I have to wait until 3 days to expect to have a answer from you ? As a customer, maybe for a free use of the service, I would also never come back… Fortunately, I’m more as a simple customer!

The issue is serious, and as well if we have a workaround, It need to be fixed quickly ! So if you love the BTCZ community, support us (and give some feedback) ! can we continue to work with btcz.in or do we have to find quickly a other payement gateway solution ?


:wink: Anyway if it’s a free or paid service, BTCZ only will become stronger if we quickly solve issue like this. The community need to have more power of our related “free to use” services…

2 Likes

I don’t get answer from btcz.in. Reported 26 days ago… :face_with_raised_eyebrow:

2 Likes

No answer in 3 weeks from btcz.in, and more for you @simbav (26+19 days ago :hourglass:) … We will have to adapte the actual plugins for a new gateway. it’s a shame :disappointed:

2 Likes

I guess according to Murphy’s law, they will all appear once BitcoinZ is Mooning and will claim the respect for themselves. Lol

2 Likes

I juste finished the beta version plugin for WooCommerce that work with the pay.btcz.app.
You can get the installation instruction on my github.

@simbav, could you have a look and test it ?

2 Likes

With @cryptorex help’s, I added some needed feature on the gateway that is now working very fine, and I also updated the WP-woocommerce plugin. See the https://forum.btcz.rocks/t/community-hosted-payment-gateway/842/ topic for more info.

It 's working as expected ! But I’m not satisfied, about my self, in the plugin coding (in PHP). My PHP last practice are years ago. And any help will be welcome.

You can install the plugin in WordPress (or show the sources) by following the this : https://github.com/MarcelusCH/BTCz-Pay/tree/master/plugin/woocommerce3.4.

3 Likes

Going test this week, Thanks again :wink:

3 Likes

Hi!

What should I choose magento or woocommerce?

I want to create shop for 25000 products

I want to know your opinion

1 Like

i would go with magento with so many products…

+1 too many products for a woocommerce

1 Like