mirror of
https://github.com/btcpayserver/btcpayserver.git
synced 2025-02-27 07:57:33 +01:00
* Swap bootstrap asset files * Update themes and color definitions * Move general bootstrap customizations * Theme updates Theme updates * Remove BuildBundlerMinifier This lead to an error, because BuildBundlerMinifier and BundlerMinifier.Core seem to conflict here. Details: https://stackoverflow.com/a/61119586 * Rewplace btn-block class with w-100 * Update badge classes * Remove old font family head variable * Update margin classes * Cleanups * Update float classes * Update text classes * Update padding classes * Update border classes * UPdate dropdown classes * Update select classes * Update neutral custom props * Update bootstrap and customizations * Update ChromeDriver; disable smooth scroll https://github.com/SeleniumHQ/selenium/issues/8295 * Improve alert messages * Improve bootstrap customizations * Disable reduced motion See also 7358282f * Update Bootstrap data attributes * Update file inputs * Update input groups * Replace deprecated jumbotron class * Update variables; re-add negative margin util classes * Update cards * Update form labels * Debug alerts * Fix aria-labelledby associations * Dropdown-related test fixes * Fix CanUseWebhooks test * Test fixes * Nav updates * Fix nav usage in wallet send and payouts * Update alert and modal close buttons * Re-add backdrop properties * Upgrade Bootstrap to v5 final * Update screen reader classes * Update font-weight classes * Update monospace font classes * Update accordians * Update close icon usage * Cleanup * Update scripts and style integrations * Update input group texts * Update LN node setup page * Update more form control classes * Update inline forms * Add js specific test * Upgrade Vue.js * Remove unused JS * Upgrade Bootstrap to v5.0.1 * Try container related test updates * Separate jQuery bundle * Remove jQuery from LND seed backup page * Remove unused code * Refactor email autofill js * Refactor camera scanner JS * Re-add tests * Re-add BuildBundlerMinifier * Do not minify bundles containing Bootstrap Details https://github.com/madskristensen/BundlerMinifier/issues/558 * Update bundles * Cleanup JS test * Cleanup tests involving dropdowns * Cleanup tests involving collapses * Cleanup locale additions in ConfigureCore * Cleanup bundles * Remove duplicate status message * Cleanup formatting * Fix missing validation scripts * Remove unused unminified Bootstrap js files * Fix classic theme * Fix Casa theme * Fix PoS validation
86 lines
3.7 KiB
Text
86 lines
3.7 KiB
Text
@using BTCPayServer.Views.Stores
|
|
@model BTCPayServer.Plugins.Shopify.Models.ShopifySettings
|
|
@{
|
|
|
|
Layout = "../Shared/_NavLayout.cshtml";
|
|
|
|
ViewData["NavPartialName"] = "../Stores/_Nav";
|
|
ViewData.SetActivePageAndTitle(StoreNavPages.Integrations, "Integrations");
|
|
|
|
|
|
var shopifyCredsSet = Model?.IntegratedAt.HasValue is true;
|
|
var shopifyUrl = Model?.ShopifyUrl;
|
|
}
|
|
<form method="post" id="shopifyForm">
|
|
<h4 class="mb-3">
|
|
Shopify
|
|
<small>
|
|
<a href="https://docs.btcpayserver.org/Shopify" target="_blank">
|
|
<span class="fa fa-question-circle-o text-secondary" title="More information..."></span>
|
|
</a>
|
|
</small>
|
|
</h4>
|
|
@if (!shopifyCredsSet)
|
|
{
|
|
<p class="alert alert-info">Create a Shopify Private App with the permissions "Orders - Read and write"</p>
|
|
|
|
<div class="form-group">
|
|
<label class="form-label" for="exampleUrl">Example Url from Shopify Private App</label>
|
|
<input class="form-control" id="exampleUrl" name="exampleUrl">
|
|
</div>
|
|
|
|
<button name="command" type="submit" class="btn btn-primary" value="ShopifySaveCredentials">Connect to Shopify</button>
|
|
}
|
|
else
|
|
{
|
|
<div class="form-group">
|
|
<label asp-for="ShopName" class="form-label"></label>
|
|
<div class="input-group">
|
|
@if (!Model?.ShopName?.Contains(".") is true)
|
|
{
|
|
<span class="input-group-text">https://</span>
|
|
}
|
|
<input asp-for="ShopName" class="form-control" readonly="@shopifyCredsSet" />
|
|
|
|
@if (!Model?.ShopName?.Contains(".") is true)
|
|
{
|
|
<span class="input-group-text">.myshopify.com</span>
|
|
}
|
|
</div>
|
|
<span asp-validation-for="ShopName" class="text-danger"></span>
|
|
</div>
|
|
|
|
<div class="form-group">
|
|
<label asp-for="ApiKey" class="form-label"></label>
|
|
<input asp-for="ApiKey" class="form-control" readonly="@shopifyCredsSet" />
|
|
<span asp-validation-for="ApiKey" class="text-danger"></span>
|
|
</div>
|
|
|
|
<div class="form-group">
|
|
<label asp-for="Password" class="form-label"></label>
|
|
<input asp-for="Password" class="form-control" type="password" value="@Model?.Password" readonly="@shopifyCredsSet" />
|
|
<span asp-validation-for="Password" class="text-danger"></span>
|
|
</div>
|
|
<div class="alert alert-warning">
|
|
<p>
|
|
In Shopify please paste following script at <a href="@shopifyUrl/admin/settings/checkout#PolarisTextField1" target="_blank" class="fw-bold"> Settings > Checkout > Order Processing > Additional Scripts</a>
|
|
</p>
|
|
<kbd style="display: block; word-break: break-all;">
|
|
@($"<script src='{Url.Action("ShopifyJavascript", "Shopify", new {storeId = Context.GetRouteValue("storeId")}, Context.Request.Scheme)}'></script>")
|
|
</kbd>
|
|
</div>
|
|
<p class="alert alert-warning">
|
|
In Shopify please add a payment method at <a target="_blank" href="@shopifyUrl/admin/settings/payments" class="fw-bold"> Settings > Payments > Manual Payment Methods</a> with the name <kbd>Bitcoin with BTCPay Server</kbd>
|
|
</p>
|
|
|
|
<p class="alert alert-success">
|
|
Orders on <b>@Model.ShopName</b>.myshopify.com will be marked as paid on successful invoice payment.
|
|
Started: @Model.IntegratedAt.Value.ToBrowserDate()
|
|
</p>
|
|
|
|
<button name="command" type="submit" class="btn btn-danger" value="ShopifyClearCredentials">
|
|
Stop Shopify calls and clear credentials
|
|
</button>
|
|
}
|
|
|
|
</form>
|