What I am trying to do is once the user checks out, say he buy's $25 worth of points; I need to send a message to an API that the user made purchases worth $25 dollars.
I found the file, checkout.thankyou.tpl.php
, where the confirmation message is given after all goes well. This is where I am going to tie in the API function.
My question is how do I get the amount that the user just purchased? From the page mentioned above, I need to access the total amount that the user just spent. Is it stored in a global variable? Is it still accessible? I will appreciate any ideas that you may have.