Skip to content

bonus credits, bug fixes#31

Open
apezio wants to merge 6 commits intomonero-integrations:masterfrom
apezio:master
Open

bonus credits, bug fixes#31
apezio wants to merge 6 commits intomonero-integrations:masterfrom
apezio:master

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.
$payment_id = monero_payment_id();
$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?

apezio added 2 commits October 9, 2024 07:54
…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