// Get the payment method
var paymentGatewayMethod = checkoutManager.Payment.GetPaymentGatewayMethods().FirstOrDefault();
var paymentMethod = paymentGatewayMethod.PaymentMethod;
checkoutManager.Payment.SavePaymentMethod(paymentMethod);
// Create the arguments
var args = new ProcessorArgumentCollection();
args.Add("cardholderName", cardholderName);
args.Add("cardNumber", cardNumber);
args.Add("expireMonth", expireMonth);
args.Add("expireYear", expireYear);
args.Add("cardCode", cardCode);
//tried to add it here, but doesn't work
args.Add("MerchantAccountId", "account_id_for_GBP");
// Set the nonce
args.SetPaymentMethodNonce(paymentMethodNonce);
// Attempt a payment
authorisationAttempt = checkoutManager.Payment.AuthorizePayment(paymentMethod.Key, args);
Setting MerchantAccountID for a Braintree transaction
Hi,
Our Braintree account has multiple Merchant Accounts for different currencies, the default one is for USD, and there are also for AUD, CAD, EUR, GBP.
Our Merchello shop API handles multiple currencies but regardless of the selected currency Braintree uses the default which is the USD one.
I'm trying to set MerchantAccountId = "accountidfor_GBP" like braintree api docs but I'm not sure where.
This is how I'm doing the payment
Any help is much appreciated.
Thanks !
Alex
Maybe it's nothing, but I notice that you write MerchantAccountId, while the others have a lowercase first...
Also, you set the MerchantAccountId inside your TransactionRequest, shouldn't you set the Id in there?
Puck
Hi Puck,
Thanks for checking my post, I've just tried but didn't work.
hmmm too bad.
I never used braintree, so I can't help you with that. I just noticed those little things :)
Puck
Hi Alex,
I need to do the same for a client. Did you ever figure this out?
Cheers, Trevor
is working on a reply...