Forums / Addon Payment Modules / Changing the payment method in the sermepa module to Credit Card only

Changing the payment method in the sermepa module to Credit Card only

Views: 993

Results 1 to 3 of 3
13 Jun 2012, 5:59 PM
#1
zand avatar

zand

New Zenner

Join Date:
Jun 2012
Posts:
9
Plugin Contributions:
0

Changing the payment method in the sermepa module to Credit Card only

Hello,
I currently have the sermepa payment module up and running, and its offering my costumers the option to pay with Card & bank transfer, but we wish to have them pay only with card so the technical support said that we can control this by folloing this: "...Puede enviarnos el parámetro Ds_Merchant_PayMethods con uno de estos tres valores:

T = Pago con Tarjeta
R = Pago por Transferencia
D = Domiciliacion...."

No need to understand Spanish, they just said we should add the parameter Ds_Merchant_PayMethods to the module and select T for Credit Card...
I tried adding it like this:

$ds_merchant_order="1".time();
      $ds_merchant_data=zen_session_id();
      $total=$order->info['total'];             
      $ds_merchant_amount = round($total*$order->info['currency_value'],2);
      $ds_merchant_amount = number_format($ds_merchant_amount, 2, '.', '');
      $ds_merchant_amount = preg_replace('/\./', '', $ds_merchant_amount);
      $ds_merchant_currency = MODULE_PAYMENT_SERMEPA_CURRENCY;
      $ds_merchant_terminal = MODULE_PAYMENT_SERMEPA_TERMINAL;
      $ds_merchant_transactiontype = MODULE_PAYMENT_SERMEPA_TRANSACTION_TYPE;
      $ds_merchant_consumerlanguage = "001"; 
      $ds_Merchant_PayMethods = "T";

since that is the only place in the module that I saw ds_... I also tried 'T',"t" and 't' but this didn't work :( how and were exactly should I add this?

Thanks!

Thanks!

14 Jun 2012, 2:30 PM
#2
zand avatar

zand

New Zenner

Join Date:
Jun 2012
Posts:
9
Plugin Contributions:
0

Re: Changing the payment method in the sermepa module to Credit Card only

I solved this one via the bank's office, they just took the transfer option out, but it would still be nice to know how i could have added this parameter :)

14 Jun 2012, 11:01 PM
#3
torvista avatar

torvista

Totally Zenned

Join Date:
Aug 2007
Location:
Gijón, Asturias, Spain
Posts:
2,876
Plugin Contributions:
7

Re: Changing the payment method in the sermepa module to Credit Card only

without knowing the module at all, while you have assigned a variable the T value, you still have to send it to the gateway along with all the other parameters, probably created in function process_button.

Steve
github.com/torvista: BackupMySQL, Structured Data, Multiple Copy-Move-Delete, Google reCaptcha, Image Checker, Spanish Language Pack and more...