Home
Integration Methods
StormPay
StormPay integration is similar to PayPal, it also uses StormPay's IPN callback.
Note! This is description of integration with StormPay if you use
StormPay buttons on your web pages. If you use StormPay as a processing
system in your shopping cart, use the method for integrating with
shopping cart, not these steps.
Also, make sure you don't already
use StormPay IPN for another purpose, such as some kind of digital
delivery or membership registration.
1
Add integration code
Now add the following code into EVERY StormPay button form
2
Example
Example of updated StormPay form:
<form action="http://www.stormpay.com....>
...
<input type="hidden" name="user1" value="" id="pap_dx8vc2s5">
<script id="pap_x2s6df8d" src="http://www.yoursite.com/affiliate/scripts/notifysale.php" type="text/javascript">
</script>
...
</form>
3
Configuration
Next step is to configure StormPay to use IPN callback to our stormpay script. There is an IPN Cofiguration section of your Profile / Setup page. You should specify there full url to the stormpay script:
This will tell StormPay that it should silently call http://www.yoursite.com/affiliate/plugins/StormPay/stormpay.php script upon every sale, and it will pass all sale variables including the custom field to this script.
This is all that is required. Now whenever there's sale, StormPay will
use its IPN function to call our sale tracking script, and system will
generate commission for the affiliate.