<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://dev.alertpay.com/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Search results matching tag 'Scripts'</title><link>http://dev.alertpay.com/search/SearchResults.aspx?o=DateDescending&amp;tag=Scripts&amp;orTags=0</link><description>Search results matching tag 'Scripts'</description><dc:language>en-US</dc:language><generator>CommunityServer 2007.1 SP2 (Build: 31113.47)</generator><item><title>Re: New Shopping Cart developed mainly for Alertpay client</title><link>http://dev.alertpay.com/forums/p/3324/7277.aspx#7277</link><pubDate>Tue, 19 May 2009 01:21:39 GMT</pubDate><guid isPermaLink="false">57a524bd-45b2-4594-a7ad-396871ad85fb:7277</guid><dc:creator>milestheman</dc:creator><description>&lt;p&gt;Well; Just to give you My feedback on this&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Great job in making a shopping Cart for AlertPay; I wouldn&amp;#39;t pay over $30 for a script to deliver Downloadable Goods after a sale; and probably wouldn&amp;#39;t pay more than $50 for a Shopping cart; but that&amp;#39;s just me.&lt;/p&gt;
&lt;p&gt;I am still Hoping more Open Source Coders who have experience with Payment Gateways would go to work to put together some scripts to Help the Community of people who Do use AlertPay as a processor could begin to truly Flourish as the way I see it -- we are all IN it together.&lt;/p&gt;
&lt;p&gt;The better the Scripts &amp;quot;available&amp;quot; for people to use are; the more likely MORE Site Owners will Look to AlertPay as a viable Option to use; which makes the company Stronger; and gives us All even More Tools to use to grow our businesses online.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Good luck to you with this new product!!&lt;/p&gt;
&lt;p&gt;Hopefully you&amp;#39;ll consider some lower priced Scripts that will benefit those of us on Smaller Budgets (which is a pretty large number of site owners)&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;To your Success!&lt;/p&gt;</description></item><item><title>Re: IPN Not Working</title><link>http://dev.alertpay.com/forums/p/2996/6189.aspx#6189</link><pubDate>Tue, 20 Jan 2009 16:27:46 GMT</pubDate><guid isPermaLink="false">57a524bd-45b2-4594-a7ad-396871ad85fb:6189</guid><dc:creator>AlertPay_Phoun</dc:creator><description>&lt;p&gt;In the case of a subscription, you will receive two IPN post for the first payment of a subscription. In the case of a recurring subscription, you will receive one IPN post.&lt;br /&gt;&lt;br /&gt;The &amp;quot;ap_status&amp;quot; that you will receive when a user first subscribes will have a value of &amp;quot;Success&amp;quot;. Then you will also receive an &amp;quot;ap_status&amp;quot; with value &amp;quot;Subscription-Payment-Success&amp;quot;.&lt;br /&gt;&lt;br /&gt;Here are few suggestions to avoid getting &amp;quot;Access Denied&amp;quot; in the flow of your IF statement.&lt;br /&gt;&lt;br /&gt;You should check for &amp;quot;ap_purchasetype&amp;quot; to be &amp;quot;Subscription&amp;quot;, to make sure that the IPN data you are receiving is for a subscription and not for an item for example.&lt;br /&gt;&lt;br /&gt;You might want to handle the different &amp;quot;ap_status&amp;quot; that we are sending in case of a subscription&lt;br /&gt;ex: if (($ap_Status eq &amp;quot;Subscription-Payment-Success&amp;quot;)&lt;br /&gt;&lt;br /&gt;Please refer to page 49 of our integration guide for the other possible statuses.&lt;br /&gt;&lt;br /&gt;Since your code only checks for &amp;quot;Success&amp;quot; then it will go to &amp;quot;Access Denied&amp;quot; because the status is actually &amp;quot;Subscription-Payment-Success&amp;quot;.&lt;/p&gt;</description></item><item><title>IPN Not Working</title><link>http://dev.alertpay.com/forums/p/2996/6146.aspx#6146</link><pubDate>Fri, 16 Jan 2009 16:44:46 GMT</pubDate><guid isPermaLink="false">57a524bd-45b2-4594-a7ad-396871ad85fb:6146</guid><dc:creator>rkdallas</dc:creator><description>&lt;p&gt;Subscription-Payment-Success|xxxxxxxxxxxxxxxxx|HOAP Club Membership|1|20.00|USD|S-49943-0A35F-5AFD9|||&lt;br /&gt;Success|xxxxxxxxxxxxxxxxx|HOAP Club Membership|1|20.00|USD|S-49943-0A35F-5AFD9|||&lt;br /&gt;|||||||||&lt;/p&gt;
&lt;p&gt;When I test a purchase I get access denied in my program, which is what I should get &lt;/p&gt;
&lt;p&gt;if the ap_status or the ap_securitycode don&amp;#39;t match their $. However, when I print the IPN post&lt;br /&gt;to a file to see what I&amp;#39;m getting, it is returning two posts as you can see above. The xxx&amp;#39;s are the security code &lt;br /&gt;and they are the same on both lines.&lt;br /&gt;Am I supposed to be getting both posts?&lt;br /&gt;Could that be a reason my script is not accepting the codes, and denying access?&lt;/p&gt;
&lt;p&gt;Here is the section that is checking the variables:&lt;/p&gt;
&lt;p&gt;$ap_SecurityCode = $q-&amp;gt;param(&amp;#39;ap_securitycode&amp;#39;);&lt;br /&gt;$ap_Status = $q-&amp;gt;param(&amp;#39;ap_status&amp;#39;);&lt;br /&gt;$ap_ItemName = $q-&amp;gt;param(&amp;#39;ap_itemname&amp;#39;);&lt;br /&gt;$ap_Quantity = $q-&amp;gt;param(&amp;#39;ap_quantity&amp;#39;);&lt;br /&gt;$ap_Amount = $q-&amp;gt;param(&amp;#39;ap_amount&amp;#39;);&lt;br /&gt;$ap_Currency = $q-&amp;gt;param(&amp;#39;ap_currency&amp;#39;);&lt;br /&gt;$ap_SubscriptionReferenceNumber = $q-&amp;gt;param(&amp;#39;ap_subscriptionreferencenumber&amp;#39;);&lt;br /&gt;open (FILE, &amp;quot;&amp;gt;&amp;gt;$datapath/veppy.dat&amp;quot;);&lt;br /&gt;flock(FILE, 1);&lt;br /&gt;print FILE &amp;quot;$ap_Status|&amp;quot;;&lt;br /&gt;print FILE &amp;quot;$ap_SecurityCode|&amp;quot;;&lt;br /&gt;print FILE &amp;quot;$ap_ItemName|&amp;quot;;&lt;br /&gt;print FILE &amp;quot;$ap_Quantity|&amp;quot;;&lt;br /&gt;print FILE &amp;quot;$ap_Amount|&amp;quot;;&lt;br /&gt;print FILE &amp;quot;$ap_Currency|&amp;quot;;&lt;br /&gt;print FILE &amp;quot;$ap_SubscriptionReferenceNumber|&amp;quot;;&lt;br /&gt;print FILE &amp;quot;$time|&amp;quot;;&lt;br /&gt;print FILE &amp;quot;$julian|
&amp;quot;;&lt;br /&gt;flock(FILE, 8);&lt;br /&gt;close (FILE);&lt;br /&gt;if (($ap_Status eq &amp;quot;Success&amp;quot;)&amp;amp;&amp;amp;($ap_SecurityCode eq &amp;quot;xxxxxxxxxxxxxxxxxxx&amp;quot;)){&lt;br /&gt;$paidmembership = &amp;quot;1&amp;quot;;&lt;br /&gt;$user_status = &amp;quot;Paid Membership&amp;quot;;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;elsif (($ap_Status ne &amp;quot;Success&amp;quot;)&amp;amp;&amp;amp;($alowfree eq &amp;quot;1&amp;quot;)){&lt;br /&gt;$paidmembership = &amp;quot;0&amp;quot;;&lt;br /&gt;$amount = 0;&lt;br /&gt;$user_status = &amp;quot;Free Membership&amp;quot;;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;else {&lt;br /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;print $q-&amp;gt;header;&lt;br /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;print(&amp;quot;&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&amp;lt;h2&amp;gt;&amp;lt;center&amp;gt;Access Denied&amp;lt;/center&amp;gt;&amp;lt;/h2&amp;gt;&amp;quot;);&lt;br /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;exit;&lt;/p&gt;
&lt;p&gt;}&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Collect variables from Alertpay to cgi </title><link>http://dev.alertpay.com/forums/p/2969/6085.aspx#6085</link><pubDate>Wed, 07 Jan 2009 16:40:31 GMT</pubDate><guid isPermaLink="false">57a524bd-45b2-4594-a7ad-396871ad85fb:6085</guid><dc:creator>rkdallas</dc:creator><description>&lt;p&gt;&amp;nbsp;How do you capture the variables passed by Alertpay in a cgi format?&lt;/p&gt;
&lt;p&gt;Variables such as ap_status, ap_securitycode, and others.&lt;/p&gt;
&lt;p&gt;The cgi script I&amp;#39;m trying to get to work was set up to work with SFIpay IPN.&lt;/p&gt;
&lt;p&gt;I am trying to convert it to Alertpay.&lt;/p&gt;
&lt;p&gt;The admin, and members part of the script works fine. I can manually add a new member and that new member can sign in and access the member&amp;#39;s area.&lt;/p&gt;
&lt;p&gt;I can make a test transaction and the payment goes through Alertpay fine but when it returns to my site I get Access Denied. Which is what the script calls for if payment was not recorded by the script.&lt;/p&gt;
&lt;p&gt;It is not reading in the ap_status and the ap_securitycode.&lt;/p&gt;
&lt;p&gt;The alert return URL is to this script.&lt;/p&gt;
&lt;p&gt;How do I write the code to read in the Alertpay variables and then pass them to the script?&lt;/p&gt;
&lt;p&gt;My program is a monthly subscription.&lt;/p&gt;
&lt;p&gt;Thanks&lt;/p&gt;</description></item><item><title>Re: Empty POST data from AlertPay</title><link>http://dev.alertpay.com/forums/p/2773/6070.aspx#6070</link><pubDate>Sun, 04 Jan 2009 15:43:20 GMT</pubDate><guid isPermaLink="false">57a524bd-45b2-4594-a7ad-396871ad85fb:6070</guid><dc:creator>rkdallas</dc:creator><description>&lt;p&gt;Any examples for decoding in a PERL script?&lt;/p&gt;</description></item><item><title>Here is what I'm trying to get to work</title><link>http://dev.alertpay.com/forums/p/2960/6069.aspx#6069</link><pubDate>Sun, 04 Jan 2009 00:44:41 GMT</pubDate><guid isPermaLink="false">57a524bd-45b2-4594-a7ad-396871ad85fb:6069</guid><dc:creator>rkdallas</dc:creator><description>&lt;p&gt;&amp;nbsp;This is a Perl Script for a subscription.&lt;/p&gt;
&lt;p&gt;The script works as far as admin and members areas but I cannot get it to work with the IPN.&lt;/p&gt;
&lt;p&gt;It is not reading the ap_securitycode and giving me &lt;strong&gt;&lt;em&gt;access denied&lt;/em&gt;&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;This is how the ap_securitycode&amp;nbsp;variable is declared in the config script&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;$alertpaysecretword = &amp;quot;xxxxxxxxxxxxxxxx&amp;quot;;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (my actual code is where the xxxs are)&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;This is where it is checking for the ap_securitycode.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;if (($purchase_status eq &amp;quot;SUCCESS&amp;quot;)&amp;amp;&amp;amp;($alertpaysecretword eq &amp;quot;$ap_securitycode&amp;quot;)){&lt;br /&gt;$paidmembership = &amp;quot;1&amp;quot;;&lt;br /&gt;$user_status = &amp;quot;Paid Membership&amp;quot;;&lt;br /&gt;}&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;strong&gt;elsif (($purchase_status ne &amp;quot;SUCCESS&amp;quot;)&amp;amp;&amp;amp;($alowfree eq &amp;quot;1&amp;quot;)){&lt;br /&gt;$paidmembership = &amp;quot;0&amp;quot;;&lt;br /&gt;$amount = 0;&lt;br /&gt;$user_status = &amp;quot;Free Membership&amp;quot;;&lt;br /&gt;}&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;strong&gt;else {&lt;br /&gt;&amp;nbsp;print $q-&amp;gt;header;&lt;br /&gt;&amp;nbsp;print(&amp;quot;&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&amp;lt;h2&amp;gt;&amp;lt;center&amp;gt;Access Denied&amp;lt;/center&amp;gt;&amp;lt;/h2&amp;gt;&amp;quot;);&lt;br /&gt;&amp;nbsp;exit;&lt;br /&gt;}&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: sfipay script to alertpay script</title><link>http://dev.alertpay.com/forums/p/2959/6068.aspx#6068</link><pubDate>Sat, 03 Jan 2009 15:10:14 GMT</pubDate><guid isPermaLink="false">57a524bd-45b2-4594-a7ad-396871ad85fb:6068</guid><dc:creator>rkdallas</dc:creator><description>&lt;p&gt;&amp;nbsp;I ran the script through a cgi script checker and cgi monitor and it checks out fine.&lt;/p&gt;&lt;p&gt;It just seems to me, (Not A Programmer), that the cgi can&amp;#39;t read the ap_securitycode.&lt;/p&gt;&lt;p&gt;I read in another post that the ap_securitycode was going to be sent encrypted, and that your program would have to decrypt it.&lt;/p&gt;&lt;p&gt;Is it possible that is the problem?&lt;/p&gt;&lt;p&gt;If so, do you know a perl script for decrypting. &lt;br /&gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Encrypted key or security code? - IPN</title><link>http://dev.alertpay.com/forums/p/2734/5524.aspx#5524</link><pubDate>Sun, 09 Nov 2008 18:48:22 GMT</pubDate><guid isPermaLink="false">57a524bd-45b2-4594-a7ad-396871ad85fb:5524</guid><dc:creator>Shadows</dc:creator><description>&lt;p&gt;&amp;nbsp;Hey guys,&lt;/p&gt;&lt;p&gt;when you setup your IPN, you put like something totally random in the security code, and put your url.&lt;br /&gt;Then you have to put a key in your script, is it the encrypted key or the unencrypted key you&amp;#39;ve put in the security code box?&lt;/p&gt;&lt;p&gt;&amp;nbsp;Thank you,&lt;/p&gt;&lt;p&gt;- Shadows. &lt;br /&gt;&lt;/p&gt;</description></item><item><title>Re: Alertpay Remote login (PHP &amp;amp; CURL) Help</title><link>http://dev.alertpay.com/forums/p/2393/5090.aspx#5090</link><pubDate>Wed, 01 Oct 2008 00:25:18 GMT</pubDate><guid isPermaLink="false">57a524bd-45b2-4594-a7ad-396871ad85fb:5090</guid><dc:creator>evercool</dc:creator><description>&lt;p&gt;[quote user=&amp;quot;scottklarr&amp;quot;]&lt;/p&gt;&lt;p&gt;&amp;nbsp;I handled the cookies directly via parsing headers without using the curl&amp;#39;s build in cookie functions that require saving to files :) &lt;/p&gt;[/quote]&lt;br /&gt;&lt;br /&gt;I&amp;#39;m referring to the part you cron tab your masspay probably xml/txt file &amp;lt;^^&amp;gt; Or you cron query mysql too ?&lt;br /&gt;</description></item><item><title>Re: Alertpay Remote login (PHP &amp;amp; CURL) Help</title><link>http://dev.alertpay.com/forums/p/2393/5086.aspx#5086</link><pubDate>Tue, 30 Sep 2008 22:16:02 GMT</pubDate><guid isPermaLink="false">57a524bd-45b2-4594-a7ad-396871ad85fb:5086</guid><dc:creator>evercool</dc:creator><description>&lt;p&gt;&amp;nbsp;Mine is php / myslq / curl based runs at presistent connection to AlertPay with buffer of payments pending and time until next payment. If you set buffer to 1 and pending payments to 0 the result is in-time payments :) You can use it as ordinary payment method also. And combine 2 sessions :D&lt;/p&gt;&lt;p&gt;Just an advice ... By the way php/curl/mysql is safer than pure curl. Pure curl needs direct access to a file that is chmod to 777. Guess what will happens when i find that file ;) &lt;/p&gt;&lt;p&gt;Anyway good job! If anyone needs help setting up curl/php/mysql let me know. And NO ... I am NOT selling my class, but I will help you with your own. &lt;br /&gt;&lt;/p&gt;</description></item></channel></rss>