Home › Forums › WPLMS AddOns › WPLMS WooCommerce › Integrating customized "Paysera" Gateway module in myCRED
- This topic has 9 replies, 2 voices, and was last updated 8 years, 2 months ago by H.K. Latiyan.
Viewing 10 posts - 1 through 10 (of 10 total)
-
AuthorPosts
-
September 20, 2016 at 1:00 pm #71206IgnasParticipantHello This time I need your support for which I am ready to pay and agreed fee, cause this is some extra integration work I want some pro designer to do with the payment system I am using for my website to buy a credits (points).We want to integrate a bit different module in MyCRED plugin which would enable us to add one more customized gateway. This plugin is working fine with Paypal, it allows me to by points. But in Lithuania (my country) we have analog to PayPal system, called Paysera. Paysera is international system, so you might heard it before, but it's also applied for Lithuanian banks. This Paysera system has already created plugin for creating a gateway in WooCommerce environment. And it works fine. But we want to overcome WooCommerce and operate only on myCRED plugin. Could you create this module, for myCRED plugin. We do have all needed codes, Porject ID, security key, and all libraries dedicated for Paysera integration in online shops. If you could provide me with this service that would be hugely appreciated. Could you advice how much it would cost for us to receive this service from you. Greetings, IgnasSeptember 21, 2016 at 3:07 pm #71433H.K. LatiyanParticipantThanks for suggestion. But I think your request should be directed to the MyCred plugin developers. https://mycred.me/add-ons/October 3, 2016 at 10:40 am #72825IgnasParticipantHello, I am using MyCRED plugin to buy Points. On the Course price now we see only the number of points. But it is confusing if it is Points or some local currency. I see that plugin MyCRED sends code where it shows the word "Point" (on "Points" in case of more than 1 point). Your plugin "Vibe-course-module" reads this kind of code only from WooCommerce (which I don't use). Could you write a short code for customizer.php file to get the same reading function from MyCRED plugin? Please see the pictures of - how I have it now: https://www.dropbox.com/s/4pbgbaa3yole5wx/I%20have.png?dl=0 - how I want it to be: https://www.dropbox.com/s/vo8byaheecf8spy/I%20want.png?dl=0 ThanksOctober 3, 2016 at 2:46 pm #72887H.K. LatiyanParticipantWell this setting is already present in the my cred plugin. You need to provide the suffix in its settings, refer: http://prntscr.com/cpbhkzOctober 3, 2016 at 10:43 pm #72929IgnasParticipantI see what you mean. I know this one, but I need something bit more to it. In Lithuanian language, we have for the word "Point" (LT translation - "Taškas") in singular version and "Points" ("Taškai") in plural version. For the plural version we have two different endings of the word. One is "Taškai" and the other is "Taškų" For example we use singular spelling with "Taškas" we use for 1, 21, 31... 101, 121... 201, 221, etc. As you see 11, 111, 211 is not part of this group. And even more strange that this singular version spelling is used even in all of those plural numbers ending 1. For all some plural numbers such as 2, 3, 4...9, 22, 23, 24...29, 32, 33...39, etc. we spelling "Taškai". And for other type of plurals such as 10, 11, 12... 20, 30, 40, 50, etc, 100, 200 we say "Taškų". So as you see we have quite a bit different more complicated way of spelling this word. So what I want is to be able to have more variation in the string for the ending of this word. So summing up, there are Tree different spellings: Taškas, Taškai, Taškų, The common part is "Tašk" the three different variations are: "as", "ai", "ų". ThanksOctober 4, 2016 at 2:09 pm #73065H.K. LatiyanParticipantThanks for clarification. As such there is no fix provided in the MyCred or WPLMS for this. Based on this I have prepared a small snippet which should resolve this issue for you : Paste below code in Child Theme - functions.php or wplms customizer/wplms_customizer.php ----- add_filter('mycred_format_creds',function($layout,$creds){ // LOGIC $suffix = 'Taškai'; if(empty($cred%10)){ $suffix = 'Taškų'; } if(($cred%10) == 1){ $suffix = 'Taškas'; } $layout = $layout.$suffix; return $layout; },10,2); ----- p.s : Note that this support request is not a part of theme support as it deals with a third party plugin customisation and it should have been directed to MyCred developers.October 4, 2016 at 4:07 pm #73088IgnasParticipantHi, Thank you so much for brilliant support. I will give for sure 5 start on this theme. We tried this code, but there is missing some argument. I got this warning: Warning: Missing argument 2 for {closure}(), Do you think you could advice what to correct? Thank you!October 5, 2016 at 2:43 pm #73221H.K. LatiyanParticipantYes my mistake I forgot to add the number of arguments in the above code. I have updated my above code please add the above code and delete the previous one.October 6, 2016 at 7:53 am #73321IgnasParticipantHi there, Extremely thanks for your support. I found one more bug, and also applied separate code lines for numbers 11, 12, 13...19. Now everything works perfect. I though you might want to use this code for future requests, cause in our neighbor countries the system is pretty much the same. So the final code I use is this: ___ add_filter('mycred_format_creds',function($layout,$creds){ // LOGIC $suffix = ' Taškai'; if(empty($creds%10)){ $suffix = ' Taškų'; } if(empty($creds%11)){ $suffix = ' Taškų'; } if(empty($creds%12)){ $suffix = ' Taškų'; } if(empty($creds%13)){ $suffix = ' Taškų'; } if(empty($creds%14)){ $suffix = ' Taškų'; } if(empty($creds%15)){ $suffix = ' Taškų'; } if(empty($creds%16)){ $suffix = ' Taškų'; } if(empty($creds%17)){ $suffix = ' Taškų'; } if(empty($creds%18)){ $suffix = ' Taškų'; } if(empty($creds%19)){ $suffix = ' Taškų'; } if(($creds%10) == 1){ $suffix = ' Taškas'; } $layout = $layout.$suffix; return $layout; },10,2); ___October 7, 2016 at 3:03 pm #73564H.K. LatiyanParticipantThanks for the update.
-
AuthorPosts
Viewing 10 posts - 1 through 10 (of 10 total)
- The topic ‘Integrating customized "Paysera" Gateway module in myCRED’ is closed to new replies.