Integration of payments with Paypal IPN in PHP
Clone the proyect on your server path, create your own .env from the .env.example, run the database located into the folder 'db' and then go to the paypal folder with your browser, you wil be redirect inmediately.
You need Apache, PHP >= 7.0, MYSQL or MARIADB and composer(for resolve dependencies).
- Composer - Dependency Management
We use Git for versioning.
- Andrés (Taurus95 on github)
################################################# Pasos para configurar con cuenta real: Cuenta tipo bussines
-
Ingresar a cuenta paypal -> Configuracion -> selling tools -> Instant payments notifications -> choose IPN -> cargar URL que apunte al archivo "listener.php" ->enable recive IPN messages
-
COnfigurar urls en archivo "env.php". INCLUIR CORREO ELECTRONICO DE CUENTA PAYPAL QUE RECIBIRA LOS PAGOS.
-
Configurar conexion a BBDD en archivo "db/Connection.php" SCRIPT PARA TABLA EN CARPETA DB "paypal_payments.sql"
#################################################
Crear cuentas de testing para tus necesidades...
- entrar a https://www.sandbox.paypal.com/ con cuenta falsa de vendedor user: [email protected] pass: vinculo.paypal
REALIZAR EL PASO N1 descrito arriba. COnfigurar URL del IPN(ESTO SERA DEPENDIENDO DE LA URL EN LA QUE SE MONTE ESTE PROYECTO)
-
cargar variable en true en listener.php $enable_sandbox = true;
-
configurar urls en env.php para que apunten a sandbox y al proyecto .
-
para pagar la cuenta seria con : user: [email protected] pass: vinculo.paypal