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.
This commit is contained in:
SysAdmin 2025-09-24 21:08:16 +01:00
parent 5013e60358
commit 7809b6e49c

View File

@ -99,7 +99,7 @@ public class SilverPayService : ISilverPayService
var request = new var request = new
{ {
external_id = externalId, external_id = externalId,
amount = amount, // Amount in GBP fiat_amount = amount, // Amount in GBP
fiat_currency = "GBP", fiat_currency = "GBP",
currency = currencyCode, currency = currencyCode,
webhook_url = webhookUrl ?? defaultWebhookUrl, webhook_url = webhookUrl ?? defaultWebhookUrl,