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:
parent
5013e60358
commit
7809b6e49c
@ -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,
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user