mirror of
https://github.com/DanielnetoDotCom/YouPHPTube
synced 2025-10-03 01:39:24 +02:00
Fix plans_id handling in startAuthorizeNetAcceptHosted function
This commit is contained in:
parent
d273322ac4
commit
0a46ad1a27
1 changed files with 3 additions and 0 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue