Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
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.
TransactionRequest request = new TransactionRequest
Amount = 100.00M,
MerchantAccountId = "your_merchant_account",
PaymentMethodNonce = nonceFromTheClient
This is how I'm doing the payment
// Get the payment method
var paymentGatewayMethod = checkoutManager.Payment.GetPaymentGatewayMethods().FirstOrDefault();
var paymentMethod = paymentGatewayMethod.PaymentMethod;
// Create the arguments
var args = new ProcessorArgumentCollection();
//tried to add it here, but doesn't work
// Set the nonce
// Attempt a payment
authorisationAttempt = checkoutManager.Payment.AuthorizePayment(paymentMethod.Key, args);
Any help is much appreciated.
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?
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 :)
I need to do the same for a client. Did you ever figure this out?
is working on a reply...
Write your reply to:
Image will be uploaded when post is submitted