Giter Site home page Giter Site logo

payum-redsys's Introduction

payum-redsys's People

Contributors

cf-josecarlos avatar crevillo avatar jdeveloper avatar makasim avatar minayaserrano avatar

Stargazers

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

Watchers

 avatar  avatar  avatar  avatar

payum-redsys's Issues

Implement with sylius and add refund action

Hi,

I have just installed your bundle and I had implemented successfully with sylius, but I had done making a Gateway configuration form to edit configuration options in syluis admin. I am thinking to implement a refund action in this bundle and create a sylius bridge for this bundle. Before doing it i want to know if you are agree to accept PR.

@makasim What do you think is the best aproach?

Thank you!

Error 500 after payment success

I have patched what @h3llr4iser made for completing the payments.
After that, I´m able to complete the paymet via Redsys and it´s registered as authorized, but on Sylius the order still Pending for payment.

On Redsys panel I can see this:
Error (Server returned HTTP response code: 500 for URL: https://myshopurl.com/payment/notify/zmM6iWVwriknz4d-MU0Ht8xQnKIjzzHfJ1O_G3ixVTY
And Ds_SignatureVersion, Ds_MerchantParameters and Ds_Signature correctly created.

What could be the problem?
Thanks,

@crevillo

Undefined index: Ds_Signature

Haciendo un pago en productión he recibido el siguiente notice:

[Thu Aug 25 10:12:59.034192 2016] [client xxxx:39630] PHP Notice: Undefined index: Ds_Signature in /var/www/html/vendor/crevillo/payum-redsys/Crevillo/Payum/Redsys/Action/NotifyAction.php on line 46

He visto todas las notificaciones todas tiene Ds_Signature salvo esta:

25-08-2016 10:57:41 Autorización 3216  HTTP Asíncrona 9915    Correcto    https://www.xxxxxx.yyyy/payment/notify/zzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzz

Que al darle a detalles pone:

No existen datos enviados o no se han podido recuperar

Parece que redsys en algunos casos puede enviar notificaciones vacías, no se en que caso, porque tengo otra realizada igual al cancelar un pedido que devuelve datos.

Sería conveniente controlar por código este caso?

Gracias

support for Payum 0.12

Hi, I do not have much experience in Payum. But I need Redsys gateway in Payum 0.12 to implement in Sylius. Not if you could tell me what changes are needed. Thank You.

Hola, No tengo mucha experiencia en Payum. Pero necesito redsys gateway en Payum 0.12 para implementar en Sylius. No se si podrías indicarme que cambios son necesarios. Gracias.

Default OK and KO urls should use AfterUrl instead of TargetUrl

In this lines:

if (false == $postData['Ds_Merchant_UrlOK'] && $request->getToken()) {
$postData['Ds_Merchant_UrlOK'] = $request->getToken()
->getTargetUrl();
}
if (false == $postData['Ds_Merchant_UrlKO'] && $request->getToken()) {
$postData['Ds_Merchant_UrlKO'] = $request->getToken()
->getTargetUrl();
}

The capture action sets as defaults for the merchant_urlko and merchant_urlok the value of targetUrl. The targetUrl value is the one that redirects to the Redsys platform. It should use the afterUrl, as it contains the url configured for the done action on the prepare.

If the code linked is executed, it creates a loop where the user is redirected again to the payment after doing the payment and this fails as the number ID has been already used.

Screenshot from 2020-04-30 16-12-28

Cannot come back to Redsys after cancel

Use case

Imagine the following situation: on my website, a customer is sent to Redsys to pay for an order, but once there they click on the Cancel button because they want to pay later. The next time they want to pay for this (same) order, it will be impossible. No redirection to Redsys will be done.

Explanation

When the Cancel button is clicked in Redsys:

  • the customer is returned to my website
  • Redsys sends a notification to my website

Payum handles Redsys' notification with its $gateway->execute(new Notify($token)) process. In payum-redsys' NotifyAction, Redsys notification details are added to the order's details fields, and later persisted in database. One of those details is Ds_Signature.

When the customer comes back to pay for the (same) order, there's no way for them to be redirected to the Redsys gateway, because payum-redsys' CaptureAction only redirects when Ds_Signature is falsy:

if (false == $postData['Ds_Signature']) {
    $details['Ds_Signature'] = $this->api->sign($postData->toUnsafeArray());

    throw new HttpPostRedirect($this->api->getRedsysUrl(), $details);
}

Am I missing something or is there a problem here?

Fallo al conectar con el TPV

Codigo de error: SIS0042 La firma enviada no es correcta

Esto ocurre al enviar al cliente al TPV.

La secret_key y el merchant_code estan correctamente puestos.

Puede deberse a un bug?

Why don't you mark the payment as captured in the NotifyAction?

Just a little question

In the NotifyAction, you just check if the signature is valid. The problem I see is that in fact in this siguation you could verfy if the payment was realized (credit card was accepted) by executing a GetStatus.

At now, if after I entered the credit card, in the next step, if I close the window instead of pressing the "Continue" button, I would have my payment as pending when in reality I payed,

¿Cómo tomar acciones en función de la notificación de Redsys?

Hola,

Cuando se hace un pago, Redsys envía inmediatamente una notificación. Yo necesito inspeccionar esta notificación y ejecutar operaciones en funcion de si me informa de un éxito o de un fallo. Pero también quiero que Payum se encargue de la validación de la notificación (token correcto, url correcta, etc.). Si dejo que Payum recepcione la notificación con su NotifyController, dichas validaciones se hacen, pero el tratamiento de la petición se termina sin que yo haya podido tomar ninguna accion.

¿Cómo puedo yo intervenir aquí? (uso Symfony)

Gracias

Reedireccion al fallar o cancelar un pago

Cuando un pago es rechazado o se cancela desde el boton de cancelar, redsys no redirecciona nuevamente al sitio sino que redirecciona a la url de capture y esta nuevamente lleva al pago de redsys pero indicando el error numero de pedido repetido. Esto es asi o es un error?

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.