Jump to content

papal subscribe button


Basheer

Recommended Posts

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

Link to comment
Share on other sites

how weird...

QfodH5c.png

<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.
Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated