Download the PHP package gozozo/openpay-server without Composer

On this page you can find all versions of the php package gozozo/openpay-server. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package openpay-server

Openpay Server PHP - Laravel

Implementación de los servicios de Openpay

Instalación

Ejecutar el siguiente comando

Después agregar la siguiente línea en provider en el archivo que se encuentra en config/app.php del proyecto

y luego ejecutamos los siguintes dos comandos en la terminal

Configuración de .env

Es necesario agregar las siguientes configuraciones en el archivo .env del proyecto de Laravel

Configurar middleware

Permite una autenticación antes de acceder a las rutas de openpay

Llaves del API de Openpay

Configuración de las llaves

Tabla de referencia

Relación de la tabla de referencia openpay con tu tabla de usuarios. Dejar sin datos si no se desea relación

Activar modo producción

Es necesario asignar a la variable de APP_ENV que se encuentra en nuestro archivo .env a production

Rutas

Clientes

Tipo Ruta Descripción Observaciones Ejemplo
POST openpay/customer Crea un nuevo cliente Parameters lleva el json de información del cliente: Json nuevo cliente Openpay url : http://ejemplo.com/openpay/customer/ datos : "{"external_id" : "","name" : "customer name","last_name" : "","email" : "[email protected]","requires_account" : false,"phone_number" : "44209087654","address" : {"line1" : "Calle 10","line2" : "col. san pablo","line3" : "entre la calle 1 y la 2","state" : "Queretaro","city" : "Queretaro","postal_code" : "76000","country_code" : "MX"}}"
DELETE openpay/customer/{id_user} Elimina al cliente - url : http://ejemplo.com/openpay/customer/1

Tarjetas de un cliente

Tipo Ruta Descripción Observaciones Ejemplo
POST openpay/customer/{id_user}/card Guarda una nueve tarjeta al cliente Parameters lleva el json de información del tarjeta: Json nueva tarjeta url : http://ejemplo.com/openpay/customer/1/card datos : "{"card_number":"4111111111111111","holder_name":"Juan Perez Ramirez","expiration_year":"20","expiration_month":"12","cvv2":"110"}"
GET openpay/customer/{id_user}/card Regresa todas las tarjetas de un cliente - url : http://ejemplo.com/openpay/customer/1/card
DELETE openpay/customer/{id_user}/card/{id_card} Elimina tarjeta del cliente - url : http://ejemplo.com/openpay/customer/1/card/aarwcowd2iuaxfsv5c70

Cargo con id tarjeta de un cliente

Tipo Ruta Descripción Observaciones Ejemplo
POST openpay/customer/{id_user}/card/{id_card}/charge Crea un cargo a tarjeta ya guardada Parameters lleva el json de información del cargo: Json nuevo cargo url : http://ejemplo.com/openpay/customer/1/card/kqgykn96i7bcs1wwhvgw/charge datos : "{"source_id" : "kqgykn96i7bcs1wwhvgw","method" : "card","amount" : 100,"currency" : "MXN","description" : "Cargo inicial a mi cuenta","order_id" : "oid-00051","device_session_id" : "kR1MiQhz2otdIuUlQkbEyitIqVMiI16f"}"

All versions of openpay-server with dependencies

PHP Build Version
Package Version
Requires php Version >=5.4.0
illuminate/support Version ~5
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package gozozo/openpay-server contains the following files

Loading the files please wait ....