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

Shopify

@if (!shopifyCredsSet) {

Create a Shopify Private App with the permissions "Orders - Read and write"

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

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

}