You can run some additional tasks after the simple cart plugin has processed a sale.
Note that this should only be tried by a developer as it involves custom PHP coding.
The plugin has an action hook that gets fired after the PayPal IPN (Instant Payment Notification) data is processed. You can use this hook to do additional custom tasks. Below is an example snippet of code that shows you how to use this action hook.
Add the following block of code to your functions.php file of the theme:
add_action('wpspc_paypal_ipn_processed', 'wspsc_my_custom_ipn_tasks'); function wspsc_my_custom_ipn_tasks($ipn_data) { //You can write the $ipn_data array's content to a file to see //what paypal sends in the IPN $firstname = $ipn_data['first_name']; $lastname = $ipn_data['last_name']; $email = $ipn_data['payer_email'] //Do something with the data }
The IPN message consists of variables and is available as an array inside your function. You can access an element of the array by using the proper variable name. To see a list of all the available variables please check the PayPal IPN documentation page.
Note: We provide technical support for our premium plugins via our customer only support forum