Skip to content
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

bonus credits, bug fixes #31

Open
wants to merge 6 commits into
base: master
Choose a base branch
from

Conversation

apezio
Copy link
Contributor

@apezio apezio commented Mar 8, 2018

Fixed bugs related to underpaying invoices, paying multiple invoices, and invoice statuses not being updated.

Added (optional) config setting to add a bonus credit to clients credit balance on each successful XMR payment.

apezio added 4 commits March 8, 2018 12:25
Bonus Credit config option is now available for paying in XMR.
Fixed bug when Invoice was only partially paid.
Now each invoice has it's own cookie for the payment_id.  Previously client payments would be applied to any invoice the client opened.
$invoice_id = stripslashes($_POST['invoice_id']);
$client_id = stripslashes($_POST['client_id']);
$payment_id = monero_payment_id($invoice_id);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you please improve the security of monero_payment_id function? You will be able to inject potentential and dangerous scripts.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't know how to improve it. :(

@serhack
Copy link
Member

serhack commented Mar 31, 2018

@apexio any news?

…ite existing files, and reviewed for potential issues with PHP version and module usage in WHMCS 8.2.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants