Long story short, I want IP.Nexus to run a certain php script after anyone completes their purchase.
I already know HOW to do so, I'd just like a better understanding of what data is actually posted to the provided page.
/**
* Item Purchased (run before onPurchaseGenerated)
*
* @param array The member purchasing
* @param array Package data (combined array with row from nexus_packages and nexus_packages_*, depending on the package type)
* @param invoice Invoice Model
* @return void
*/
public function onPaid( $member, $package, $invoice )
{
}
How does IP.Nexus post the package(s)? I know it posts an array with the package settings (or atleast I think), though how would I go about properly retreiving data? Also, how would I go about retreiving any data if someone purchased more than one package?
Question
Tutu
Long story short, I want IP.Nexus to run a certain php script after anyone completes their purchase.
I already know HOW to do so, I'd just like a better understanding of what data is actually posted to the provided page.
/** * Item Purchased (run before onPurchaseGenerated) * * @param array The member purchasing * @param array Package data (combined array with row from nexus_packages and nexus_packages_*, depending on the package type) * @param invoice Invoice Model * @return void */ public function onPaid( $member, $package, $invoice ) { }How does IP.Nexus post the package(s)? I know it posts an array with the package settings (or atleast I think), though how would I go about properly retreiving data? Also, how would I go about retreiving any data if someone purchased more than one package?
Link to comment
Share on other sites
8 answers to this question
Recommended Posts