If you wish to pass in additional parameters to DIBS you will have to override the DIBS payment method service which comes out of the box. It basically builds up an HTML form and autoposts it to DIBS so you'll want to add additional parameters to the call that builds up the form.
If you take a look at the class DibsPaymentMethodService you'll see that it has a constructor, which takes in a DibsPageBuilder. The page builder is responsible for building up the form. Create your own page builder which overrides the buildbody method and add in the values you need.
To make it a little easier on yourself you could try building the default form with the DibsPageBuilder and see if you can add in the parameters to the finished result.
Bibs payment, Flexwin question.
Hi, is it possible for me to pass payment type or credit card type to DIBS when i am using DIBS integrated payment in uCommerce?
When i am trying to add "paytype" or "cardtype" as parameters to "Dibs.config" i am getting error for unknown parameter.
Additional info:
http://tech.dibs.dk/toolbox/cardtype_/_paytype/
http://tech.dibs.dk/integration_methods/flexwin/parameters/
Hi Igor,
If you wish to pass in additional parameters to DIBS you will have to override the DIBS payment method service which comes out of the box. It basically builds up an HTML form and autoposts it to DIBS so you'll want to add additional parameters to the call that builds up the form.
If you take a look at the class DibsPaymentMethodService you'll see that it has a constructor, which takes in a DibsPageBuilder. The page builder is responsible for building up the form. Create your own page builder which overrides the buildbody method and add in the values you need.
To make it a little easier on yourself you could try building the default form with the DibsPageBuilder and see if you can add in the parameters to the finished result.
Hope this helps.
Thanks.
is working on a reply...