Community Support Forums — WordPress® ( Users Helping Users ) — 2012-02-06T14:07:23-05:00 http://www.primothemes.com/forums/feed.php?f=4&t=17020 2012-02-06T14:07:23-05:00 http://www.primothemes.com/forums/viewtopic.php?t=17020&p=62325#p62325 <![CDATA[Re: Custom Paypal Button - Unexpected txn_type/status' error]]> Thanks for the heads up on this thread.

It sounds like you are trying to custom code some things to make this work in a specific way. You might take a look at this method provided by s2Member, which is documented here: http://www.s2member.com/codex/stable/s2 ... _link_gen()

For example... you might create a script that generates access links to Specific Posts/Pages in clever ways, and then integrate it into the larger picture that you're trying to customize.
Code:
<?php
$post_id 
= 3;
$access_link = c_ws_plugin__s2member_sp_access::sp_access_link_gen($post_id);
wp_redirect($access_link); exit();
?>

Statistics: Posted by Jason Caldwell — February 6th, 2012, 2:07 pm


]]>
2012-01-31T02:59:20-05:00 http://www.primothemes.com/forums/viewtopic.php?t=17020&p=61983#p61983 <![CDATA[Re: Custom Paypal Button - Unexpected txn_type/status' error]]>

Statistics: Posted by Cristián Lávaque — January 31st, 2012, 2:59 am


]]>
2012-01-31T00:39:54-05:00 http://www.primothemes.com/forums/viewtopic.php?t=17020&p=61971#p61971 <![CDATA[Re: Custom Paypal Button - Unexpected txn_type/status' error]]> Thanks for the suggestion - the issue with rrt is that it suggests it is only for "membership" type transactions, and I am trying for a "outside of the box" post/page access link type transaction. :(

I tried it anyway, and sadly it doesn't work :(
I am most interested to hear and try another idea though :)

C

Statistics: Posted by cclambie — January 31st, 2012, 12:39 am


]]>
2012-01-30T22:13:56-05:00 http://www.primothemes.com/forums/viewtopic.php?t=17020&p=61954#p61954 <![CDATA[Re: Custom Paypal Button - Unexpected txn_type/status' error]]> rrt attribute. WP Admin -> s2Member -> PayPal Buttons -> Shortcode Attributes -> rrt

About the txn_type problem, I don't know. I'll ask Jason. But if the rrt attribute works for you, then use the shortcode and that may solve your problem.

Statistics: Posted by Cristián Lávaque — January 30th, 2012, 10:13 pm


]]>
2012-01-27T01:06:53-05:00 http://www.primothemes.com/forums/viewtopic.php?t=17020&p=61740#p61740 <![CDATA[Re: Custom Paypal Button - Unexpected txn_type/status' error]]> However I have tried a lot of what it says already.....

When I follow those instructions I still get the "Unexpected txt_type_status" error coming up....
Image
Button Code after following instructions:
Code:
<form action="https://www.paypal.com/cgi-bin/webscr" method="post">
<input type="hidden" name="cmd" value="_xclick-subscriptions">
<input type="hidden" name="business" value="6L5F6X24N568C">
<input type="hidden" name="lc" value="AU">
<input type="hidden" name="item_name" value="One True Secret a week">
<input type="hidden" name="item_number" value="sp:1259:168">
<input type="hidden" name="no_note" value="1">
<input type="hidden" name="no_shipping" value="1">
<input type="hidden" name="return" value="http://www.truesecrets.com.au/strange-tours-melbourne/?s2member_paypal_return=1">
<input type="hidden" name="cancel_return" value="http://www.truesecrets.com.au/strange-tours-melbourne/">
<input type="hidden" name="src" value="1">
<input type="hidden" name="a3" value="8.00">
<input type="hidden" name="p3" value="1">
<input type="hidden" name="t3" value="W">
<input type="hidden" name="currency_code" value="AUD">
<input type="hidden" name="srt" value="7">
<input type="hidden" name="bn" value="PP-SubscriptionsBF:btn_subscribeCC_LG.gif:NonHosted">
<input type="hidden" name="custom" value="www.truesecrets.com.au/strange-tours-melbourne/">
<input type="hidden" name="notify_url" value="http://www.truesecrets.com.au/strange-tours-melbourne/?s2member_paypal_return=1">
<input type="hidden" name="rm" value="2">
<input type="image" src="https://www.paypalobjects.com/en_AU/i/btn/btn_subscribeCC_LG.gif" border="0" name="submit" alt="PayPal — The safer, easier way to pay online.">
<img alt="" border="0" src="https://www.paypalobjects.com/en_AU/i/scr/pixel.gif" width="1" height="1">
</form>


You will note the 4 important fields are all there and correct: item_number, custom, notify_url, rm

Thoughts?

Statistics: Posted by cclambie — January 27th, 2012, 1:06 am


]]>
2012-01-26T23:09:06-05:00 http://www.primothemes.com/forums/viewtopic.php?t=17020&p=61734#p61734 <![CDATA[Re: Custom Paypal Button - Unexpected txn_type/status' error]]> viewtopic.php?f=36&t=309&#p1333

Statistics: Posted by Raam Dev — January 26th, 2012, 11:09 pm


]]>
2012-01-26T22:57:21-05:00 http://www.primothemes.com/forums/viewtopic.php?t=17020&p=61730#p61730 <![CDATA[Re: Custom Paypal Button - Unexpected txn_type/status' error]]>
What I am trying to do is have the button send back and IPN responce to s2Member with a success and s2M then sends out that first email and access, just like you pressed a "normal" Paypal s2M button.

Here is my Paypal Subscribe button code, which can be found here
Code:
<form action="https://www.paypal.com/cgi-bin/webscr" method="post">
            <input type="hidden" name="cmd" value="_s-xclick">
            <input type="hidden" name="hosted_button_id" value="L22LXBTDCGWGG">
            <input type="image" src="https://www.paypalobjects.com/en_AU/i/btn/btn_subscribeCC_LG.gif" border="0" name="submit" alt="PayPal — The safer, easier way to pay online.">
            <img alt="" border="0" src="https://www.paypalobjects.com/en_AU/i/scr/pixel.gif" width="1" height="1">
            </form>

Statistics: Posted by cclambie — January 26th, 2012, 10:57 pm


]]>
2012-01-26T22:40:46-05:00 http://www.primothemes.com/forums/viewtopic.php?t=17020&p=61720#p61720 <![CDATA[Re: Custom Paypal Button - Unexpected txn_type/status' error]]>
The only trouble I see with what you explained above is that s2Member cannot automatically end a recurring subscription after a specific amount of time. So you can create a signup button for a $7/week subscription, but you can't tell the button that the membership should only recur for 7 weeks and then end.

On the s2Member side, once the user has subscribed, you can go into their account and type "+7 weeks" into the Automatic EOT Time field on the users profile to force the account to expire after 7 weeks. However, PayPal will continue charging the customer until you (or they) manually cancel the subscription.

As far as I know, this is a limitation on PayPal's end: I don't believe you can create a weekly subscription that recurs 7 times and then ends.

Statistics: Posted by Raam Dev — January 26th, 2012, 10:40 pm


]]>
2012-01-26T18:17:16-05:00 http://www.primothemes.com/forums/viewtopic.php?t=17020&p=61692#p61692 <![CDATA[Re: Custom Paypal Button - Unexpected txn_type/status' error]]> Thanks for the reply.

So what I am trying to achieve is this:
1 x Paypal subscription setup that will debit $8 from the subscriber for 7 weeks.
Each week I need to send them a special access link to a particular 2 pages that are protected with s2Member for a limit of 7 days access.

So what I am hoping to achieve would look like this:
Week 1
User: Subscribes to Paypal for 7 Weeks at $8 a week, receives access link to 2 pages (7 day pass to pages)
s2Member: Accepts Paypal payment, sends 2 page link, as though a simple button was pressed
Manual: Do nothing

Week 2 - 7
User: Receives email access link to 2 pages (different each week, 7 day pass)
s2Member: Nothing Automatic (Unless you can think of a way)
Manual: Use s2Member to generate access link to 2 pages and send email to user

I am happy to manually create the links initially, I can write something to auto generate the links and send the emails later once it is off and working and the requests for the process warrant automation.

Statistics: Posted by cclambie — January 26th, 2012, 6:17 pm


]]>
2012-01-26T12:29:30-05:00 http://www.primothemes.com/forums/viewtopic.php?t=17020&p=61637#p61637 <![CDATA[Re: Custom Paypal Button - Unexpected txn_type/status' error]]>
When you say 7-week subscription to PayPal, does the person simply pay once and then receive 7 emails? You could use the WP Admin -> s2Member -> PayPal Buttons -> Specific Post/Page Access Links to generate 7 different links to 7 different pages and then use each of those links in an email followup series with AWeber or MailChimp (the person could be automatically subscribed to the list after making the payment).

Statistics: Posted by Raam Dev — January 26th, 2012, 12:29 pm


]]>
2012-01-25T07:06:05-05:00 http://www.primothemes.com/forums/viewtopic.php?t=17020&p=61526#p61526 <![CDATA[Custom Paypal Button - Unexpected txn_type/status' error]]>
So I have a unusual request I think.
I want to setup a 7 week subscription via Paypal and have created a custom button to do so.

I need s2Member to send back access to a Custom Post/Page like it would with a "standard" button/ IPN return from Paypal, so I am trying to make it accept the IPN reply from Paypal with associated information.

I have tried a couple of things, and I keep getting this error "Unexpected txn_type/status' error upon IPN request"

I think it might be the line <input type="hidden" name="cmd" value="_s-xclick"> (Also * in code below)
but if I remove this and make it "<input type="hidden" name="cmd" value="_xclick">" it doesn't ask the person to subscribe, so therefore doesn't work.

Any thoughts? I need the action of a standard button with a subscription (I will be manually sending letters out each week with manually created access codes after the first week)

Or maybe another idea on how best to manage 7 emails with 7 access links to 7 pages, each for 1 week, over 7 weeks.

Thanks
C

Code:
<form action="https://www.paypal.com/cgi-bin/webscr" method="post">
<input type="hidden" name="cmd" value="_s-xclick"> **
<input type="hidden" name="hosted_button_id" value="L22LXBTDCGWGG">
<input type="hidden" name="business" value="info@truesecrets.com.au" />
<!-- Instant Payment Notification & Return Page Details -->
<input type="hidden" name="rm" value="2" />
<!-- Configures Basic Checkout Fields -->
<input type="hidden" name="lc" value="" />
<input type="hidden" name="no_shipping" value="1" />
<input type="hidden" name="no_note" value="1" />
<input type="hidden" name="custom" value="www.truesecrets.com.au" />
<input type="hidden" name="currency_code" value="AUD" />
<input type="hidden" name="page_style" value="paypal" />
<input type="hidden" name="charset" value="utf-8" />
<input type="hidden" name="item_name" value="One a True Secret a Week" />
<input type="hidden" name="item_number" value="sp:1259:168" />
<input type="hidden" name="amount" value="8" />
<!-- Configures s2Member's Unique Invoice ID/Code  -->
<input type="hidden" name="invoice" value="<?php echo S2MEMBER_VALUE_FOR_PP_INV(); ?>" />
<!-- Associates Purchase With A User/Member ( when/if applicable ) -->
<input type="hidden" name="on0" value="<?php echo S2MEMBER_CURRENT_USER_VALUE_FOR_PP_ON0; ?>" />
<input type="hidden" name="os0" value="<?php echo S2MEMBER_CURRENT_USER_VALUE_FOR_PP_OS0; ?>" />
<!-- Identifies The Customer's IP Address For Tracking -->
<input type="hidden" name="on1" value="<?php echo S2MEMBER_CURRENT_USER_VALUE_FOR_PP_ON1; ?>" />
<input type="hidden" name="os1" value="<?php echo S2MEMBER_CURRENT_USER_VALUE_FOR_PP_OS1; ?>" />
<!-- Displays The PayPal® Image Button -->
<input type="image" src="https://www.paypalobjects.com/en_AU/i/btn/btn_subscribeCC_LG.gif" border="0" name="submit" alt="PayPal — The safer, easier way to pay online.">
<img alt="" border="0" src="https://www.paypalobjects.com/en_AU/i/scr/pixel.gif" width="1" height="1">
</form>

Statistics: Posted by cclambie — January 25th, 2012, 7:06 am


]]>