The current module does not support the Ds_Merchant_PayMethods variable. This variable is used to skip the payment method selection when more than one is enabled for the account:

Si usted ha integrado mediante desarrollo, para conseguir acceder directamente a iupay, será necesario incluir en su formulario el parámetro:

Ds_Merchant_PayMethods con el valor:O

Si desea que desde el pago normal no aparezca el método de pago de iupay, incluya en el formulario el parámetro:

Ds_Merchant_PayMethods

Con alguno de estos valores:

C: Sólo Tarjeta

R = Pago por Transferencia (solo, si tiene activo este método de pago)

D = Domiciliacion (solo, si tiene activo este método de pago)

T: Tarjeta + iupay

Si desea usar varios, por ejemplo el pago por tarjeta y domiciliación el valor a enviar sería "CD". Puede realizar otras combinaciones de estos valores entre sí, para lograr la configuración deseada.

Comments

ximix’s picture

Issue summary: View changes
David Hernández’s picture

Status: Active » Needs review
StatusFileSize
new1.36 KB

Here is an initial patch that worked fine for the Banc Sabadell. I'm not sure if will be different for other banks, but probably not, as Sermepa is a generic sollution for all the banks using this system.

I guess it will be better to use a field where you can select multiple values and then concatenate them in the submit function. But for now, this patch should do the trick.

David Hernández’s picture

We have confirmed that this patch also works for "La caixa" bank.

facine’s picture

Version: 7.x-1.1 » 7.x-1.x-dev
Status: Needs review » Needs work
StatusFileSize
new73.76 KB

Hello, thank you very much for the work done! but I think we can improve the approach...

According to the official documentation, we have to provide independent buttons for each payment method.

We will create two new payment methods, the internal operation of signature and validation are the same.

Also we have to add the Ds_Merchant_PayMethods parameter but not configurable, each method should be sending it with its corresponding value.

Dato => Formas de pago a usar
Nombre del dato => Ds_Merchant_PayMethods
Longitud/Tipo => - (No se especifica longitud) / Alfanumérico
Comentarios: => Campo opcional que permite seleccionar que formas de pago se podrán usar en la operación. Se podrán especificar varias de ellas concatenadas, por ejemplo: “TVO”, “TV”, "TO", "VO", "T". A la hora de concatenar los valores, el orden no importa ni afecta.
Posibles valores:
C - TARJETA
D - DOMICILIACIÓN (Sólo bancos que lo soportan)
R - TRANSFERENCIA (Sólo bancos que lo soportan)
T - TARJETA IUPAY (Debe estar activa esta forma de pago)
O - IUPAY (Debe estar activa esta forma de pago)
V - V.ME (Debe estar activa esta forma de pago)

En blanco: todos los métodos de pago disponibles para el comercio.

We should also add images of the methods.

So I think it will give us some more work to implement this feature...

pcambra, we invoke you! We want your review

Regards

pcambra’s picture

I think we can have new payment methods, if we get into the path of having this just as settings it won't end well for us.

So we could either have submodules or plugins to define these. If the validation and return are the same, that should stay in the main module.

GoddamnNoise’s picture

Is there any progress with the implementation of the iupay method?

facine’s picture

facine’s picture

Status: Needs work » Closed (fixed)
facine’s picture

Status: Closed (fixed) » Needs review
StatusFileSize
new12.53 KB
new5.54 KB

It seems that for new accounts is mandatory iupay button, so I've created a new patch, which requires this other: #2794393: Add supported card icons on payment selector

  • facine committed 2a84e7c on 7.x-1.x
    Issue #2343165 by David Hernández, facine: Ds_Merchant_PayMethods...
facine’s picture

Status: Needs review » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.