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

9.15.0 • Public • Published

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

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

    Package Sidebar

    Install

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

    Weekly Downloads

    57

    Version

    9.15.0

    License

    BSD-3-Clause

    Unpacked Size

    9.48 MB

    Total Files

    307

    Last publish

    Collaborators

    • jisay
    • blary_jp
    • antleblanc
    • cbourgois
    • ovh-ux-cds
    • lizardk
    • ovh
    • marie-j