From 7809b6e49cb5a12cac1f9caeaedeefad1079497d Mon Sep 17 00:00:00 2001 From: SysAdmin Date: Wed, 24 Sep 2025 21:08:16 +0100 Subject: [PATCH] Fix SilverPay payment creation - use fiat_amount instead of amount SilverPay API expects 'fiat_amount' and 'fiat_currency' fields, not 'amount'. This was causing 422 Unprocessable Entity errors when creating payments. --- LittleShop/Services/SilverPayService.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/LittleShop/Services/SilverPayService.cs b/LittleShop/Services/SilverPayService.cs index 15fd11f..cdb7251 100644 --- a/LittleShop/Services/SilverPayService.cs +++ b/LittleShop/Services/SilverPayService.cs @@ -99,7 +99,7 @@ public class SilverPayService : ISilverPayService var request = new { external_id = externalId, - amount = amount, // Amount in GBP + fiat_amount = amount, // Amount in GBP fiat_currency = "GBP", currency = currencyCode, webhook_url = webhookUrl ?? defaultWebhookUrl,