for example, I have a wp site where I have installed Woocommerce, PaidMembershipPro, and AffiliateWP plugins. Now, I know how to make integrations for a payment method for these plugins using Electrum, but if my affiliates earn some commission I need to pay them in bitcoins, and for example, I put the private key from my dashboard, and make mass payment to all affiliates.
I know that this is possible but can`t find any documentation about this.
The electrum merchant only for receiving and not for sending a payment to your affiliate members.
Why not make a page and tell them that you can make a payout every week and set if what day you plan to send their commission.
You can manually send payments to your affiliates directly from your electrum. Sample below.
https://i.imgur.com/45okwrP.png?1
However, if you want to automate the process you need to develop and WordPress plugin through JSON-RPC this is I think you can use to make a sending request. Check this one and maybe this is what you are looking for http://docs.electrum.org/en/latest/coldstorage_cmdline.html
Take look in this:
https://www.goldcoders.com/?page=setup_electrum
Only thing I don't want here is to storage private key anywhere on site and that is possible with this script to (manual mass pay).
I want to do the same, but for Wordpress, and integrate plugin with most popular WP plugins. So, when an affiliate makes a withdrawal request I made payment using my private key.
On this way, there will no be the third part fee charges (GoUrl, CoinPayments etc.) and not waiting for withdrawal for site owners.