Closed (fixed)
Project:
Commerce Direct Debit
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
11 Sep 2013 at 10:41 UTC
Updated:
5 Dec 2013 at 12:30 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
fastangel commentedI created a patch for this integration. I added a variable for enable sepa or not. When you enable is showed a textfield for request IBAN/BIC code.
Comment #2
fastangel commentedCreated a new version with validation of IBAN and SWIFT code.
Comment #3
fastangel commentedCreated a new patch for old versions.
Comment #4
fastangel commentedsome improve in the patch.
Comment #5
fastangel commentedAdded some fix.
Comment #6
fastangel commentedAdded some fix.
Comment #7
fastangel commentedAdded to patch integration with views.
Comment #8
sja1 commentedHello Fastangel, one question and one comment...
Question: Of the patches you have uploaded, does more than one need to be applied? Do they apply to the stable 1.0 release or the 1.x dev release?
Comment: The maintenance status of this module is "Seeking new maintainer.", and the development status is "No further development." I point this out in case you might be interested in contacting the owner to take over maintenance.
Comment #9
fastangel commentedNew update.
Comment #10
roam2345 commentedFix broken patch by fastangel.
Comment #11
roam2345 commentedDang, did not work.
Rebuilt patch by hand against latest 7.x-1.x branch.
Comment #12
fastangel commentedI changed a little description text.
Comment #13
anybodyThis patch seems very important to me and should be integrated into the current .dev release as soon as possible. Thank you so much for your great work!
Comment #14
fastangel commentedRemoved eregi and change to preg_replace.
Comment #15
fastangel commentedSorry some fixed. I talked with the owner to add this patch to dev version.
Comment #16
fastangel commentedNew patch with some title changes. This weekend I will pass to dev version.
Comment #17
anybodyI thought a bit about this and I'm not sure if perhaps a separate module or at least a module rename would make sense.
Some reasons:
1. The name of the payment still contains "UK", which is not right for the SEPA case
2. A separate module would make development easier and better split up different cases. I think it would also speed up development.
3. Users can decide when to switch by using the Direct Debit SEPA module and the UK module would be kept clean
What's your oppinion?
Comment #18
anybodyI've tested your patch - many things seem to work fine but the validation function doesn't seem correct.
If I enter correct BIC and IBAN the form tells me "Your sort code must contain 6 numbers." as error, which is wrong.
Furthermore please keep in mind that it should be possible to (optionally) split the IBAN in groups for easier input. Example: DEXX XXXX XXXX XXXX XXXX XX
This should not trigger an error for usability reasons I think.
Comment #19
mrfelton commented> The name of the payment still contains "UK", which is not right for the SEPA case
What do you mean? The name of the module is commerce_directdebit, which is exactly what it is. We use the exiting module both in the UK and Ireland already. It just supports the new European direct debits too that will be coming into effect in 2014. I'd recommend just updating the description on the project page, cutting a new major release, and detailing the new enhanced support in the release notes.
> 2. A separate module would make development easier and better split up different cases. I think it would also speed up development.
There is already a community of people here using and developing for this module, many of which will also need to switch to the new scheme in 2014. By keeping it all here, it becomes a simple config change for them, rather than the implementation of yet another new module.
> 3. Users can decide when to switch by using the Direct Debit SEPA module and the UK module would be kept clean
They can already do that with this setup. We are already using it. You can even use both alongside each other - it's a simple setting in the rules config to determine which style of direct debit you want to use.
Comment #20
anybodyThanks a lot for your response. As described above, this was just a suggestion. The "UK" is also somewhere in the rules I think... I'll look it up but I'm sure that I've seen it somewhere on the Shop-Website itself.
By the way: We need the module for a German website, so independency from the British special cases is important to us, if we don't start a separate project (which would be sad I think) :)
Thanks a lot again.
Comment #21
fastangel commentedPushed to dev branch and working in the changes commented #18
Comment #22
anybodyI've just tested the new version. Now I have two separate payment methods available in rules:
The first one can be editied in rules (as before). The second one has no options if I try to edit it. It also displays no value in the payment options (but can be selected as payment method by clients).
Furthermore the first one still has the same validation problems, but that might be correct?
Comment #23
anybodyThis doesn't work for me at all. If I enter correct values for BIC / IBAN in the "old" payment method (UK) then I always receive the error:
Your sort code must contain 6 numbers.
What am I doing wrong and could you perhaps provide some examples for correct values? Could you have a try in your environment?
Comment #24
anybodyOk I just debugged a bit and the reason is the following:
If I enable the "Enable SEPA integration" checkbox, the field "sort_code" does not exist anymore. But it is being checked in function "commerce_directdebit_submit_form_validate" which so always fails.
There is some duplicate code in link 235 which should be removed, I think.
Comment #25
fastangel commentedI think that you are confused. If you want to enter BIC/IBAN you need to enable the checkbox in the rules in other case the code that you need is how the old module. More clear now?
Comment #26
anybodySorry there is some misunderstanding.
The problem is, that there is some duplicate code in the module which ALWAYS checks the sort_code, even if SEPA is enabled. I've removed it and now everything is logical and works fine :)
Sorry for the confusion. You shoud correct this in the .dev release:
Original from the code (mind the duplication of "Validate sort code"):
Thanks a lot for your quick reply.
Comment #27
fastangel commenteduhmm yes looks like that my patch was bad. I will try fix this afternoon. Thanks.
Comment #28
fastangel commentedfixed and commited.