|
Rank: Starting Member
Groups: Registered
Joined: 6/21/2004 Posts: 4 Location: ,
|
Hey All,
I'm really in need of some help here. I need a very small block of perl code to extract the txn_type and then set a payment scheme according to this txn_type.
this is what I wrote, but it doesn't seem to work:
if (!$found && $txn_type =~ /subscr_signup/ig) {
$scheme = "POWERSTART"
}
else {
$scheme = "UNILEVEL"
}
then I'm sending the variable $scheme to my sale.cgi script but it's not setting the initial order to the higher commission.
Thanks so much to anyone that can help.
Vince
Vince Kronlein
ViMax Digital Media
|
|
Rank: Starting Member
Groups: Registered
Joined: 6/21/2004 Posts: 4 Location: ,
|
Nevermind,
This block works perfectly, the problem is that IPN is not returning subscr_signup first, it seems to always return subscr_payment.
This is turning into a pain in the ***.
Vince Kronlein ViMax Digital Media
|