Skip to content Skip to sidebar Skip to footer

Error: Uncaught Exception: Invalid Marketplace Uri

well, it looks like I'm the first in the S.O. community to post a question with a balancedpayments tag. I recently began developing with balancedpayments. I created a test market

Solution 1:

Did you take a look at this section? https://docs.balancedpayments.com/current/#including-and-initializing-balanced-js

Specifically:

<script type="text/javascript">
    balanced.init('${REPLACE_THIS_WITH_YOUR_MARKETPLACE_URI}');
</script>
Example:

<scripttype="text/javascript">
    balanced.init('/v1/marketplaces/TEST-MP5JtbXVDZkSGruOJyNasPqy');
</script>

You can find your API key secret and marketplace URI from your dashboard. You will notice that marketplace URIs start with /v1/.... so in this case, your marketplace URI is: /v1/marketplaces/TEST-MP4IaoKYeyteVLTY0nphZijM

There's a live fiddle for you to try it out, http://jsfiddle.net/balanced/ZwhrA/, which is linked to from the documentation.

Post a Comment for "Error: Uncaught Exception: Invalid Marketplace Uri"