Skip to content

Instantly share code, notes, and snippets.

@jrthib
Created February 25, 2015 21:04
Show Gist options
  • Save jrthib/f7d40764cf7c3a8bec9b to your computer and use it in GitHub Desktop.
Save jrthib/f7d40764cf7c3a8bec9b to your computer and use it in GitHub Desktop.
Balanced payments - getting the merchant bank account.
// The examples provided at [https://github.com/balanced/balanced-node/blob/master/snippets/order-credit-marketplace.js]
// and also: [https://docs.balancedpayments.com/1.1/guides/orders/credit-marketplace/] are not very detailed.
// The following example is what is required to get the marketplace bank account to then issue credits to your marketplace.
balanced.marketplace.then(function(marketplace) {
marketplace.owner_customer.bank_accounts.get(0).then(function(bankAccount) {
console.log(bankAccount);
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment