Forum Replies Created
-
AuthorPosts
-
alexgKeymaster
Hello,
You are right, I am aware that currently it is not possible to edit the fields in the
[wallets_fiat_withdraw]
shortcode without modifying the plugin code.I have provided support for the most common banking systems, but it’s not possible for me to add such features for every possible payment system.
Furthermore, I am not currently accepting any new feature requests before the wallets6 release.
Having said this; with wallets6, the UI markups are encapsulated together with their JS and CSS code, so that all the code will be easily overridable via the templating system. Furthermore, the fiat coin adapter is being deprecated as a separate adapter, and will be merged into the parent plugin as “Fiat Bank Wallet adapter”.
Once wallets6 is released, I can provide you with instructions on how to modify the template.
with regards
P.S. I have moved this thread into the Fiat coin adapter forum.
August 13, 2021 at 9:36 am in reply to: Setting up a development environment from my live enviroment. #10898alexgKeymasterHello,
1. First of all, why are you attempting to edit the secrets directly via the DB? You should be entering the secrets in the plugin’s UI, under the coin adapter settings. Did you encounter problems with this?
2. The secrets are saved as transients, not options. They are not shown in the input boxes, but are used when the coin adapter issues commands to the wallet. So, do not expect to see the input boxes filled.
3. If the plugin and the coin adapter are network-activated, then all transients are saved as site-transients (in the
wp_sitemeta
table). This is what it looks like:SELECT * FROM wp_sitemeta WHERE meta_key LIKE '%rpc-password%'; +---------+---------+--------------------------------------------------------------+-------------------+ | meta_id | site_id | meta_key | meta_value | +---------+---------+--------------------------------------------------------------+-------------------+ | 31930 | 1 | _site_transient_trtl-ARMS-settings-rpc-password | a2coinrpcpassword | +---------+---------+--------------------------------------------------------------+-------------------+
Check to see if your password is saved in this table.
If not, it’s possible that the coin adapter is both network-active AND active on a single site in your network: Network-deactivate the adapter, check on each site to see if you also need to deactivate the adapter, and then, network-activate the adapter.
4. If you cannot connect, it may be due to some other reason. For example, if you’ve transferred the wallet to another site, the wallet file will be different. If you want to use the live wallet in your dev environment, you must rename the file to match the name of your dev machine.
5. Since you mentioned that the adapter can’t connect to the wallet, what is the error message that you see in Wallets -> Adapters -> Adapter Status?
If the above didn’t help, let me know and provide as much information on the above points as possible.
Thank you.
with regards
alexgKeymasterHello,
I also checked again.
For CoinPayments deposits, the fee shown to the user is the fee reported by the IPN message, which should be the 0.5% deposit fee. I don’t see how the deposit fee could be confused with the withdrawal fee.
Furthermore, the fee on deposit entries to the ledger do not affect user balances. They are there simply to show the user what was paid as fees to the CoinPayments platform.
If you think something is wrong, can you please show me as much data as possible? i.e. a deposit transaction, as shown in the plugin and on the blockchain?
with regards
alexgKeymasterHello,
The plugin operates as expected.
The CoinPayments platform imposes a 0.5% deposit fee for all deposits. For more information see here: https://www.coinpayments.net/supported-coins
If you do not want to have any deposit fees, you must use your own full node wallets. However, there is no ERC-20 adapter available at this time, only forks of Bitcoin, Monero, and TurtleCoin can be connected as full node wallets to the plugin.
The MAX_CONFIRMS column is there for these other full node wallets. You can ignore it when you use CoinPayments. The CoinPayments platform makes its own decision on how many confirmations it requires before it considers a deposit confirmed. This information is also listed at the above link (Supported Coins).
with regards
P.S. I am transferring this discussion to the CoinPayments support forum, as this only relates to the CoinPayments adapter.
alexgKeymaster@Topicxchangetrader
Hello,
It is not possible to set an exchange rate. This is not really a swapping feature, it is simply a frontend to the Exchange’s markets.
To set an exchange rate, you, or others, must first place limit buy/sell orders on the orderbook. Therefore, the exchange rate is derived from these orders.
Once a user deposits a Fiat currency via bank transfer and the admin inserts the fiat deposit, the user’s fiat balance is updated.
Then, the user can trade on markets involving that fiat currency.
If the market on which the user trades is against a cryptocurrency, selling that fiat currency will result in the user having more balance on that cryptocurrency.
The user can later choose to withdraw that cryptocurrency using the
[wallets_withdraw]
shortcode.Please let me know if you have any more questions about all this.
with regards
alexgKeymasterHello,
I am not sure why this would be the case.
Can you please provide the following information:
1. What code did you use to set the exchange rate information? Can you show me here or email me the full code you used?
2. What do you mean by “doesn’t calculate the rate properly”? What output do you see? Can you provide a screenshot?
Thank you
with regards
alexgKeymasterHello,
I am not sure what you mean by P2P exchange.
This is a stand-alone, orderbook-based exchange, and it operates as described in the Exchange extension’s homepage: https://www.dashed-slug.net/bitcoin-altcoin-wallets-wordpress-plugin/exchange-extension/
Meaning that, for a trade to occur, there must be limit orders on the order book. When the orderbook is non-empty, users can place limit and market orders. (To clarify a common point of misunderstanding, there is no importing of liquidity or price information from other marketplaces.)
A detailed guide for how to set up some markets using this extension can be found here: https://www.dashed-slug.net/howto-setup-a-cryptocurrency-exchange-on-wordpress/
Please let me know if you have any specific questions on this.
with regards
alexgKeymasterOK thanks for letting everyone know how you resolved this.
Hopefully you can use the security plugin without that feature, or use another security plugin.
The general idea is that there shouldn’t be JavaScript errors.
wallets6 will be much more tolerant of JavaScript errors in other components.
with regards
alexgKeymasterHello,
You can force the plugin to think that a currency has a specific exchange rate using some custom code that you can put in a PHP file and activate it like a plugin.
A full example is here:
https://gist.github.com/alex-georgiou/492196184f206002c864225180ca8fbb
The example declares two custom currencies in the exchange rates system, and also sets a few exchange rates.
This will allow the plugin to show equivalent amounts in other currencies below the actual amounts. You can also have customers checkout a woocommerce cart with custom currencies, if the exchange rate is known between that currency and the shop’s default currency.
Please let me know if you have any questions about this.
with regards
alexgKeymasterHello,
The
[wallets_balance template="list"]
UI has a checkbox where the user can choose to either see all balances, including zero balances, or only the non-zero balances.Hope this helps.
with regards
P.S. I am moving this entire thread to the General discussion, as it’s not related to the Fiat Coin adapter extension.
alexgKeymasterHello,
First of all, clicking on the “Max” button will fill in the amount that you can withdraw.
You can also display the balances using the
[wallets_balance]
shortcode and its variations.For example, if you want to simply display the current user’s balance of coin with symbol
XYZ
, you can do:[wallets_balance template="static" symbol="XYZ"]
To learn more about the available shortcodes and how to use them, please see:
Let me know if you have any more questions about the user balance shortcodes.
with regards
alexgKeymasterHello,
After our communication over email, it seems like this is caused by another plugin (password strength meter) that causes a JavaScript error. This interferes with the JS code for the UIs.
In the upcoming wallets6 plugin the JS code is isolated from other code and therefore this kind of problem will be far less likely.
But for now, any JavaScript errors on your site will cause the UIs to not load.
Try disabling the offending plugin to see if the error goes away. Let me know if the problem persists.
with regards
alexgKeymasterHello,
The complete list of things that you could check about this is here:
HOWTO: Debug shortcodes displaying “No currencies are currently enabled.” message
Please go through the list, and let me know again here, if you can’t resolve this issue.
with regards
AlexalexgKeymasterYou are correct in that the airdrop and faucet extensions do not work the same.
This will be remedied in the big upcoming release of wallets6, where the airdrop extension and the faucet extension will both work the same way: They will increase the user balances arbitrarily at your request, and it’s up to you to make the hot wallet balance match so that it can back the user balances. It will also be possible to manually debit/credit users from the admin interface by simply inserting off-chain transactions.
Right now, with the software you’re using, the faucet transfers funds from a designated account to the faucet claimers.
The airdrop extension adds to user balances amounts at your request, but for the users to be able to actually withdraw these funds, the funds must exist in your hot wallet balance.
There is no need for frustration. Simply study the extension descriptions on this page, ask me any questions, and test everything on your staging or integration server before using the extensions in production.
So, please let me know if you have any more questions about how all of this works. If you have questions unrelated to this one, please open a new thread.
with regards
alexgKeymasterHello,
To understand the difference between the hot balance (such as CoinPayments balance), the user balances (including the admin balance) and other types of balances, please see the Glossary section of the documentation where all of these terms are explained.
It’s also worth checking the Cold storage section, because this is what you should be using to control the hot balance.
with regards
P.S. I have moved your question to a new thread since it is not related to your previous question about the faucet.
-
AuthorPosts