salesking / sepa_king

Ruby gem for creating SEPA XML files
MIT License
149 stars 118 forks source link

Pay in CHF #68

Closed chrisokamoto closed 6 years ago

chrisokamoto commented 6 years ago

I am having trouble generating a XML file with this gem using pain.0001.001.03 and currency in CHF. When I upload the file to Credit Suisse test page to check the structure, it says

Currency 'CHF' is not allowed for payment type 5

. I think the problem is that using this gem, even if I don't set the service_level to 'SEPA', it is being automatically set to it for pain.0001.0001.03. If I just remove this part `

SEPA
  </PmtTpInf>`

from the xml, the file passes on the test. Can you provide a modification that would fix this? Like, if I don't provide the service_level information, the gem don't automatically sets it.

chrisokamoto commented 6 years ago

I cloned the repository and did the modification by myself: https://github.com/chrisokamoto/sepa_king_extended/commit/4d616b3c6f3157c1b99ea60ec3ce20ecc680508d

I don't know if it is interesting for the gem, since the gem is SEPA-related.