Hello,

I have already Sermepa payment working propertly on my website. I installed webform Sermepa and try to understand how it works.
I create a new webform and could find a new Field Type called SERMEPA TPV but this field is always hidden in the webform view.
I look for any new settings or fields in Paymen methods but didn´t find a clue.

Before posting I´ve been looking for any documentation to understand how to config a webform for donations and I wasn´t lucky so...

¿What fields do I need to create in a webform sermepa to make a Sermepa TPV request?

¿How the webform sermepa will associate with the sermepa commerce, payment method is already working in my website? ¿Do I need any changes or new rules?

Thanks in advance for your help. I think some documentation or a step by step example should help a lot to the comunity (Once I got this working I could make a first steps guide ;-)

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

jseco created an issue. See original summary.

inakilz’s picture

Hi jseco,

- This is an independent module that does not require use drupal commerce.
- You have two options to use the module: using a fixed price entered in the module configuration or indicate a form text field where you pick the price. When submit, the webform redirects to the TPV with the value of one of them.
- The result of the transaction is stored along with the rest of fields inside the submissions tab.

I hope this help you a bit.

Regards.

danielores’s picture

Inakilz.

It has to be a text field for pick the price? Can't it be a select list or select options, so the user can decide how much to donate? Is that possible with this module?

inakilz’s picture

Yes. Now, you have two options: use a fixed price or use the value of a text field of the form. You can set one of the two options in the sermepa component configuration.
I'll try to add a select options configuration to the component too.

jseco’s picture

Thanks Inakilz for your help.

When you say:
" ...using a fixed price entered in the module configuration"
Which module do you talk to? In the module webform sermepa I just can configure permissions and no any other settings.

If I understood correctly and this is a direct request to Sermepa Tpv:

1. should I create a webform with all fields a TPV requirement needs (Ds_Merchant_Titular, Ds_Merchant_Merchantcode, etc)? all text fields.

2. and should I redirect after submission to the Sermepa payments url?

3 Do I need to include any fild with TYPE "Sermepa TPV"

Thans in advance for your help and patience

inakilz’s picture

Hi jseco,

Once the module is installed, you need to create a sermepa component in your webform. Inside, you will find the settings related the required fields to send to the TPV like you can see in the next figure:

webform_sermepa

inakilz’s picture

Hi danielores,

I've added support for listbox and numeric fields as amount input in the current develop release.

Regards.

jseco’s picture

Hi Inakilz

I can´t find the sermepa settings you show in the message :(
But... when I create a component in a webform, choosing: "SERMEPA TPV" Type
I can´t see any settings as you saw. Instead I just see the capture I upload.

I have installed correctly these modules
- Webform sermepa 7.x-1.4
- webform 7.x-3.20
- And we have our normal check out working with sermepa payments.

Your explanations are great, thamk you,
but some how there is some problem on how this module works in my drupal. Any idea?

inakilz’s picture

Hi jseco,

I have tested it only with 7.x.4.x webform module versions. I recommend you update webform module. Also, You should download the latest version of webform_sermepa. Note that this latest version only allows sha256 encryption method (the only one currently supported) and needs library: https://github.com/CommerceRedsys/sermepa installed in the folder sites/all/ libraries

danielores’s picture

Hi inakilz:

the module works fine. But, when de operation is finish, drupal print this notice:

Notice: Undefined variable: ds_order a _webform_sermepa_check_pay() (línia 145 de /mnt/www/html/mansunides6wh2shuokkl/docroot/sites/all/modules/webform_sermepa/webform_sermepa.module).

It's a problem? How can I fix it?

inakilz’s picture

Hi danielores,

To fix it, please, update to the last version.
Note that now the module only support the sha256 password encryption.

Regards.