Package detail

@ovh-ux/ng-ovh-payment-method

ovh391BSD-3-Clause9.17.3

Get payment methods from different OVHcloud APIs

angularjs, bank-account, credit-card, ovh

readme

ng-ovh-payment-method

Set of angularJS service and components in order to deal with OVHcloud payment methods.

npm version Downloads Dependencies Dev Dependencies

Install

$ yarn add @ovh-ux/ng-ovh-payment-method

Usage

import angular from 'angular';
import ngOvhPaymentMethod from '@ovh-ux/ng-ovh-payment-method';

// add the `ngOvhPaymentMethod` module as dependency of your AngularJS project.
angular.module('myApp', [ngOvhPaymentMethod]).config(
  /* @ngInject */ (ovhPaymentMethodProvider) => {
    // Set the url of payment method list page, where the user
    // should be redirected when he has no default payment method.
    ovhPaymentMethodProvider.setPaymentMethodPageUrl(constants.target);

    // set user locale
    ovhPaymentMethodProvider.setUserLocale('fr_FR');
  },
);

Test

$ yarn test

Contributing

Always feel free to help out! Whether it's filing bugs and feature requests or working on some of the open issues, our contributing guide will help get you started.

License

BSD-3-Clause © OVH SAS

changelog

Change Log

All notable changes to this project will be documented in this file. See Conventional Commits for commit guidelines.

9.17.3 (2025-06-20)

Note: Version bump only for package @ovh-ux/ng-ovh-payment-method

9.17.2 (2025-06-13)

Note: Version bump only for package @ovh-ux/ng-ovh-payment-method

9.17.1 (2025-06-13)

Reverts

  • Revert "fix(*): fix usage of useOvhPaymentMethod in apps and packages" (22a0034)
  • Revert "feat(*): incorporate procedure changes, fix config" (0f0faaa)

9.17.0 (2025-06-11)

Bug Fixes

Features

9.16.8 (2025-06-05)

Bug Fixes

  • manager: handle angular parts build after removing vite legacy that hoist babel (cc7b23d)

9.16.7 (2025-04-30)

Note: Version bump only for package @ovh-ux/ng-ovh-payment-method

9.16.6 (2024-11-28)

Note: Version bump only for package @ovh-ux/ng-ovh-payment-method

9.16.5 (2024-10-30)

Note: Version bump only for package @ovh-ux/ng-ovh-payment-method

9.16.4 (2024-10-24)

Note: Version bump only for package @ovh-ux/ng-ovh-payment-method

9.16.3 (2024-10-24)

Note: Version bump only for package @ovh-ux/ng-ovh-payment-method

9.16.2 (2024-10-24)

Note: Version bump only for package @ovh-ux/ng-ovh-payment-method

9.16.1 (2024-08-08)

Note: Version bump only for package @ovh-ux/ng-ovh-payment-method

9.16.0 (2024-06-04)

Features

9.15.2 (2024-05-21)

Note: Version bump only for package @ovh-ux/ng-ovh-payment-method

9.15.1 (2024-05-06)

Note: Version bump only for package @ovh-ux/ng-ovh-payment-method

9.15.0 (2024-03-25)

Features

  • ng-ovh-payment-method: added information modal for sepa method (#11116) (668c4ca)

9.14.1 (2024-03-19)

Bug Fixes

  • i18n: add missing translations [CDS 2374] (3bbde12)
  • i18n: add missing translations [CDS 2557] (fed9c2f)

9.14.0 (2024-03-04)

Features

  • ng-ovh-payment-method: handle antifraud error case (#10225) (3073bae)

9.13.0 (2024-02-21)

Features

9.12.0 (2024-02-05)

Features

  • pci: new solution for payment step on PCI > Checkbox (#10733) (ca45ed9)

9.11.1 (2023-12-05)

Note: Version bump only for package @ovh-ux/ng-ovh-payment-method

9.11.0 (2023-11-21)

Features

  • migrate from vuepress to vitepress (6968c85)

9.10.0 (2023-10-23)

Features

  • ng-ovh-payment-method: update adyen env config for india (#10156) (5cdf612)
  • update adyen env config for india (#10151) (6ee9059)

9.9.1 (2023-10-16)

Bug Fixes

9.9.0 (2023-10-11)

Features

  • ng-ovh-payment-method: show accepted card brands in adyen form (bc3610c)

9.8.0 (2023-09-27)

Features

9.7.1 (2023-09-07)

Note: Version bump only for package @ovh-ux/ng-ovh-payment-method

9.7.0 (2023-08-30)

Features

9.6.1 (2023-07-20)

Note: Version bump only for package @ovh-ux/ng-ovh-payment-method

9.6.0 (2023-07-06)

Features

  • add cross border payment sentence for TN/SA/MN (#9343) (32882a9)

9.5.3 (2023-06-12)

Note: Version bump only for package @ovh-ux/ng-ovh-payment-method

9.5.2 (2023-03-29)

Bug Fixes

  • dedicated.payment: change content in en for translation (#9058) (81a1d92)

9.5.1 (2023-03-23)

Bug Fixes

  • ng-ovh-payment-method: disable adyen analytics (#9096) (0d86a20)

9.5.0 (2023-03-23)

Features

9.4.1 (2023-01-19)

Note: Version bump only for package @ovh-ux/ng-ovh-payment-method

9.4.0 (2022-12-22)

Features

  • apps: sepa direct payment worldline integration (#8203) (618dfee)

9.3.3 (2022-11-29)

Note: Version bump only for package @ovh-ux/ng-ovh-payment-method

9.3.2 (2022-10-24)

Note: Version bump only for package @ovh-ux/ng-ovh-payment-method

9.3.1 (2022-10-20)

Bug Fixes

  • dedicated.ovh-payment: make legal notice default payment (f4e57ff)

9.3.0 (2022-09-14)

Features

  • payment: sepa integration with worldline on payments page (#7149) (0675f4e)

9.2.3 (2022-08-22)

Bug Fixes

  • service: replace both validator isValidIban and isValidBic (#7746) (1626158)

9.2.2 (2022-07-27)

Bug Fixes

  • deps: bump @ovh-ux/ovh-reket to 1.0.0 (a77f2fc)

9.2.1 (2022-06-15)

Bug Fixes

  • payment-method: force redirect to open in top frame (b1f9edd)

9.2.0 (2022-06-14)

Features

  • bump @ovh-ux/ui-kit to v6.1.0 (a1eaaa5)

9.1.8 (2022-04-12)

Bug Fixes

  • add target _top to links (2d375e6)

9.1.7 (2022-04-04)

Bug Fixes

  • integration: reinit adyen after payment switch (#6794) (078358c)

9.1.6 (2022-03-24)

Bug Fixes

9.1.5 (2022-03-04)

Bug Fixes

  • dev-deps: update @ovh-ux/component-rollup-config to v12.0. (8145cd4)

9.1.4 (2022-03-04)

Bug Fixes

9.1.3 (2022-02-24)

Bug Fixes

  • deps: bump @ovh-ux/ovh-reket to v0.1.0 (3dc16e2), closes #6436

9.1.2 (2022-02-09)

Bug Fixes

  • i18n: add missing translations [CDS 1412] (1c6dc65)
  • i18n: add missing translations [CDS 1417] (f9fb30b)

9.1.1 (2022-01-25)

Bug Fixes

  • i18n: add missing translations [CDS 1401] (5e1924a)
  • i18n: add missing translations [CDS 1403] (1342265)

9.1.0 (2022-01-19)

Features

9.0.0 (2021-11-04)

Bug Fixes

  • i18n: add missing translations [CDS 1246] (489b27b)

Features

  • ng-ovh-payment-method: add flag for automatic default payment (760989c)

BREAKING CHANGES

  • ng-ovh-payment-method: the component ovh-payment-method-register now has a flag to determine if the first payment method to register will be set by default. If the flag is set to false, the choice will be possible even if no default payment method exists.

8.3.6 (2021-10-26)

Bug Fixes

  • dev-deps: upgrade @ovh-ux/component-rollup-config to v11.0.0 (3ae659b)
  • locales: remove es_US translations files (#5709) (3894a13), closes #5685

8.3.5 (2021-10-08)

Bug Fixes

8.3.4 (2021-09-15)

Bug Fixes

  • adyen: remove stringify and fix result handling (df70d39)

8.3.3 (2021-09-14)

Bug Fixes

  • adyen: fix function declaration (0a72dc1)

8.3.2 (2021-09-14)

Bug Fixes

  • adyen: fix parse chars before submit (f3b314e)

8.3.1 (2021-09-13)

Bug Fixes

  • adyen: fix parse of special chars (cb562e3)

8.3.0 (2021-09-07)

Features

  • use ovh-payment-method in ng-ovh-payment-method (bd4776c)

8.2.1 (2021-08-26)

Bug Fixes

8.2.0 (2021-08-26)

Features

8.1.2 (2021-06-29)

Bug Fixes

  • deps: upgrade @ovh-ux/component-rollup-config to v10.0.0 (8eac31f)

8.1.1 (2021-05-26)

Bug Fixes

  • payment.method: enforce specific adyen web version of package (7e95790)
  • payment.method: specify brands (37b959b)

8.1.0 (2021-04-21)

Bug Fixes

  • i18n: add missing translations [CDS 813] (7576441)

Features

  • ng-ovh-payment-method: add adyen component (7144126)
  • ng-ovh-payment-method: handle new component integration type (f0e372d)

8.0.0 (2021-03-25)

Bug Fixes

  • locale: add missing getUserLocale method (f57bab7)
  • user-locale: use user locale from provider (bfd74a0)

Features

  • locale: add user locale in payment method provider (8cb2a16)

BREAKING CHANGES

  • user-locale: remove @ovh-ux/manager-config dependency

7.0.11 (2021-03-02)

Bug Fixes

  • bump semver range for @ovh-ux/manager-config package (5f3eda1)

7.0.10 (2021-02-02)

Bug Fixes

  • bump semver range for @ovh-ux/manager-config package (ca04d19)

7.0.9 (2021-01-13)

Bug Fixes

  • update semver range for @ovh-ux/component-rollup-config (dda59c6)

7.0.8 (2021-01-04)

Bug Fixes

  • bump semver range for @ovh-ux/manager-config package (23b469f)

7.0.7 (2020-12-15)

Bug Fixes

7.0.6 (2020-10-28)

Bug Fixes

  • peer-deps: upgrade @ovh-ux/ui-kit to v4.4.1 (8254623)

7.0.5 (2020-10-20)

Bug Fixes

  • deps: upgrade ovh-api-services to v11.0.0 (#3869) (df90e4d)

7.0.4 (2020-10-13)

Bug Fixes

  • deps: upgrade to @ovh-ux/manager-config v2.0.0 (ca3f955)

7.0.3 (2020-08-28)

Bug Fixes

  • filter only valid payment method if specified (ebcc9b4)

7.0.2 (2020-08-24)

Bug Fixes

7.0.1 (2020-08-18)

Bug Fixes

  • locale: move locale detection in bootstrapApplication (92d1050)

7.0.0 (2020-07-29)

Bug Fixes

  • ng-ovh-payment-method: depreciate toPaymentMethodType (e7dfef6)

Features

  • ng-ovh-payment-method: add helpers for payment method types (9279eb4)
  • upgrade ovh-ui-kit to v4 (f48f258)

BREAKING CHANGES

  • bump ovh-ui-kit to latest major

Signed-off-by: Axel Peter axel.peter@live.com

6.1.2 (2020-06-09)

Bug Fixes

  • emailpro: fix header tabs button (47d208b)

6.1.1 (2020-06-02)

Performance Improvements

6.1.0 (2020-04-01)

Bug Fixes

  • legacy.mean: add icon as property for model (0e002e6)
  • service: find default payment method (#2603) (cba00ae)

Features

6.0.1 (2020-03-04)

Bug Fixes

  • deps: use latest for @ovh-ux/manager-core (#2394) (fd0a25b)

6.0.0 (2020-03-04)

Bug Fixes

  • ng-ovh-payment-method: payment status category (2565820)

Features

  • components.choice: return object if payment method is selected (b79a4d9)
  • hub: add user panel (#2225) (6529c70)

BREAKING CHANGES

  • components.choice: the two-way binded model will now store an object the representing default payment method, instead of just setting a boolean value

5.2.0 (2019-12-20)

Features

  • payment-method: pre select default payment mean if present (b16a662)

5.1.1 (2019-12-19)

Bug Fixes

  • i18n: add missing translations [CDS 198] (1aefea2)

5.1.0 (2019-12-19)

Bug Fixes

  • i18n: add missing translations [CDS 194] (b6c91ed)
  • i18n: add missing translations [CDS 195] (7b63630)

Features

  • components: add choice component for ng ovh payment method (3023ed7)

5.0.3 (2019-11-27)

Bug Fixes

  • i18n: add missing translations [CDS 151] (736c90f)

5.0.2 (2019-11-07)

Bug Fixes

  • legacy: fix challenge payment mean method (#1724) (c4cfdaf)

5.0.1 (2019-10-28)

Bug Fixes

  • add @ovh-ux/manager-core as peer dependency (84a0c21)
  • i18n: add missing translations [CDS 116] (388486f)

5.0.0 (2019-10-24)

Bug Fixes

  • add blocked for incidents translation (1207419)
  • add missing informations (5470dda)
  • apply eslint rules (69f1c69)
  • apply right prefix and use camelcase as module name (b3a28dd)
  • i18n: submit (46384c0)
  • export module name (#3) (aad7dc5)
  • component: improve responsive (16286a7)
  • provider injection (39022f8)
  • i18n: add missing translations [CDS 114] (d0adb8d)
  • failed status translation (4ca0783)
  • fallback to col-md-x for bs3 grid compatibility (3a9a108)
  • get informations from API for available mean types (2ed6881)
  • ignore tools folder (feea116)
  • open window for new payment method add (7aeaec8)
  • pay order when adding payment method (f4baeb2)
  • remove non necessary accessible attributes (ecb3195)
  • service injections (b469b1c)
  • i18n: retrieve (cc6eb6c)
  • set null as post param for set default leagacy mean (4b4bb67)
  • US available payment mean (464fbf6)
  • i18n: retrieve (ea539e2)
  • i18n: retrieve (5651442)
  • i18n: submit (1b2f862)
  • i18n: submit (324e1cd)
  • i18n: submit (956a07d)
  • legacy.us: transform paymentType for POST (36558ff)
  • package.json: add missing dependencies (39b0a48)
  • provider: fix dependency injection (4b01278)

Build System

  • deps: upgrade ng-translate-async-loader to v2.0.0 (#41) (e0c3f2d)
  • bump ovh-api-services to v9.0.0 (4247a48)
  • translations: move from XML to JSON format (e36cf81)

Code Refactoring

  • ng-ovh-payment-method: rework payment method implementation (#1455) (8bb2249)

Features

  • add fallback image when none in API (8ff103e)
  • add get available methods and new payment method (6e52610)
  • component: add onSelect callback (62bb772)
  • component: allow control of selected type outside of component (40193ca)
  • add method to determine if contactId is required (#87) (ae8a78d)
  • add new US payment method (dff8221)
  • add payment challenge (#76) (cb08cd0)
  • available payment method types (#50) (da71971)
  • vantiv: add ThreatMetric tags insertion (#92) (553ba60)
  • vantiv: manage vantiv iframe intergration (#80) (155c529)

BREAKING CHANGES

  • ng-ovh-payment-method: rework payment method implementation
    • removal of ovhPaymentMethodProvider. This provider only provided a way to set target. As the module now use @ovh-ux/manager-core dependencies target is now available through @ovh-ux/manager-core region
    • removal of ovhPaymentMethodAvailableTypes. You can now use ovhPaymentMethodRegister component
  • translations: some translations files has been removed.
    • Messages_en_ASIA.xml
    • Messages_en_AU.xml
    • Messages_en_CA.xml
    • Messages_en_SG.xml
    • Messages_en_US.xml
    • Messages_nl_NL.xml
  • major bump of ovh-api-services
  • component: remove onSelectedPaymentTypeChange callback of ovhPaymentMethodAvailableTypes component
  • deps: replace @ovh-ux/translate-async-loader by @ovh-ux/ng-translate-async-loader

4.2.0 (2019-09-10)

Features

  • vantiv: add ThreatMetric tags insertion (#92) (a5f1411)

4.1.0 (2019-08-19)

Features

  • add method to determine if contactId is required (#87) (77daae1)

4.0.0 (2019-08-14)

Build System

  • bump ovh-api-services to v9.0.0 (6bfe79f)

BREAKING CHANGES

  • major bump of ovh-api-services

3.3.0 (2019-08-12)

Features

  • vantiv: manage vantiv iframe intergration (#80) (8e58964)

3.2.0 (2019-06-14)

Features

3.1.0 (2019-05-24)

Features

  • component: add onSelect callback (7b749cd)

3.0.1 (2019-05-23)

Bug Fixes

  • pay order when adding payment method (42e9a33)

3.0.0 (2019-05-17)

Bug Fixes

  • component: improve responsive (e06b05b)

Features

  • component: allow control of selected type outside of component (8cedadf)

BREAKING CHANGES

  • component: remove onSelectedPaymentTypeChange callback of ovhPaymentMethodAvailableTypes component

2.2.0 (2019-05-16)

Features

  • add fallback image when none in API (423e316)

2.1.1 (2019-05-07)

Bug Fixes

  • fallback to col-md-x for bs3 grid compatibility (86ec852)

2.1.0 (2019-04-19)

Features

2.0.1 (2019-04-16)

Bug Fixes

  • add blocked for incidents translation (8906ba4)
  • i18n: retrieve (b13c557)

2.0.0 (2019-03-05)

Bug Fixes

  • set null as post param for set default leagacy mean (25aa3ef)

Build System

  • deps: upgrade ng-translate-async-loader to v2.0.0 (#41) (5039faa)

BREAKING CHANGES

  • deps: replace @ovh-ux/translate-async-loader by @ovh-ux/ng-translate-async-loader

1.1.4 (2019-01-30)

Bug Fixes

  • legacy.us: transform paymentType for POST (23a7e38)

1.1.3 (2019-01-23)

Bug Fixes

  • US available payment mean (95df5d0)

1.1.2 (2019-01-23)

Bug Fixes

  • get informations from API for available mean types (6b970f9)

1.1.1 (2019-01-16)

Bug Fixes

1.1.1-alpha.1 (2019-01-14)

Bug Fixes

1.1.1-alpha.0 (2019-01-11)

Bug Fixes

  • open window for new payment method add (32c8c0f)

1.1.0 (2019-01-10)

Bug Fixes

Features

  • add new US payment method (5a7c30e)

1.0.0 (2019-01-08)

1.0.0-alpha.1 (2019-01-04)

Bug Fixes

  • apply right prefix and use camelcase as module name (ce07f66)
  • package.json: add missing dependencies (604825a)
  • provider: fix dependency injection (f6ca77a)

1.0.0-alpha.0 (2019-01-03)

Bug Fixes

Features

  • add get available methods and new payment method (2e8943d)