@inject BTCPayServer.Security.ContentSecurityPolicies csp @model PayButtonViewModel @{ ViewData.SetActivePage(StoreNavPages.PayButton, "Pay Button", Context.GetStoreData().Id); csp.AllowUnsafeHashes("onBTCPayFormSubmit(event);return false"); csp.AllowUnsafeHashes("handleSliderChange(event);return false"); csp.AllowUnsafeHashes("handleSliderInput(event);return false"); csp.AllowUnsafeHashes("handlePriceSlider(event);return false"); csp.AllowUnsafeHashes("handlePriceInput(event);return false"); csp.AllowUnsafeHashes("handlePlusMinus(event);return false"); } @section PageHeadContent { } @section PageFootContent { }

@ViewData["Title"]

Configure your Pay Button, and the generated code will be displayed at the bottom of the page to copy into your project.

General Settings

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

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') }}

The URL to post purchase data.

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

Receive email notification updates.

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

Where to redirect the customer after payment is complete.

Advanced Options

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('checkoutQueryString') }}

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.

{{ errors.first('appIdEndpoint') }}
{{ errors.first('appChoiceKey') }}

Generated Code

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