LunaNode / lobster

Hourly billing panel for virtual machines
http://lobster.lunanode.com
Other
84 stars 22 forks source link

Correction in Bitcoin payment gateway #62

Closed rezabagh closed 8 years ago

rezabagh commented 8 years ago

hello,

here in Bitcoin payment gateway the Description: fmt.Sprintf("Credit $%.2f", amount) always get the currency in $ but it needs to be match to the real Billing.Currency, it would be nice to fix this. Thanks

https://github.com/LunaNode/lobster/blob/eba94cb8a6965e60a68417925af697246389d137/payment/coinbase/coinbase.go

            Name:             "Credit for " + username,
    PriceString:      fmt.Sprintf("%.2f", amount),
    PriceCurrencyIso: cfg.Billing.Currency,
    Custom:           fmt.Sprintf("lobster%d", userId),
    **Description:      fmt.Sprintf("Credit $%.2f", amount),**
    Type:             "buy_now",
    Style:            "buy_now_large",
    CallbackUrl:      cfg.Default.UrlBase + "/coinbase_callback_" + this.callbackSecret,
uakfdotb commented 8 years ago

Name will now use credit_for_username, and description will use currency_format