Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

"Cannot associate card with accounts on this marketplace" error when adding a card to an account.

I tokenized a card with Balanced.js, and am attempting to create a buyer with the buyer email and the tokenized card URI. I'm seeing this error:

Balanced::Conflict(409)::Conflict:: POST 
https://api.balancedpayments.com/v1/marketplaces/TEST-xxxxxx/accounts: cannot-associate-card: Cannot associate card with accounts on this marketplace. Your request id is xxxxxx

Any ideas on the source of the error and how to fix it?

Thanks!

like image 404
Kyle Larson Avatar asked Oct 07 '22 23:10

Kyle Larson


1 Answers

This is usually an indicator that you're trying to associate a Card that was tokenized on one marketplace with an Account that exists on another marketplace. Cards tokenized in Balanced can only be associated accounts on the same marketplace.

The often happens if you're moving between test and production environments. The most obvious place to look is at the marketplace_uri parameter that you're passing through to balanced.js.

You'll see some code in your javascript that looks like

balanced.init(marketplaceUri);

That uri must be the same as the marketplace that is associated with the API key that you're using to process payments.

like image 55
mjallday Avatar answered Oct 12 '22 10:10

mjallday