@model IntegrationsViewModel @{ var shopify = Model.Shopify; var shopifyCredsSet = shopify?.IntegratedAt.HasValue is true; }

Shopify

@if (!shopifyCredsSet) {

Create a Shopify private app with the permissions "Script tags - Read and write" and "Orders - Read and write" then click here and paste the provided example URL.

}
@if (!Model.Shopify?.ShopName?.Contains(".") is true) {
https://
} @if (!Model.Shopify?.ShopName?.Contains(".") is true) {
.myshopify.com
}
@if (!shopifyCredsSet) { } else {

Orders on @shopify.ShopName.myshopify.com will be marked as paid on successful invoice payment. Started: @shopify.IntegratedAt.Value.ToBrowserDate()

@if (string.IsNullOrEmpty(shopify.ScriptId)) {

Scripts could not automatically be added, please ensure the following is saved at Settings > Checkout > Additional Scripts

@($"")
} else {

Checkout scripts should be automatically added to the order status page to display the BTCPay payment option.

}

Please add a payment method at Settings > Payments > Manual Payment Methods with the name Bitcoin with BTCPay Server

} @if (shopifyCredsSet) { }