Quote:
Originally Posted by vb_mp
Hm @Quarterbore,
I am trying to move the payment_gateway edit code above into a plugin on the paidsub_build hook.
When in the build_user_subscription method in class_paid_subscriptions, we don't have direct access to paymentinfo data including
paymentinfo['amount']
paymentinfo['ipaddress']
paymentinfo['paymentinfoid'];
How do you suggest I retrieve them? With an extra query?
|
I can help with that tonight after work as I don't need to have the idevaffiliate script to work on that
Now, I do see that the hook is inside of a function so the only values I expect we have to work in there are the ones defined:
PHP Code:
function build_user_subscription($subscriptionid, $subid, $userid, $regdate = 0, $expirydate = 0, $checkperms = true)
That will likely mean a query would be needed but I would need to drop some test code into that hook to see what variables are in memory that we can use. I hope I didn't waste a bunch of your time with my suggestion and I will see what I can get out of here after work.