#vitorLeitao

1 messages · Page 1 of 1 (latest)

tall cypressBOT
thorny ridge
#

👋 happy to help

#

do you mean using an account in UK?

fervent finch
#

no no, I mean while using an euros account

So what happens, in the case of bank transfer is that we are generating the payment like this

thorny ridge
#

this is bank transfer for an account in EU

fervent finch
#

var options = new PaymentIntentCreateOptions
{
Amount = parameters.Amount * 100,
Currency = string.IsNullOrEmpty(parameters.CurrencyCode) ? "gbp" : parameters.CurrencyCode.ToLower(), //In here it will be eur for euros
Customer = parameters.CustomerId,
PaymentMethodTypes = new List<string>
{
"customer_balance",
},
PaymentMethodData = new PaymentIntentPaymentMethodDataOptions()
{
Type = "customer_balance",
},
PaymentMethodOptions = new PaymentIntentPaymentMethodOptionsOptions()
{
CustomerBalance = new PaymentIntentPaymentMethodOptionsCustomerBalanceOptions()
{
FundingType = "bank_transfer",
BankTransfer = new PaymentIntentPaymentMethodOptionsCustomerBalanceBankTransferOptions()
{
Type = "gb_bank_transfer"
}
}
},
Confirm = true
};

thorny ridge
#

please read through the 2 docs that I sent you

#

they have all the implementation details

fervent finch
#

So I am wondering if this "Type = "gb_bank_transfer"" is where its wrong

#

Perfect, will look at it now