Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Sermepa/Redsys is upgrading to use of SHA256, so current module will stop working on 23th November of 2015.
I know that Drupal 6 is reaching End of Life but there are still projects using it.
I'm already working on it but I'm waiting for Redsys to give me a test user account.
More info about this migration: https://canales.redsys.es/canales/ayuda/migracionSHA256.html
And a RedsysAPI: http://www.redsys.es/wps/wcm/connect/redsys/45b1e5d9-689f-4df0-b2e5-7bff...
Comments
Comment #3
turtulino CreditAttribution: turtulino commentedCreated new release to include the necessary changes.
Comment #4
ferrangil CreditAttribution: ferrangil commentedWe will need this very much too. Can't really help in the development, but can try testing it live.
@turtulino keep us posted of the progress, please.
Thanks
Comment #5
turtulino CreditAttribution: turtulino commentedI am currently waiting for my bank to provide me proper user credentials for testing.
I appreciate any help with testing. Steps:
Thanks
Comment #6
ferrangil CreditAttribution: ferrangil commentedI've already have a copy of the live site, with the 3.x-dev version.
I am going to ask for testing credentials now, as well as a new Ds_MerchantSignature.
I will test with Catalunya Banc and report back.
I cannot enable the new payment method on /admin/store/settings/payment/edit/methods. I click the enabled checkbox, click the "Save configuration" button and the page refreshes but the checkbox is still disabled. No warnings or errors on the screen, the drupal log or apache. Mmm...
Comment #7
turtulino CreditAttribution: turtulino commentedHi ferrangil.
As far as i've tested, new banks new banks should appear as activated when they are created.
Anyway, /admin/store/settings/payment/edit/methods it is not a page managed by uc_sermepa and I can not imagine what may be causing the problem.
Since the parameter is a regular configuration variable, it may be possible to adjust it via Drush:
drush vset uc_payment_method_YOUR_BANK_CODE_checkout 1
...or directly changing the value in the database.
I'm sorry, but I'm not able to reproduce the error.
Comment #8
carlos.burgueño CreditAttribution: carlos.burgueño commentedTesting with Santander TPV... It seems that the order data is not sent successfully, because redsys return "Error en datos enviados. Contacte con su comercio." message. The data show are:
It's tested with a test SHA-256 key for my commerce.
Comment #9
turtulino CreditAttribution: turtulino commentedHi Carlos.
Please check out the code of the web that shows you the error. Search the text "sis0". The number displayed is the error code that is occurring. What is that code?
Today, I have been testing in the Redsys test environment. The results were similar to yours. However, in the production environment, the module has worked well.
Would it be possible to test against Redsys production environment?
Comment #10
carlos.burgueño CreditAttribution: carlos.burgueño commentedThe error code is "SIS0435" : "Error en el cálculo de la firma" in test environment. I have tested against Redsys production environment and It seems to work ok, but I have not yet completed the payment with the card
Comment #11
ferrangil CreditAttribution: ferrangil commentedThanks turtulino.
I did also tried to change the value to 1 into the database variable table , but same result. In the bank configuration, the checkbox "Enabled" is enabled.
I had to enable the "credit card" module (from ubercart) and create a directory like /var/www/keys so a key could be created there. I was using an old version of ubercart and didn't have that directory. I guess with the new version that's kind of required. I think it's the Credit Card with Paypal that required that.
I'll try to find a solution and explain it just in case it happens to somebody else.
Comment #12
turtulino CreditAttribution: turtulino commentedHi ferrangil
If your card payments are managed by Redsys you can safely disable uc_credit module. uc_sermepa does not depend on uc_credit.
I think you could have a problem not related with SHA256. Maybe you should open a new issue to address this problem.
Comment #13
ferrangil CreditAttribution: ferrangil commentedYes, I won't hijack this issue any longer. The Credit card that appeared now is the one by default in ubercart.
I think the issue I had was that the bank machine name had an space! The variable in the variable table had the space too... Maybe the description Codename for the bank, must be unique should include "Do not use spaces"? Not sure if it's the issue but anyway the variable name with spaces it's probably not recommended..
I'll report back as soon as I'm able to test uc_sermepa with SHA256.
Comment #14
ferrangil CreditAttribution: ferrangil commentedHola!
OK, it worked in test mode, with Catalunya Bank, using the credit card their gave me to test.
However, there's a php error on the drupal log, generated at
http://xxx256.xxxx.com/uc_sermepa/post
and the message is
Missing argument 1 for uc_sermepa_post() in /var/www/xxxx256/sites/all/modules/uc_sermepa/uc_sermepa.module on line 333
This appears first, then the Order 26xxx response received and Order 26202 accepted.
Comment #15
turtulino CreditAttribution: turtulino commentedHi ferrangil
Missing argument warning has been removed in the latest commit. You can download the latest version and try again if you want to be sure.
Comment #16
ferrangil CreditAttribution: ferrangil commentedGreat, turtulino, thanks. I see it's fixed.
Another minor thing: In uc_sermepa_menu there's an entry for
admin/store/settings/payment/edit/uc_semepa
You may want to change it to
admin/store/settings/payment/edit/uc_sermepa
I'll test it live tomorrow, just asked for the live key.
Comment #17
ferrangil CreditAttribution: ferrangil commentedHello again.
I have it on a live site, working just fine.
A small bug: If you try to create a bank directly selecting "Live", the page saves and the bank is not added. No error messages anywhere. If you add the bank selecting "Test", then all works fine. Once saved, I edited it to change to Live and it worked fine.
Also, not a bug but something necessary, the language is set to 1 (spanish). I've used a simple function that Pedro Cambra created on the uc_caixa_catalunya module to get the language in use on the browser. Less important than before, as the TPV page has now a select with the languages. A few years ago I think that language switch wasn't there.
As all these small issues are related with this 3.x release, I thought it was better to add them here instead of creating new issues for each small thing.
Thanks you all your work on this module.
Comment #18
cmfdevel CreditAttribution: cmfdevel commentedTesting with Sabadell TPV.
I get this message when I send payment: "Error en datos enviados. Contacte con su comercio."
The data show are:
Importe 0 Sin Asignar
Terminal 1
Número pedido
The hidden code of error is SIS0042:
<!--SIS0042:-->Error en datos enviados. Contacte con su comercio.
Test for SHA-256 in test mode.
Comment #19
turtulino CreditAttribution: turtulino commentedHi cmfdevel.
See comments #8 - #10
Have you tested it in production environment? Currently several people have reported that the module works with Sabadell only in production environment.
Comment #20
turtulino CreditAttribution: turtulino commentedHi ferrangil
For problems other than SHA256 is better to open new issues.
Comment #21
turtulino CreditAttribution: turtulino commentedCurrently some users have reported that the module works correctly with:
Comment #22
ferrangil CreditAttribution: ferrangil commentedCatalunya Bank works in production. I've a site getting orders just fine since last week.
Comment #23
cmfdevel CreditAttribution: cmfdevel commentedHi again turtulino
Finally with the correct HASH SHA-256 (for test environment), the module works fine for Sabadell in test mode. I had an incorrect hash.
Thank you
Comment #24
polmaresma CreditAttribution: polmaresma commentedTested and working with La Caixa, I also needed to set variable with drush as in #7.
Thank's for all!
Comment #25
mjimcua CreditAttribution: mjimcua commentedTested and working with Banco Popular
Comment #26
turtulino CreditAttribution: turtulino commentedCurrently some users have reported that the module works correctly with:
Thank you all for your feedback.
Comment #27
turtulino CreditAttribution: turtulino commentedI think that support for SHA256 is working.
Please use this issue to report currently funcional banks. For other problems, please open new issues.