Pasat 4b Payment Method


This module allow you to use 4b Pasat Internet with Ubercart.

I used uc_lacaixa as a base for the module, and it seems they would be similar.
Unfortunately, I needed to change most of the code.

It does not include MAC checking. I have not been able to make it work with php. Documentation is too poor and examples are really old.
It does include IP checking.

If you want custom receipts urls, you will need to make it yourself.
You may also want a custom payment page, but you are on your own too.

I needed to integrate this TPV with Ubercart and made this module. It seem to work, at least for me.
Of course you can use it with GPL v2 License, I will try, but I can't promise it will work or I will be able to correct any issue.
Probably, you will be in your own out there, but you already have a good point to start.

uc_pasat4b_6.x-1.0.tar.gz15.2 KB
rtorralba's picture
Joined: 10/12/2010
Juice: 6
URL de cesta errónea


Firstly thanks for module development. I'm tryed to use this module but when i go to meka the checkout pasat internet reurn the following error: URL de cesta errónea. Compruebe si la URL donde reside la cesta es correcta y si ésta funciona correctamente

No se encuentra la URL de la cesta.

Can you help me?

Thanks in advance.

rtorralba's picture
Joined: 10/12/2010
Juice: 6
URL de cesta errónea

When I try to visit http(s)://your.url/pasat4b/checkout_details (changing your.url by mi real url of course) it retuns 500 internal server error

willeaton's picture
Joined: 05/06/2008
Juice: 65
Error of checkout URL

This exact same thing happened to me and I rolled my sleeves up ready to dive into the code and sort it all out. Turns out, after looking at the 73 pages long manual (!!!!), that this system requires you to enter configuration in the bank system ( rather than in Drupal like the Sermepa system.

Process for use...

1. Install the module
2. Go to admin/store/settings/payment/edit/methods and enter the "Código de Establecimiento" which is the same as the first field to enter into sent to you by the bank
3. Activate the module on the same page (I installed uc_conditional_payment so that only admin could see this payment type whilst testing because I was installing it on a live site)
4. Go to, log in using details given by bank
5. Click on "Modulo de configuracion" at the top of the screen the click "configuracion" in the left hand menu
6. Enter the following information into the following fields (note that the README.txt has wrong URLs

URL que devuelve el desglose de la compra: (XXXXXX = your domain name)

URL que graba el resultado en la BD del comercio (TRANSACCIONES AUTORIZADAS):

URL que graba el resultado en la BD del comercio (TRANSACCIONES DENEGADAS):

URL de continuación posterior a la página de recibo



Y pinchar "Actualizar configuracion"

7. Now we test the system by making a purchase with this payment type.
8. When entering bank card details in the test environment I found that the card number 12345 didn't work but the 40000 did. The date field just requires any date in the future and CVV2 is 111 (see manual)
9. When you are completely happy and are ready to activate the real system (and not the test environment) then navigate to the bank config page (see point 4 and 5 above) then click on "Paso a produccion" in the left hand nav.
10. Click on the "Pasar a produccion" button in the page

I hope this saves someone else lots of time!
William Eaton - Andalucia Web Solutions

willeaton's picture
Joined: 05/06/2008
Juice: 65
New version

I attach a new version to this module. The only thing I have modified is that I have added an instruction field to the admin form in /admin/store/settings/payment/edit/methods which follows the standard of the other payment methods. It basically gives you a text box where you can write instructions to the customers on how to use that payment method.

uc_pasat4b.tar.gz 15.6 KB
sourabh's picture
Joined: 03/18/2011
Juice: 6
Hello Can you help me out Pls

where i can register my demo account to make further procedure?


larowlan's picture
Joined: 08/10/2008
Juice: 83
Re: Pasat 4b Payment Method

Are these config steps the same for the uc_4b module ( there doesn't seem to be any documentation for it.