Code Monkey home page Code Monkey logo

prestashop-webpay's Introduction

Prestashop Webpay KCC Plugin

A Prestashop Payment Module for Transbank's WebPay.

Un Plugin para Prestashop 1.6.x (1.5.x puede servir también) que se integra con el método de pago online Webpay KCC 6.x de Transbank.

Para saber como configurar Webpay en el Servidor revisar la Guía Webpay.

Soporte para Webpay KCC modo TR_NORMAL.

Obsoleto

No Maintenance Intended

Transbank ha desechado el uso del KCC por lo que este plugin ya no será mantenido. Más información en http://www.transbankdevelopers.cl

Importante (Copyright)

Este código está programado bajo la Licencia GPL 3 (Ver LICENCE).
Lo que quiere decir que cualquier derivado del código que lo use debe ser liberado bajo la misma licencia.

Copyright 2014-2015 Camilo Castro Cabrera. No incluir el autor original del código es una infracción a la licencia GPLv3 y se pueden realizar acciones legales para quienes recurran en este acto.

Texto basado en README de https://bitbucket.org/ctala/woocommerce-webpay

prestashop-webpay's People

Contributors

clsource avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

prestashop-webpay's Issues

Problems installing module inside non english sites

How to Replicate

If config_es.xml is present in the zip installer,
shops that does not have spanish installed will
throw an error when uploading the plugin.

On Debug Mode will say
config_es.xml is not a valid module name.

Posible Solutions

Do no ship config_es.xml with the zip. Prestashop will it generate anyway.

Webservice

Hola,

Tienes algún manual para integrar webpay server webservice... en la pega contrataron ese servicio y creo que no lo comprendo muy bien. Saludos!

Add Payment Hook View

Add Payment Hook TPL

This View is shown when the user wants to pay the cart.

Must show the option for Webpay Payment.

Create Config Page

Create Configuration Page

Set the Configuration Variables
and Errors Messages.

Show a Panel for editing the plugin
options.

Implement Failure Page

Failure Page

This page is show if the transaction
fails.

Should have some information that
transbanks sends.

Fix Fatal error: Call to undefined method Context::shop()

Fix Error Related to Context Shop ID

This error is caused in this line

$activeShopID = (int) Context::getContext()->shop()->id;

Must solve removing parenthesis in shop like this

$activeShopID = (int) Context::getContext()->shop->id;

Improve Config Template

Make Modifications to the Template

Small fixes and modifications as needed
for Release 1.

Implement Success Page

Success Page

The Success Page have all the details
that comes from transbank.

Should also only be shown if the

TBK_RESULTADO = 0

If not , it should redirect to Failure Page

Make Visible the Plugin in Admin

Make the plugin visible in Modules Section

Must be visible in
Modules > Payment Gateways

This should be the basic skeleton
and hook to the corresponding sections.

Duda con CheckMac

Hola!

No se si puedo hacer la pregunta ya que es más de negocio pero...transbank me solicita una porción de código donde realiza la validacion de la checkmac en la pagina de cierre. Me podrias ayudar con ese tema ya que sinceramente no se que está pidiendo esa empresa jajaja. Saludos!

Add Payment Return Hook View

Add Payment Return Hook TPL

This view is shown after selecting the payment options.

Must show the cart data and send the info to transbank.

Implement Callback Page

Callback Page

This Page Verifies that
everything is OK

and informs transbank the success
or failure of the transaction.

Transbank calls this page automatically.

Pregunta: Problemas con Recibir Parámetros

Estoy tratando de implementar este modulo pero me salta una error. Seria de gran ayuda si me das una mano con esto.
image

Los archivos de log que tengo tiran esto:

2015-11-18 09:33:46 : Start Validation
2015-11-18 09:33:46 : #################
2015-11-18 09:33:46 : Params Not Found
2015-11-18 09:33:46 : TBK_ORDEN_COMPRA Not Set
2015-11-18 09:33:46 : TBK_RESPUESTA not set
2015-11-18 09:33:46 : Final Result: RECHAZADO
2015-11-18 09:33:46 : End Validation
2015-11-18 09:33:46 : #################

y otro dice:

2522800;257

Para la prueba estoy usando estos datos encontrado en un pagina

VISA: 4051885600446623 (Resultado Aprobado)
Mastercard: 5186059559590568 (Resultado Rechazado)
Código Verificación: 123
Fecha vencimiento: 01/2018
RUT: 11.111.111-1
Clave: 123

Me quedo esperando una respuesta que pueda salvarme hahaha, Saludos

Fix FilePath Includes

Wrong Paths in Lib Webpay

Errors like
this
Warning: include_once(./constants.php): failed to open stream: No such file or directory

Solution

Use

dirname(__FILE__)

for includes.

Also
Parse error: syntax error, unexpected 'self' (T_STRING) in /payment.php on line 72

just put an equal sign in line 72 🍔

Failed CGI Verification

Estoy teniendo un error que falla al momento de ejecutar el tbk_check_mac.cgi. Que podrá ser?
Es un servidor bien básico que lo puedo administrar por cpanel nomas, no tengo acceso a consola. El ip del servidor no permite entrar directamente a la app ya que hay varias apps en ese mismo ip, tiene que tener el dominio osino rutea a otra pagina del host. No se si afecte esto, de todos modos le puse el ip que me dio haciendo ping -c1 dominio.com.

Alguien se le ocurre que puede ser lo que pueda estar fallando? Adjunto imágenes con más detalles del error.

selection_532

selection_533

selection_534

Saludos y gracias de antemano

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.