I am developing with the in-person Android SDK with a Sandbox Merchant account in Canadian funds but all payments are being displayed and processed in USD. I understand that to be able to process with multiple different currencies, multiple account must be used. But my Canadian test account is setup correctly for Canadian funds in CAD. Why does the SDK always display and process in USD?
Login:
String deviceID = "EMV Android"; PasswordAuthentication passAuth = PasswordAuthentication .createMerchantAuthentication("", "", deviceID); merchant = Merchant.createMerchant(Environment.SANDBOX, passAuth); Transaction transaction = merchant.createMobileTransaction( TransactionType.MOBILE_DEVICE_LOGIN); MobileDevice mobileDevice = MobileDevice.createMobileDevice(deviceID, "Device description", "425-555-0000", "Android"); transaction.setMobileDevice(mobileDevice); loginResult = (net.authorize.mobile.Result) merchant.postTransaction(transaction);
EMV Transaction:
EMVTransaction emvTransaction = EMVTransactionManager.createEMVTransaction(merchant, transAmount); emvTransaction.setEmvTransactionType(EMVTransactionType.PAYMENT); emvTransaction.setOrder(order); emvTransaction.setSolutionID("AAA100302"); EMVTransactionManager.startEMVTransaction(emvTransaction, emvTransactionListener, context, false);
Login is successful and the payment window is displayed but in USD. When attempting to use a Canadian credit card, the following error is returned:
EMVTransactionError: 8
The supplied currency code is either invalid, not supported, not allowed for this merchant or doesn't have an exchange rate.
Thanks for looking.
Solved! Go to Solution.
09-14-2017 09:00 AM
You could try getting another SandBox account with the appropriate currency.
09-14-2017 12:58 PM - edited 09-14-2017 01:06 PM
09-14-2017 09:10 AM
Actually, you can specify the currency for a sandbox account using the setup form. At present, our gateway only supports a single currency per account.
https://developer.authorize.net/sandbox
Richard
09-14-2017 10:23 AM
Is it possbile for me to test here in Canada with a Canadian credit card or spoof the credit card somehow?
Production Sandbox usage will only be used in the U.S but need to test locally here in Canada.
09-14-2017 11:01 AM - edited 09-14-2017 11:02 AM
My sandbox account was created in CAD.
09-14-2017 11:05 AM
Any ideas how I can continue here?
I've emailed dev support and can confirm my account was created in CAD.
How do Canadians test transactions?
09-14-2017 12:41 PM
You could try getting another SandBox account with the appropriate currency.
09-14-2017 12:58 PM - edited 09-14-2017 01:06 PM