mirror of
https://github.com/aljazceru/btcpayserver.git
synced 2025-12-19 06:54:19 +01:00
@@ -26,6 +26,15 @@ namespace BTCPayServer.Controllers
|
|||||||
private InvoiceController _InvoiceController;
|
private InvoiceController _InvoiceController;
|
||||||
private StoreRepository _StoreRepository;
|
private StoreRepository _StoreRepository;
|
||||||
|
|
||||||
|
[HttpGet]
|
||||||
|
[IgnoreAntiforgeryToken]
|
||||||
|
[EnableCors(CorsPolicies.All)]
|
||||||
|
[Route("api/v1/invoices")]
|
||||||
|
public async Task<IActionResult> PayButtonHandle(PayButtonViewModel model)
|
||||||
|
{
|
||||||
|
return await PayButtonHandle(model, CancellationToken.None);
|
||||||
|
}
|
||||||
|
|
||||||
[HttpPost]
|
[HttpPost]
|
||||||
[Route("api/v1/invoices")]
|
[Route("api/v1/invoices")]
|
||||||
[MediaTypeAcceptConstraintAttribute("text/html")]
|
[MediaTypeAcceptConstraintAttribute("text/html")]
|
||||||
|
|||||||
Reference in New Issue
Block a user