@inject BTCPayServer.Security.ContentSecurityPolicies csp @model PayButtonViewModel @{ Layout = "../Shared/_NavLayout.cshtml"; ViewData.SetActivePageAndTitle(StoreNavPages.PayButton, "Pay Button", Context.GetStoreData().StoreName); csp.AllowUnsafeHashes("onBTCPayFormSubmit(event);return false"); } @section PageHeadContent { } @section PageFootContent { }

@ViewData["PageTitle"]

{{ errors.first('price') }}

Set parameters that define the purchase: price, currency and an optional description of purchase.

Generated HTML will be displayed at the bottom of this page and all you need is to paste that HTML into your final page. Clicking on the button will redirect customer to checkout.

Pay button display options

{{ errors.first('payButtonImageUrl') }}
{{ errors.first('min') }}
{{ errors.first('max') }}
{{ errors.first('step') }}
Preview
Link
Alternatively, you can share this link or encode it in a QR code

Payment Notifications

{{ errors.first('serverIpn') }}
{{ errors.first('notifyEmail') }}
{{ errors.first('browserRedirect') }}

These parameters allow you to influence the process after purchase. Server IPN is the URL to which we'll post purchase data. We can also deliver an email notification to a specified address.

Finally, Browser Redirect defines where BTCPayServer will redirect the customer after purchase is completed.

Advanced options

{{ errors.first('checkoutQueryString') }}

This parameter allows you to specify additional query string parameters that should be appended to the checkout page once the invoice is created. For example, lang=da-DK would load the checkout page in Danish by default.
{{ errors.first('appIdEndpoint') }}
{{ errors.first('appChoiceKey') }}

This allows you to link this pay button to an app instead. Some features are disabled due to the different endpoint capabilities. You can set which perk/item this button should be targeting.

Generated code

Please fix errors shown in order for code generation to successfully execute.