[TC] PaymentProfiles for [BR] Credits

[TC] PaymentProfiles for [BR] Credits 1.0.3

Сообщения
2
Реакции
0
Баллы
1
Отличный плагин, Расширяет платежный функционал форума. Все работает. Все понятно и удобно!
 
Сообщения
7
Реакции
0
Баллы
1
Hello Mate, i just purchase your addon.

I need positive exchange rate :

Instead of :
Credits Received = Money Paid (after tax and fee) / Exchange Rate

I need:
Credits Received = Money Paid (after tax and fee) * Exchange Rate

How i can change that ?

Aditional i have a wrong Event Defination Name: https://prnt.sc/wii4mm
How to fix it ??

Thanks
 
Сообщения
7
Реакции
0
Баллы
1
Hello Matew thanks for your reply
I've just realised that you can set 0.2 to exchange rate field. It does not require files changes.

With your new Update i get now:
1610278339748.png

Unfortunately i think you have miss understand me. I didn't need a fixed exchange amount (you can set 0.2 to exchange rate field).

1610278027194.png

I need it like on the above example: If some client pay 100 USD so, you need get receive 300 Credits

I was able to getthe correct exchange calculation after changing in both following files:


/src/addons/TC/MJCreditsPayments/Pub/Controller/Credits.php
1610278514079.png

and /src/addons/TC/MJCreditsPayments/Purchasable/Credits.php
1610278625496.png


1610278853284.png

It is does calculate the exchange Rate correctly:
1610279095354.png


But now I get now under Tools >> File health check following issue, how can i fix that ?

1610277296519.png