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 🙏

© 2025 – Pkg Stats / Ryan Hefner

@mysoleas/soleaspay-button-react

v1.0.0

Published

Package pour le paiement en ligne supporté par notre platforme soleaspay

Readme

@mysoleas/soleaspay-button-react

npm version

Package allowing developers using the React JS framework to easily integrate a reliable and secure online payment method into their projects using a payment button provided by the package.

Support us

We invest a lot of resources in the creation of packages to facilitate the integration of online payments via our soleaspay platform . You can support us by using our package on your React JS application.

Installation

You can install the package via composer:

npm i @mysoleas/soleaspay-button-react

You can now include the payment button by importing the useSopayButton hook and the SopayButton component by adding the following code to the page where you want to put the button:

import { useSopayButton, SopayButton } from "@mysoleas/soleaspay-button-react";

to finish you just have to send the following information :

  • apiKey : which is the apikey of the Soleaspay business account that will receive the payment. He is obtained either in the dashboard of the professional account or by request via email to the address [email protected] ;
  • langue (fr, en) : Set the language you want to use for the payment page. "fr" for French "en" for English;
  • btnTitle : Give the title you want to display on the button;
  • mode (tiping, billing) : You can use "tiping" if you want to give the possibility to the user to enter the amount to be paid and "billing" if you want to define the amount to be paid;
  • currency (XAF, USD, EUR) : the currency in which the payment must be made. It must match the to the default of the service selected by the user/customer;
  • amount : this is the amount that the user/customer must pay for an operation of the type billing;;
  • order_id : the unique payment reference in the partner's system;;
  • description : this is the description or purpose of the initiated payment;
  • businessName : The name of your business;
  • loadInvoice (true, false) : whether or not the system should generate an invoice for its customer;
  • successUrl : The url at which you want to receive a notification once the payment has been made perform;

to do this, you need to use the useSopayButton hook which will take the information from it and return a promise. Here is an example of use:

const data = {
  langue: "fr",
  apiKey: "NdeahdanBh-kfwneinAdi_wnf",
  mode: "tiping",
  btnTitle: "Pay Now",
  amount: "1000000",
  currency: "XAF",
  orderId: "MLS00000025F",
  description: "sopay button payment v2",
  businessName: "Mysoleas",
  loadInvoice: "true",
  successUrl: "https://yourdomain.com/receivePayment",
};
useSopayButton(data);

Place the component where you want to display the button

<SopayButton/>

You can see the promise result with the following code

useSopayButton(data)
        .then((res) => console.log(res))

Changelog

Please see CHANGELOG for more information on what has changed recently.

Security Vulnerabilities

Please review our security policy on how to report security vulnerabilities.

Credits

License

The MIT License (MIT). Please see License File for more information.