<?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 'WebSite Integration'</title><link>http://dev.alertpay.com/search/SearchResults.aspx?o=DateDescending&amp;tag=WebSite+Integration&amp;orTags=0</link><description>Search results matching tag 'WebSite Integration'</description><dc:language>en-US</dc:language><generator>CommunityServer 2007.1 SP2 (Build: 31113.47)</generator><item><title>Multiple items in subscription payment</title><link>http://dev.alertpay.com/forums/p/3126/6529.aspx#6529</link><pubDate>Sun, 15 Feb 2009 00:15:38 GMT</pubDate><guid isPermaLink="false">57a524bd-45b2-4594-a7ad-396871ad85fb:6529</guid><dc:creator>nyhahany</dc:creator><description>&lt;p&gt;Is it possible to setup multiple items in the subscription payment?&lt;/p&gt;
&lt;p&gt;example:&lt;/p&gt;
&lt;p&gt;&lt;b&gt;item 1:&lt;/b&gt; amount $29 subscription yearly&lt;/p&gt;
&lt;p&gt;&lt;b&gt;item 2:&lt;/b&gt; amount $5 subscription monthly&lt;/p&gt;
&lt;p&gt;&lt;b&gt;item 3:&lt;/b&gt; amount $10 subscription each 6 months&lt;/p&gt;
&lt;p&gt;etc&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&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>Not a valid alertpay email format</title><link>http://dev.alertpay.com/forums/p/2972/6092.aspx#6092</link><pubDate>Fri, 09 Jan 2009 15:43:08 GMT</pubDate><guid isPermaLink="false">57a524bd-45b2-4594-a7ad-396871ad85fb:6092</guid><dc:creator>rkdallas</dc:creator><description>&lt;p&gt;Script is in PERL&lt;/p&gt;
&lt;p&gt;&amp;nbsp;I finally have the IPN postback working but then the customer is brought to&lt;/p&gt;
&lt;p&gt;a sign up form to gain access to members area. This is what I get when I hit submit.(Not a valid alertpay email format).&lt;/p&gt;
&lt;p&gt;Here is the section the error comes from:&lt;/p&gt;
&lt;p&gt;if ($alertpay =~ /^[\w\-\.]+\@[\w\-]+\.[\w\-\.]+\w$/) {}&lt;br /&gt;&amp;nbsp;else {&lt;br /&gt;&amp;nbsp;&amp;nbsp;print $q-&amp;gt;header;&lt;br /&gt;&amp;nbsp;&amp;nbsp;print(&amp;quot;Not a valid alertpay email format!&amp;quot;);&lt;br /&gt;&amp;nbsp;&amp;nbsp;exit;&lt;br /&gt;&amp;nbsp;&amp;nbsp;}&lt;/p&gt;
&lt;p&gt;Any ideas would be appreciated.&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>sfipay script to alertpay script</title><link>http://dev.alertpay.com/forums/p/2959/6059.aspx#6059</link><pubDate>Fri, 02 Jan 2009 20:32:11 GMT</pubDate><guid isPermaLink="false">57a524bd-45b2-4594-a7ad-396871ad85fb:6059</guid><dc:creator>rkdallas</dc:creator><description>&lt;p&gt;I have a PERL script that is written to work with sfipay and would like to get it to work with alertpay.&lt;/p&gt;
&lt;p&gt;I have the script working as far as admin and member sections but getting it to work with alertpay ipn is not going so well.&lt;/p&gt;
&lt;p&gt;When&amp;nbsp;I run a purchase in test mode the script is not accepting what alertpay is sending.&lt;/p&gt;
&lt;p&gt;I have it looking for ap_SecurityCode and have my code set in the config file.&lt;/p&gt;
&lt;p&gt;If the script does not get what it&amp;#39;s looking for it simply displays Access Denied. Which is what I&amp;#39;m getting everytime.&lt;/p&gt;
&lt;p&gt;Is the ap_SecurityCode sent in test mode or only in live mode?&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: Automatic payment on request</title><link>http://dev.alertpay.com/forums/p/519/5235.aspx#5235</link><pubDate>Thu, 16 Oct 2008 09:52:36 GMT</pubDate><guid isPermaLink="false">57a524bd-45b2-4594-a7ad-396871ad85fb:5235</guid><dc:creator>brunomac</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;&lt;p&gt;well, each time a payment is made, &lt;u&gt;send money&lt;/u&gt; and &lt;u&gt;mass pay&lt;/u&gt;, through API or manually, IPN notify with Customer Values and Masspay Values to AlertURL.&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Here is a suggestion about those values; &lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;b&gt;&lt;u&gt;Customer Values&lt;/u&gt;&lt;/b&gt; - could maintain the same info&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&lt;u&gt;&lt;b&gt;Purchace Values&lt;/b&gt;&lt;/u&gt; - should include all fees that were paid in the transaction, &lt;/p&gt;&lt;blockquote&gt;&lt;p&gt;&lt;u&gt;ap_&lt;/u&gt;&lt;u&gt;total&lt;/u&gt;&lt;u&gt;feeamount&lt;/u&gt;, &lt;/p&gt;&lt;p&gt;&lt;u&gt;ap_totalgrossamount&lt;/u&gt; &lt;/p&gt;&lt;p&gt;&lt;u&gt;ap_totalnetamount&lt;br /&gt;&lt;/u&gt;&lt;/p&gt;&lt;/blockquote&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&lt;b&gt;&lt;u&gt;Masspay Values&lt;/u&gt;&lt;/b&gt; - In my opinion you should include in IPN the payment values for each one of the receivers and a global one&lt;br /&gt;&lt;/p&gt;&lt;blockquote&gt;&lt;p&gt;&lt;u&gt;ap_status&lt;/u&gt;, (status of the overall mass pay request, Complete, Denied or Processed)&lt;br /&gt;&lt;/p&gt;&lt;/blockquote&gt;&lt;blockquote&gt;&lt;p&gt;&lt;u&gt;ap_receiveremail_X&lt;/u&gt;,
&lt;/p&gt;&lt;p&gt;&lt;u&gt;ap_status_X&lt;/u&gt;, (Completed, Pending, Failed, Unclaimed or Reversed)&lt;/p&gt;
&lt;p&gt;&lt;u&gt;ap_paymentgross_X&lt;/u&gt;,&lt;/p&gt;&lt;p&gt;&lt;u&gt;ap_paymentnet_X&lt;/u&gt;,&lt;/p&gt;&lt;p&gt;&lt;u&gt;ap_paymentfee_X&lt;/u&gt;,&lt;/p&gt;&lt;p&gt;&lt;u&gt;ap_referencenumber_X&lt;/u&gt;, (this should be a unique traceable transaction ID, good for AP and for the seller to trace the payment) &lt;br /&gt;&lt;/p&gt;&lt;/blockquote&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;And for it to be perfect --- all of this could be request remotely through an API encrypted with private and public keys.&lt;/p&gt;</description></item></channel></rss>