Forum Replies Created
-
AuthorPosts
-
alexg
KeymasterHello,
In the example above, the only thing that’s missing is the plugin headers (you can use the ones from https://gist.github.com/alex-georgiou/11e19523697d4c1a84c83874690466c3) and some rows that you need to add with the data for each of your two coins. Other than that, there is nothing else missing.
What is your question?
January 14, 2019 at 10:04 am in reply to: How to generate addresses for every user on new adapter #5569alexg
KeymasterHello,
Deposit addresses are normally generated in three occasions:
1. The first time a user with
has_wallets
visits your site while logged in.
2. Whenever a user requests a new deposit address for a coin. This is done with the button in the[wallets_deposit]
UI.
3. You can refresh all the deposit addresses for a coin via the admin interface with “Wallets” -> “Adapters” -> “Renew deposit addresses”.Older addresses are still being retained, but only the latest one is displayed.
If you wish to view a list of current deposit addresses you can do so via “Wallets” -> “Deposit addresses”, and sort by the “Coin” column.
You can also pull a table of users and deposit addresses via the MySQL console, but keep in mind that deposit addresses can change.
Deposit addresses are stored in the
wp_wallets_adds
table. Please let me know if you need help with the SQL query.with regards
alexg
KeymasterI am sorry… I still don’t get it :-/
alexg
KeymasterYes,
You can define your own custom exchange rates provider. For sample code please see here: https://gist.github.com/alex-georgiou/492196184f206002c864225180ca8fbb
You are advised to use code like the one above, rather than editing the database directly. The filters get executed by the plugin and the result of all the filters gets written out to the database.
Exchange rates are stored in the options DB table, the name is
wallets_rates
.Hope this helps.
with regards
alexg
KeymasterThanks. I will check on my side and get back to you.
alexg
KeymasterHello,
I hear you. I get this request often. It is not a bad idea, but is actually not very straightforward to implement within the current plugin.
The parent plugin would first need to provide a “callback address” feature, i.e. to be able to create addresses not associated to users but to other objects than can trigger a callback function once a deposit is made. This is doable, but it would require some schema changes and development.
Once this is done, it would be useful for all kinds of payment gateways.
Others do not let you use your own wallet for a good reason. Today most web “developers” lack the technical capability to set up and maintain their own node. This generates a lot of load on the support side when people have questions (most questions are about the Unix shell and about network firewalls). I have already decided that this plugin should give you the choice to use full nodes if you want to, so hopefully in the future I might be able to add this feature as well.
I cannot promise that I will start work on this any time soon, because it is a lot of work and I don’t have the time.
with regards
alexg
KeymasterHello,
This is the most common problem people have when first installing this adapter. Deposits require incoming IPN connections to work. These can be prevented by security programs and firewalls. Have you checked the troubleshooting guide at the adapter’s homepage? Please read under “Deposits come through to the CoinPayments platform but do not show up in the plugin.” and let me know if this does not help.
with regards
alexg
KeymasterThank you. The problem I have with this is that looks to me as bad design. Either you want immutable transactions, in which case, use a blockchain, or you want the administrator to have control, and therefore you can do off-chain internal transactions.
For example, the plugin already gives you the ability to cancel a transaction. What happens if you have already recorded its hash somewhere? Does the hash prove something? It should not. Also, nobody is stopping you from editing a transaction via MySQL.
Internal DB transactions do not offer the same guarantees that a blockchain does. If you were to do what you suggest, you would be making promises you can’t keep. In other words, you might give the impression that these transactions are immutable and censorship resistant, when in fact they are neither of these things.
I believe this is why nobody else is doing this. What do you think?
alexg
KeymasterHi Alex
I think this is a good idea. There are some customers who do not want to make an account, deposit first and then pay from credit.
I have tested some plugins but all want pre-generated Addresses, HD Wallets or an online provider.
I don’t have found a plugin which can use my own core wallet on my own server.
I wish you can make a little plugin what show at the end of order process a deposit address and set the order to “processing” after payment.alexg
KeymasterFor reference, this bug is fixed in version
1.5.0
of the faucet.alexg
KeymasterThere is now a new reporting mechanism in version
1.5.0
of the faucet.This is now located in the admin dashboard. The previous reporting feature was buggy so I chose to replace it.
The report is made up of two tables, one for payouts and one for referral rewards. Rows are coins and columns correspond to sums of: today, this week, current month, and finally current year.
with regards
alexg
KeymasterHello,
This is now implemented in version
1.5.0
of the faucet.Admins with the
manage_wallets
capability can edit the referrer of any user via the user profile admin screen.with regards
alexg
KeymasterHello,
You are correct, the port is open.
There are some minor errors in your
.conf
but nothing that would explain your situation.When entering the IP address in the coin adapter settings, you should not enter the port number with the colon
:
notation. Instead, enter the port number in the “Port” field.However, I see that you have the following
rpcallowip
line:rpcallowip=31.22.4.221
But when I lookup your website it reports an IP ending with
222
:Name: diners.ltda Address: 31.22.4.222
Try adding the line
rpcallowip=31.22.4.222
to your conf file and restart your wallet.The wallet must accept incoming connections from the IP where WordPress is running.
with regards
alexg
KeymasterHello,
Could you give me some more information?
What did you attempt to do? What happened then? What is your query?
thank you
alexg
KeymasterHello,
I am not sure what you mean. Are you referring to internal transfers? These are by nature off-chain. Withdrawals are already on blockchain.
Can you describe more fully what you would like to accomplish with this?
thank you
with regards
-
AuthorPosts