Skip to content

Instantly share code, notes, and snippets.

@sproutventure
Created February 16, 2011 05:44
Show Gist options
  • Save sproutventure/828935 to your computer and use it in GitHub Desktop.
Save sproutventure/828935 to your computer and use it in GitHub Desktop.
if ( isset($_GET['payment-success']) && ($_GET['payment-success'] != '0' || $_GET['payment-success'] != null) ) {
$userID = Group_Buying_Utility::getCurrentUserId();
?>
<iframe src="http://www.example.com/wp-content/plugins/wp-affiliate-platform/api/post.php?secret=XXXXXXX&trans_id=<?php echo $_GET['trnId'] ?>&ap_id=XXXXXXXX&sale_amt=<?php echo get_deal_value_in_credits( $_GET['item-id'] ); ?>&item_id=<?php echo $_GET['item-id'] ?>" scrolling="no" frameborder="0" width="1" height="1"></iframe>
<?php
}
if ( isset($_GET['checkemail']) && 'registered' == $_GET['checkemail'] ) {
$userID = Group_Buying_Utility::getCurrentUserId();
?>
<iframe src="http://www.example.com/wp-content/plugins/wp-affiliate-platform/api/post.php?secret=XXXXXXX&trans_id=REGISTRATION&ap_id=XXXXXXXX&item_id=REGISTRATION" scrolling="no" frameborder="0" width="1" height="1"></iframe>
<?php
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment