Skip to content

🚀 release v2.7.0-beta.0

Pre-release
Pre-release

Choose a tag to compare

@MomenSherif MomenSherif released this 19 Oct 08:43
· 10 commits to main since this release

Feature

  • Lean saved bank accounts
const moneyHash = new MoneyHash({
  type: "payment",
  publicApiKey: "<public-api-key>",
});

moneyHash
  .getMethods({
    intentId: "<intent_id>",
  })
  .then(({ savedBankAccounts }) => console.log(savedBankAccounts));

moneyHash
  .getMethods({
    currency: "<currency>",
    customer: "<customer_id>",
  })
  .then(({ savedBankAccounts }) => console.log(savedBankAccounts));

moneyHash
  .proceedWith({
    intentId: "<intent_id>,
    type: "savedBankAccount",
    id: "<bank_account_id>:,
  })
  .then(intentDetails => console.log(intentDetails));

moneyHash.renderCreateBankAccountTokenEmbed({
  intentId: "<intent_id>,
  selector: "<css-selector>",
});