mirror of
https://github.com/btcpayserver/btcpayserver.git
synced 2025-02-27 16:44:53 +01:00
* Disable shapeshift and use changelly * UI to manage changelly payment method * wip on changelly api * Add in Vue component for changelly and remove target currency from payment method * add changelly merhcant id * Small fixes to get Conversion to load * wip fixing the component * fix merge conflict * fixes to UI * remove debug, fix fee calc and move changelly to own partials * Update ChangellyController.cs * move original vue setup back to checkout * Update core.js * Extracting Changelly component to js file * Proposal for loading spinner * remove zone * imrpove changelly ui * add in changelly config checks * try new method to calculate amount + remove to currency from list * abstract changelly lofgic to provider and reduce dependency on js component * Add UTs for Changelly * refactor changelly backend * fix failing UT * add shitcoin tax * pr changes * pr changes
35 lines
1.1 KiB
C#
35 lines
1.1 KiB
C#
using System.Collections.Generic;
|
|
using System.ComponentModel.DataAnnotations;
|
|
using System.Runtime.InteropServices;
|
|
using BTCPayServer.Payments;
|
|
using Microsoft.AspNetCore.Mvc.Rendering;
|
|
|
|
namespace BTCPayServer.Models.StoreViewModels
|
|
{
|
|
public class UpdateChangellySettingsViewModel
|
|
{
|
|
[Required]
|
|
public string ApiKey { get; set; }
|
|
|
|
[Required]
|
|
public string ApiSecret { get; set; }
|
|
|
|
[Required]
|
|
public string ApiUrl { get; set; } = "https://api.changelly.com";
|
|
|
|
[Display(Name="Optional, Changelly Merchant Id")]
|
|
public string ChangellyMerchantId { get; set; } = "804298eb5753";
|
|
|
|
public bool Enabled { get; set; } = true;
|
|
|
|
public string StatusMessage { get; set; }
|
|
|
|
[Required]
|
|
[Range(0, 100)]
|
|
[Display(Name = "Percentage to multiply amount requested at Changelly to avoid underpaid situations due to Changelly not guaranteeing rates. ")]
|
|
public decimal AmountMarkupPercentage { get; set; } = new decimal(2);
|
|
|
|
|
|
|
|
}
|
|
}
|