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

payphone-pay

v0.1.2

Published

Paquete para integrar PayPhone Payments en NodeJS con TypeScript de forma sencilla.

Downloads

10

Readme

Paquete Para Crear Pagos Con PayPhone En Tu App.

npm version npm npm npm GitHub stars

Introducción

PayPhone es una plataforma de pagos móviles que permite a los usuarios realizar pagos de manera segura y conveniente. PayPhone permite a los usuarios realizar pagos en línea y en tiendas físicas, así como transferir dinero entre usuarios. PayPhone también permite a los usuarios realizar pagos a comerciantes en línea y en tiendas físicas, así como transferir dinero entre usuarios.

Requisitos

  • Para poder utilizar la API de PayPhone, es necesario que cuentes con una cuenta de desarrollador en PayPhone. Si aún no tienes una, puedes crearla en PayPhone Developer.

  • Token de acceso a la API de PayPhone. Para obtener el token de acceso, debes crear una aplicación en el portal de desarrolladores de PayPhone. Para más información, consulta la documentación de PayPhone en PayPhone Developer.

  • Store ID. Para obtener el Store ID, debes crear una aplicación en el portal de desarrolladores de PayPhone. Para más información, consulta la documentación de PayPhone en PayPhone Developer.

  • Crear un archivo .env en la raíz del proyecto con las siguientes variables de entorno:

    • TOKEN_PAYPHONE
    • STORE_ID_PAYPHONE

Instalación

Para instalar el paquete, ejecuta el siguiente comando:

npm install payphone-pay

Uso

Para utilizar el paquete, debes importar la clase PayPhonePayments y crear una instancia de la clase. Para crear la instancia, debes pasar como parámetros:

import { createPaymentWithLink, createPaymentWithApp } from 'payphone-payments';

const Props: PayPhoneProps = {
  amount: 100, // Monto a pagar (sin impuestos) en centavos.
  currency: 'USD', // Moneda en la que se realizará el pago.
  email: '[email protected]', // Correo electrónico del cliente.
  phoneNumber: '0959192123', // Número de teléfono del cliente.
  amountWithoutTax: 100, // Monto a pagar (sin impuestos) en centavos.
  tax: 0, // Impuestos en centavos.
  documentId: '0958751234', // Número de identificación del cliente.
  countryCode: '593', // Código de país del cliente.
};

// Para crear un pago con link, debes llamar a la función createPaymentWithLink y pasar como parámetro el objeto Props.
const createPaymentWithLink = createPaymentWithLink(Props);

// Para crear un pago con la aplicación de PayPhone, debes llamar a la función createPaymentWithApp y pasar como parámetro el objeto Props.
const createPaymentWithApp = createPaymentWithApp(Props);

Documentación

Para más información, consulta la documentación de PayPhone en PayPhone Developer.

Licencia

MIT

Autor

Kevin Hernández Crespo

Contribuir

Si deseas contribuir con el proyecto, puedes hacerlo en GitHub.

Soporte

Si tienes algún problema con el paquete, puedes crear un Issue.

Donaciones

Si deseas apoyarme, puedes hacerlo en PayPal.