Basheer Posted July 13, 2017 Share Posted July 13, 2017 Hi friends, first of all it is not an issue or bug, Just asking for knowledge. Invoice page i select paypal as the payment method and i can see paypal subscribe button . And in view source <input type="hidden" name="custom" value="1126"> <input type="hidden" name="return" value=.../viewinvoice.php?id=101917&paymentsuccess=true"> <input type="hidden" name="cancel_return" value="../viewinvoice.php?id=101917&paymentfailed=true"> <input type="hidden" name="notify_url" value=".../modules/gateways/callback/paypal.php"> here 101917 is the invoice id, i wonder what is the "1126" here. paypal pass this value as custom .(not product id, orderid,clientid) Thanks 0 Quote Link to comment Share on other sites More sharing options...
brian! Posted July 13, 2017 Share Posted July 13, 2017 it's the invoiceid - so it's the internal value from the invoices table assigned to this invoice... i'm assuming 101917 is the invoice number in your case. 0 Quote Link to comment Share on other sites More sharing options...
Basheer Posted July 13, 2017 Author Share Posted July 13, 2017 this is the tblinvoice table row against that invoice 0 Quote Link to comment Share on other sites More sharing options...
brian! Posted July 13, 2017 Share Posted July 13, 2017 how weird... <input type="hidden" name="custom" value="2571"> though we don't use PP subscriptions, so that might explain that. from the API docs... User-defined field which PayPal passes through the system and returns to you in your merchant payment notification email. Subscribers do not see this field. 0 Quote Link to comment Share on other sites More sharing options...
Basheer Posted July 13, 2017 Author Share Posted July 13, 2017 hmmmmmmmmmm. But how whmcs identify which invoice, or which user from this number, while paypal callback. i checked all tables for this number but i didnt get any answer . - - - Updated - - - <input type="hidden" name="custom" value="101917"><input type="hidden" name="return" value="viewinvoice.php?id=101917&paymentsuccess=true"> <input type="hidden" name="cancel_return" value="viewinvoice.php?id=101917&paymentfailed=true"> <input type="hidden" name="notify_url" value="modules/gateways/callback/paypal.php"> In Check out button all are okay. 0 Quote Link to comment Share on other sites More sharing options...
brian! Posted July 13, 2017 Share Posted July 13, 2017 it's in the return URLs 0 Quote Link to comment Share on other sites More sharing options...
Basheer Posted July 13, 2017 Author Share Posted July 13, 2017 okay, then what is the use of that custom value? 0 Quote Link to comment Share on other sites More sharing options...
brian! Posted July 13, 2017 Share Posted July 13, 2017 okay, then what is the use of that custom value? out of curiosity, does it match the tblinvoiceitems.relid value for that invoice? or by implication, tblhosting.id - i'm wondering if the value is added to the subscriptionid field for that ID. 0 Quote Link to comment Share on other sites More sharing options...
Basheer Posted July 14, 2017 Author Share Posted July 14, 2017 out of curiosity, does it match the tblinvoiceitems.relid value for that invoice? Yes it is 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.