@coinflowlabs/angular

中文文档
2.0.0发布于 2026/11/01TypeScriptES Module

This library was generated with Angular CLI version 17.3.0.

原始使用文档
文档目录37 节
  1. 2.0.0
  2. 1.13.0
  3. 1.11.0
  4. 1.10.0
  5. 1.8.0
  6. 1.7.2
  7. 1.7.1
  8. 1.6.1
  9. 1.6.0
  10. 1.5.0
  11. 1.4.0
  12. 1.3.2
  13. 1.3.1
  14. 1.3.0
  15. 1.2.1
  16. 1.2.0
  17. 1.1.5
  18. 1.1.0
  19. 1.0.7
  20. 1.0.6
  21. 1.0.5
  22. 1.0.4
  23. 1.0.2
  24. 1.0.1
  25. 1.0.0
  26. 0.3.6
  27. 0.3.5
  28. 0.3.4
  29. 0.3.3
  30. 0.3.2
  31. 0.3.1
  32. 0.3.0
  33. 0.2.3
  34. 0.2.1
  35. 0.2.0
  36. 0.1.4
  37. 0.1.3

Coinflowlabs

This library was generated with Angular CLI version 17.3.0.

Changelog

2.0.0

  • Breaking: Removed the deprecated legacy card form components: CoinflowCardNumberInput (lib-coinflow-card-number-input), CoinflowCardNumberOnlyInput (lib-coinflow-card-number-only-input), CoinflowCvvInputComponent (lib-coinflow-cvv-input) and CoinflowCvvOnlyInputComponent (lib-coinflow-cvv-only-input). Use CoinflowCardFormV2 instead.

1.13.0

  • Added loading states to the CoinflowCardForm, CoinflowCardNumberInput, CoinflowCvvOnlyInput components

1.11.0

  • Added cardBackground to MerchantTheme to control the inner card-entry surface independently of the outer canvas background
  • Added placeholderColor to MerchantTheme to control placeholder text color in card form inputs
  • Fixed the card brand icon being hidden when the card form reflows to a stacked two-row layout at narrow widths

1.10.0

  • Fixed an issue with vertical spacing when resizing the page

1.8.0

  • New CoinflowCardForm component — simple card input with a single tokenize() call and full theme support
  • Added theme options for fontSizeand placeholder text
  • Improved security for iframe communication

1.7.2

  • Fixed typing for sessionKey being not present when passing the wallet object

1.7.1

  • Added support for overriding the default account type (from merchant settings) used for chargeback protection via chargebackProtectionAccountType in the URL parameters.

1.6.1

  • Added support for custom pay-in fees via customPayInFees in the JWT token or URL parameters. This allows merchants to add custom fee line items (fixed or percentage-based) that are displayed during checkout.

1.6.0

  • New Blockchain Support: The SDK now supports Stellar, a fast and low-cost blockchain for payments. Pass blockchain='stellar' to enable Stellar payment processing.

1.5.0

  • Added zeroAuthorizationConfig prop to CoinflowPurchase for controlling zero authorization behavior (show/hide saved payment methods, verify a specific card by token). Deprecates isZeroAuthorization boolean prop.

1.4.0

  • New Blockchain Support: The SDK now supports Monad, a high-performance EVM-compatible blockchain. Pass blockchain='monad' to enable Monad payment processing.

1.3.2

  • Internal change to a query parameter name for zero authorization

1.3.1

  • Added redemptionCheck to purchase (Solana only)

1.3.0

  • Added allowedWithdrawSpeeds query parameter to allow merchants to specify what withdraw speeds are allowed. The default is all.

1.2.1

  • Added more chargebackProtectionData product types

1.2.0

  • Added partialUsdcChecked property to pre-check partial USDC payment checkbox

1.1.5

  • Added onLoad property

1.1.0

  • Added Multi-Currency Presentment via the presentment property

1.0.7

  • Improving Withdraw With Session Keys

1.0.6

  • Add credentialless to iframe

1.0.5

  • Fixing onAuthDeclined callback

1.0.4

  • Added seller prop to chargebackProtectionData

1.0.2

  • Added allowedPaymentMethods to CoinflowPurchase
  • Options are:
    • 'card' = Credit and debit cards
    • 'ach' = ACH bank account transfers
    • 'fasterPayments' = UK Faster Payments (GBP Bank Transfers)
    • 'sepa' = SEPA bank account transfers (EUR Bank Transfers)
    • 'pix' = Pix bank account transfers (BRL Bank Transfers)
    • 'usdc' = USDC
    • 'googlePay' = Google Pay
    • 'applePay' = Apple Pay
    • 'credits' = Credits

1.0.1

  • Allow copy to clipboard for Coinflow Iframe

1.0.0

  • Deprecating amount and token in favor of subtotal which can be accessed via the following ways:
  • Added multi-currency support for presentment
  • SEPA and UK Faster Payments support
{
  cents: number;
  currency: 'USD' | 'EUR' | 'GBP' | 'BRL';
}

or

{
  address: string;
  amount: number;
}

0.3.6

  • Added 3DS Challenge Handling to the standalone Google Pay button

0.3.5

  • Added cleanup code to handle arg changes in CoinflowCvvOnlyInputComponent

0.3.4

  • Added reinitialize method to CoinflowCvvOnlyInputComponent, CoinflowCardNumberInput, and CoinflowCardNumberOnlyInput

0.3.3

  • reinitialize iframe when ngOnInit is called after destroy

0.3.2

  • Added reinitialize method to CoinflowCvvOnlyInputComponent, CoinflowCardNumberInput, and CoinflowCardNumberOnlyInput

0.3.1

  • Added sessionKey authentication mechanism to CoinflowWithdraw

0.3.0

  • Added sessionKey authentication mechanism to CoinflowPurchase

0.2.3

  • Added Apple & Google Pay buttons

0.2.1

  • Fixed Card Form Components export

0.2.0

  • Added Card Form Components

0.1.4

  • Added getWalletFromEmail function to CoinflowUtils

0.1.3

  • Allow custom taker on reservoir transactions

版本与发布记录

@coinflowlabs/angular 共发布 57 个版本,首次发布于 2024/04/11;过去 12 个月发布了 18 个版本。

版本发布日期距今
2.0.0latest2026/11/012 天前
1.15.22026/10/0628 天前
1.15.12026/09/251 个月前
1.15.02026/09/231 个月前
1.14.02026/08/202 个月前
1.13.02026/07/213 个月前

关于 @coinflowlabs/angular 的常见问题

@coinflowlabs/angular 是什么?

生成此库 角CLI 17.3.0版本。

如何安装 @coinflowlabs/angular?

在项目目录运行 npm install @coinflowlabs/angular,或使用 pnpm add / yarn add / bun add。它还需要宿主项目提供 peer 依赖:bs58(~5.0.0)、lz-string(^1.5.0)、tweetnacl(^1.0.3)、@angular/core(^19.2.17)、@angular/common(^19.2.17)、@solana/web3.js(>=1.54.0)。npm 7 及以上与 pnpm 8 及以上默认会自动安装必需的 peer 依赖,Yarn 需要手动安装。

@coinflowlabs/angular 支持 TypeScript 吗?

支持。包内自带 TypeScript 类型声明(package.json 声明了 types 入口),安装后即可获得类型提示,无需再安装 @types 包。

@coinflowlabs/angular 支持 ESM 还是 CommonJS?

以 ES Module 形式发布,推荐使用 import 引入。在 CommonJS 项目中,Node.js 20.19+ / 22.12+ 可以直接 require() 不含顶层 await 的 ES Module,更早的版本需要改用动态 import()。

@coinflowlabs/angular 可以商用吗?

@coinflowlabs/angular 使用 未声明 许可。package.json 没有声明许可证。没有许可证的代码默认保留全部权利,商用前请联系作者或查看仓库中的 LICENSE 文件。以上为概括,不构成法律意见,请以许可原文为准。

@coinflowlabs/angular 还在维护吗?

最新版本 2.0.0 发布于 2026/11/01(2 天前);至今共发布 57 个版本,其中过去 12 个月发布了 18 个;首次发布于 2024/04/11。发布频率只是参考信号:功能稳定的工具可能很少需要更新,建议结合源码仓库的 issue 和提交记录判断。