Open extra topbar

In regards to the refund discussion.

If you are new here, please see some information on how to ask for support. Thank you!

In regards to the refund discussion.

Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • #8169
    d3vnu77
    Participant

    I think the only problem with process_refund() method in the wallets-woo-gateway.php ison line 267 where you calculate the refund at a new rate. Instead, they should be getting the exact amount of currency back as they originally put in. Wouldn’t this be a better option?

    I could forsee a massive rise in value and someone wanting to be their exact amount of coin back a week or two later.

    What is the general rule when doing refunds in crypto…?

    I would think you’d want to get the exact amount in coins, like you would any other currency.

    Correct me if I am wrong?

    A further discussion on the matter with a friend is attached.

    Attachments:
    You must be logged in to view attached files.
    #8173
    alexg
    Keymaster

    This is by design. Returning the crypto amount would not make sense. Imagine a crypto that suddently spikes 50%, all your users with pending orders would suddenly be incentivised to request refunds on that day.

    If you are running a legitimate business, in terms of accounting, you immediately convert any crypto you receive to whatever currency you are paying your taxes with. You want to be hedged against crypto volatility. A business is not a place to speculate with price movements or expose yourself to price risk. If you want to do that, go to an exchange and start trading, but that shouldn’t have anything to do with your s-shop or other businesses. Crypto is used as a medium of exchange here. Shop prices should be set in fiat currencies.

    Again, in a normal situation you would have more funds in your admin account so that you can pay out more crypto if the crypto value goes up, and less if it goes down. This will average out over time.

    Hope this makes sense.

    If you really need to refund the original amount, you can always mark the order as cancelled, and go to the transactions list and cancel the internal transfer. But there is no legitimate situation where you would want to do this.

    Therefore, this calculation is not the problem. The problem is that in some situations the method is not being triggered (e.g. with auto commissions, or other edge cases) If there was a clear API on how to hook to the plugin to create a payout payment gateway, these problems would not exist. But the plugin is too closely tied with paypal and there is no sufficient decoupling of payout methods to the multivendor plugin, hence the need for the DB hacks you see in the code.

    with regards

    #8174
    d3vnu77
    Participant

    The situation is even more pronounced when dealing with what I hope to be a particularly volatile coin for the next 2-3 years.

    I guess that is why dark net type business tend to only give out refund only on non-delivery.

    #8175
    alexg
    Keymaster

    Yes, and additionally, consider this:

    Commissions are always accumulated to vendors in the store’s default currency. The end customer could have paid for the cart with cryptocurrencies, or with any other method, such as USD or EUR, and via PayPal, Stripe, or via any other gateway compatible with WooCommerce.

    When you say that you pay commissions out as crypto, this means that you have converted any such amounts to the payout crypto. The plugin does the calculation for you. As an admin, you just make sure that enough funds are available. If there are not enough funds for a payout to proceed, the payout can be retried later when you put in the funds in the admin account.

    #8176
    d3vnu77
    Participant

    I just deleted those orders and database moves, all is good. I see what you mean now though. Thanks for the explanation.

    #8177
    d3vnu77
    Participant

    So you can use Paypal and Stripe at the same time as your plugin?

    #8178
    alexg
    Keymaster

    Yes.

    To be clear, there are two types of payment gateways here:

    1. The WooCommerce payment gateways that enable a customer to pay for their cart. In WooCommerce you can always have multiple payment gateways working in parallel and the end user can choose between them.

    2. The WC Marketplace payment gateways that allow vendors to receive their commissions. You have to choose one, and this one choice can be Bitcoin and Altcoin Wallets.

    #8179
    d3vnu77
    Participant

    I see, the way I originally was designing this was as strictly a cryptocurrency website, because of the restrictions on the firearms related industry that some payment processors have been making.

    However excepting cash would bring a lot more people to the website, if I can find the right payment processor.

    #8180
    d3vnu77
    Participant

    Paypal & Stripe has restrictions on firearms and related gear.

    #8181
    alexg
    Keymaster

    I understand. The marketplace gateway has to work in the general case where there are many customer payment gateways.

    I don’t know whether there are good fiat payment gateways for firearms. You’d have to research their terms of use.

    There are articles listing payment processors who are suitable for selling firearms: https://www.cardpaymentoptions.com/credit-card-processing/gun-friendly-merchant-account-providers/

    And out of those, some seem to have WooCommerce payment gateways, for example: https://pledgedplugins.com/products/payline-data-payment-gateway-woocommerce/

    You would still want to distribute commissions to the vendors via some form of cryptocurrency, since none of the options available in WC Marketplace are suitable for enabling the sale of firearms.

    I have been making progress on a turtlecoin adapter, and you should be able to use a2coin in a couple of weeks, if all goes well.

    Perhaps you could consider accepting other more generic cryptocurrencies to attract more people. I am not sure what the merits of sector-specific cryptocurrencies are, even though I’ve read a few articles about them.

    with regards

Viewing 10 posts - 1 through 10 (of 10 total)
  • You must be logged in to reply to this topic.