npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

ngx-loovpay

v1.0.2

Published

ngx-loovpay is a solution that can be integrated into Angular applications, giving developers the possibility of integrating them into merchant applications for the purpose of collecting payments.

Downloads

15

Readme

Config ngx-loovpay

To configure the ngx-loovpay module in your project use import the module to your application module

   NgxLoovModule.forRoot({
     app_key: 'app_key',
     merchant_key: 'merchant_key',
     loov_url: 'https://api.secure.payment.loov-solutions.com/v1'
   }), 
   

Init payment

Function used to initiate a payment. This function is used to initiate mobile or card payments. Please note the information requested in the function interface.

  initPayment(payload: PaymentMobile | PaymentCard):Observable<LoovResponse>

Checkout payment status

checking the status of a payment requires the transaction reference


checkStatus(reference:string):Observable<CheckRefResponse>

Pay out

Please note that this API is only available to merchants who have subscribed to this service and have been approved by our compliance department.

Be sure to manage the response appropriately in your application to provide users with accurate transaction information.


payOut(payload: PayOut):Observable<LoovResponse>

Alert Developers

the description must be at least 125 characters long and the name must conform to the example below


    "description": "test paiement de service en ligne",

    "customer": {
        "name": "John Doe",
        "email": "[email protected]",
        "phoneNumber": "23769*******"
    }

Supported Operators

| country | operator | operator_code | | ------- | -------- | ------------- | | Benin | Mtn | mtn-benin | | Benin | Moov | moov-benin | | Cameroon | Orange | orange-money-cm | | Cameroon | Mtn | mtn-cm | | Ivory Coast | Mtn | mtn-ci | | Ivory Coast | Moov | moov-ci | | Mali | Moov | moov-ml | | Mali | Orange | orange-money-ml | | Senegal | Orange | orange-money-senegal | | Senegal | Expresso | expresso-senegal | | Senegal | Free | free-money-senegal | | Senegal | Wave Senegal | wave-senegal | | Togo | T-money | t-money-togo |

Demo

This tutorial shows you how to implement the payment api in your loovPay application.


    this.loovService.initPayment(
      {
        amount: 500,
        operator: 'orange-money-cm',
        phoneNumber: '237693xxxxxx',
        customer: {
          name: 'Steves franc',
          email: '[email protected]',
          phoneNumber: '237693xxxx'
        },
        callback_url: 'https://webhook.site/a6cf31ad-d570-45d1-9995-3b060b4149be',
        payment_mode: 'MOBILE_MONEY',
        description: 'Payment Method Name and Email Address from Customer Name and Email Address from Customer Name and Email Address',
      }
    ).pipe(switchMap((resp: LoovResponse) => {      

      return of(resp);
    }),

     catchError((error: LoovResponseError) => {
      return of(error.error)
     })
    
    ).subscribe();

    this.loovService.checkStatus('LOMvJ4wtFlRwbCrZ5I0').pipe(
      switchMap((resp: CheckRefResponse) => {
        return of(resp)
      }),
      catchError((error: LoovResponseError) => {
         
        return of(error.error)
      })
    ).subscribe();

    this.loovService.payOut(
      {
        amount: 500,
        operator: 'orange-money-cm',
        phoneNumber: '237693xxxxxx',
        currency: 'XAF'
       
       }
    ).pipe(switchMap((resp: LoovResponse) => {    
      return of(resp);
    }),

     catchError((error: LoovResponseError) => {      
      return of(error.error);
     })
    
    ).subscribe();

Security Vulnerabilities

If you discover a security vulnerability within the LoovPay Angular SDK, please report it to Loov Solutions via [email protected]. We take security seriously and appreciate your help in disclosing any vulnerabilities responsibly.

License

The LoovPay Angular SDK is open-source software licensed under the MIT license. You can find the license details in the LICENSE file.

Credits

We hope this SDK simplifies the integration of LoovPay Payment into your Angular applications and enables you to provide a seamless payment experience for your users. If you have any questions, issues, or suggestions, please feel free to open an issue on our GitHub repository. We appreciate your feedback and contributions to help make this SDK even better.