YetAnotherForum
Welcome Guest Search | Active Topics | Log In | Register

Perl Block to extract txn_type Options
VMax
#1 Posted : Sunday, July 18, 2004 4:37:19 AM
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
Sponsor  
 
VMax
#2 Posted : Tuesday, July 20, 2004 5:52:23 AM
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
Users browsing this topic
Guest
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

YAFVision Theme by Jaben Cargman (Tiny Gecko)
Powered by YAF | YAF © 2003-2009, Yet Another Forum.NET
This page was generated in 0.189 seconds.