Connect to web service after successful checkout
Posted: Fri Jan 15, 2010 9:19 am
Hello,
I'm trying to figure out the best way to provision a user account through an API on a remote site once the user's purchase has been successful for a certain SKU (it's a subscription to a backup service). In a perfect world it would look something like this?
//purchase is successful
//loop through order, if the order contains the sku for our backup subscription
if (product.sku=="mybackupplan")
{
//code to provision user account on remote system using the users email address
}
Where in able commerce would be the best place to do this? Would it be the receipt page (page that appears after successful purchase?)
Thanks,
Jeff
I'm trying to figure out the best way to provision a user account through an API on a remote site once the user's purchase has been successful for a certain SKU (it's a subscription to a backup service). In a perfect world it would look something like this?
//purchase is successful
//loop through order, if the order contains the sku for our backup subscription
if (product.sku=="mybackupplan")
{
//code to provision user account on remote system using the users email address
}
Where in able commerce would be the best place to do this? Would it be the receipt page (page that appears after successful purchase?)
Thanks,
Jeff