Zoltan Posted March 20, 2014 Report Posted March 20, 2014 I am trying to add payment manually to an invoice, but when I select one which I set up in admin/settings/system/general/paymenttypes/, I receive an error: Invalid transaction type Could you help me with this? Thanks. Quote
0 Tyson Posted March 20, 2014 Report Posted March 20, 2014 What is the name of your payment type? You should not be using any special characters unless you set them as a language definition in the custom language file. I've created CORE-1106 to improve how payment types are displayed, such that they use their key as a value rather than their name. This would fix the issue you described, but also the rest of the system where they are used. Quote
0 Zoltan Posted March 21, 2014 Author Report Posted March 21, 2014 Well, I am these: Készpénz, Átutalás, CM Host Kredit. Are these considered as special? Quote
0 Tyson Posted March 21, 2014 Report Posted March 21, 2014 Yes, the accented characters are being encoded in the value field, which causes this issue. The task I linked will fix it, but I don't have an ETA on that. The only work-around to using those payment type names is to set them as language definitions instead. To do this, update the custom language file at /language/en_us/_custom.php, and add the following lines: $lang['_PaymentTypes.keszpenz'] = "Készpénz"; $lang['_PaymentTypes.atutalas'] = "Átutalás"; Then go into Blesta and update those two payment types under [settings] -> [system] -> [General] -> [Payment Types]. Change the Name value of "Készpénz" to "keszpenz", and check the box "Use Language Definition". Similarly, update "Átutalás" to "atutalas", and check the language box as well. The payment types should work correctly after you've saved those changes. Note also that the custom language file is a core file, so when you upgrade Blesta, that file will be overwritten, and you will need to merge these changes back into that file. Michael 1 Quote
0 Zoltan Posted March 24, 2014 Author Report Posted March 24, 2014 Thank you, it is working now. The only little thing is that the accented characters are not displaying well before I add the transaction. But only on that page. http://cl.ly/image/0s1g203E151h Quote
0 Michael Posted March 24, 2014 Report Posted March 24, 2014 Do you have the file under UTF-8 encoding or something down that line? Quote
0 flangefrog Posted April 3, 2014 Report Posted April 3, 2014 Do you have the file under UTF-8 encoding or something down that line? Yeah looks like an encoding issue, I would guess that Apache or PHP is overwriting the character encoding set in the HTML. I suggest you add the below code into your .htaccess file. AddDefaultCharset UTF-8 You can also set the PHP character set. Use the below in your .htaccess file if you run PHP as an Apache module: php_value default_charset "UTF-8" Or use this in you php.ini or user.ini if PHP is running as FastCGI default_charset = "utf-8" Quote
Question
Zoltan
I am trying to add payment manually to an invoice, but when I select one which I set up in admin/settings/system/general/paymenttypes/, I receive an error: Invalid transaction type
Could you help me with this?
Thanks.
6 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.