cancel
Showing results for 
Search instead for 
Did you mean: 

Android in-person SDK - Cannot use CAD as currency

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.

fournier5050
Member
1 ACCEPTED SOLUTION

Accepted Solutions

You could try getting another SandBox account with the appropriate currency. 

Powered by NexWebSites.com -
Certified Authorize.net developers

View solution in original post

6 REPLIES 6
The Sandbox is configured for USD only. If you need access to a different currency for testing, please contact developer@authorize.net for information.
Powered by NexWebSites.com -
Certified Authorize.net developers
NexusSoftware
Trusted Contributor

@NexusSoftware @fournier5050

 

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

@RichardH @NexusSoftware

 

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.

 

@RichardH

 

My sandbox account was created in CAD.

 

At: https://developer.authorize.net/hello_world/sandbox/

@RichardH @NexusSoftware

 

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?

You could try getting another SandBox account with the appropriate currency. 

Powered by NexWebSites.com -
Certified Authorize.net developers