1
0
Fork 0
mirror of https://github.com/DanielnetoDotCom/YouPHPTube synced 2025-10-03 09:49:28 +02:00

Fix plans_id handling in startAuthorizeNetAcceptHosted function

This commit is contained in:
Daniel Neto 2025-09-08 15:27:26 -03:00
parent d273322ac4
commit 0a46ad1a27

View file

@ -19,6 +19,9 @@ $obj = AVideoPlugin::getObjectData("AuthorizeNet");
<script>
function startAuthorizeNetAcceptHosted(plans_id) {
if(plans_id === 0){
plans_id = '';
}
const amount = $('#value' + plans_id).val();
if (!amount || isNaN(amount) || amount <= 0) {
if (plans_id <= 0) {