@model PayButtonViewModel @{ Layout = "../Shared/_NavLayout.cshtml"; ViewData.SetActivePageAndTitle(StoreNavPages.PayButton); ViewBag.MainTitle = "Pay Button"; }
{{ errors.first('price') }}
{{ errors.first('payButtonImageUrl') }}

Define parameters that define the purchase: price, currency and then 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.

Payment Notifications


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

These parameters allow you to influence process after purchase. Server IPN is location we'll query with details. We can also deliver email notification to specified addres.

Finally Browser Redirect defines where BtcPayServer will redirect customer after puchase is completed.

Generated code

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



Disable Pay Button

Disabling this feature will cause your currently used Pay Buttons to stop working. Customers trying to use Pay Button to create Invoices will be displayed appropriate message. You can always reenable Pay Buttons at later time.

@Html.Hidden("EnableStore", false)
@section HeadScripts { } @section Scripts { }