-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Wrong default value ChrgBr #6
Comments
Hi @andre-m-dev The service level currently only influences the service level code:
So in my opinion, We could make it optional to provide the value and use the provided charge bearer value instead of using the |
As per page 47: So you are right, only for SEPA it must always be Could you maybe share a bit more information about your specific use case? |
I created the transaction as follows:
and transmitted via: XE2. The technical support replied: But maybe it's not the problem at all: Hopefully this will help, otherwise you are welcome to get in touch by other ways. |
Ok, so here would be my proposal:
Would that solve your issue? |
@tobischo thank you very much for your effort and time. Based on the answer from technical support, I was just wondering why the attribute "ChrgBr" is always added with the value SLEV. The proposal looks good to me and I can test it afterwards. |
Pretty much because I may not have paid enough attention in the docs to the value being SEPA specific a few years ago 😄 |
Alright, prepared a change in #7 Please let me know what you think |
When a new
SPS::CreditTransfer
transaction is created, regardless of the value selected forservice_level
,builder.ChrgBr('SLEV')
is always executed. According to the ISO manual, SLEV may only be used for SEPA payments.Tested with ZKB in Switzerland
Code:
sps_king/lib/sps_king/message/credit_transfer.rb
Line 59 in b9db310
The text was updated successfully, but these errors were encountered: