PriMoThemes — now s2Member® (official notice)

This is now a very OLD forum system. It's in READ-ONLY mode.
All community interaction now occurs at WP Sharks™. See: new forums @ WP Sharks™

Shortcode Trial Fail + Incorrect Results

s2Member Plugin. A Membership plugin for WordPress®.

Shortcode Trial Fail + Incorrect Results

Postby fearghalmurphy » July 25th, 2011, 9:56 am

Hi,

I have an Paypal Pro account and s2member setup which I'm getting erroneous results. I have a
1 year account with which I want to offer a 7 day free trail before the customer is charged.
I ran a Paypal sandbox test below with the following shortcode implemented but it charged straight away

Can anyone help understand why? and what I need to do to fix it?

Coed used:

ta="0" tp="7" tt="D" ra="100.00" rp="1" rt="Y" rr="1"
User avatar
fearghalmurphy
Registered User
Registered User
 
Posts: 8
Joined: July 25, 2011

Re: Shortcode Trial Fail + Incorrect Results

Postby fearghalmurphy » July 25th, 2011, 2:58 pm

No ideas on this anyone? :(
User avatar
fearghalmurphy
Registered User
Registered User
 
Posts: 8
Joined: July 25, 2011

Re: Shortcode Trial Fail + Incorrect Results

Postby Cristián Lávaque » July 26th, 2011, 2:49 am

That's odd.

If you have logging enabled WP Admin -> s2Member -> PayPal Options -> Account Details -> Enable Logging Routines, s2Member will log things and you'll find them here /wp-content/plugins/s2member-logs/ with your FTP client.

Please post the entries related to your problem, x'ing out any private information.
Cristián Lávaque http://s2member.net
Is s2Member working for you? Please rate it Image at WordPress.org. Thanks! :)
User avatar
Cristián Lávaque
Developer
Developer
 
Posts: 6836
Joined: December 22, 2010

Re: Shortcode Trial Fail + Incorrect Results

Postby fearghalmurphy » July 26th, 2011, 8:17 am

Hi guys,

Here is the logs....

I just see none of the Trial data come across into Paypal like 'ta', 'tp' etc...

Does the log info below help? Thanks guys!

-------- Input vars: ( Tue Jul 26, 2011 1:12:12 pm UTC ) --------
array (
'METHOD' => 'DoDirectPayment',
'PAYMENTACTION' => 'Sale',
'EMAIL' => 'me@XXXXXXX.com',
'FIRSTNAME' => 'Fearghal',
'LASTNAME' => 'Murphy',
'IPADDRESS' => '70.89.99.170',
'DESC' => 'Longterm, Annual',
'CUSTOM' => 'staging.XXXXXXX.com|longterm',
'CURRENCYCODE' => 'USD',
'ITEMAMT' => '100.00',
'TAXAMT' => '0.00',
'AMT' => '100.00',
'L_NAME0' => 'Longterm, Annual',
'L_NUMBER0' => '1',
'L_AMT0' => '100.00',
'CREDITCARDTYPE' => 'Visa',
'ACCT' => '************8625',
'EXPDATE' => '072016',
'CVV2' => '111',
'STREET' => 'XXXXXX XXXXXX DRIVE',
'CITY' => 'Palm Beach Gardens',
'STATE' => 'FL',
'COUNTRYCODE' => 'US',
'ZIP' => '33410',
'VERSION' => '63.0',
'USER' => 'XXXXX_1310236543_biz_api1.csnmedia.com',
'PWD' => 'XXXXX',
'SIGNATURE' => 'AFcWxV21C7fd0v3bYYYRCpSSRl31AD8w93s0VMlcv-l7AzR1TqlFO-RZ',
)
-------- Output string/vars: ( Tue Jul 26, 2011 1:12:19 pm UTC ) --------
TIMESTAMP=2011%2d07%2d26T13%3a12%3a19Z&CORRELATIONID=958349457b894&ACK=Success&VERSION=63%2e0&BUILD=1959105&AMT=100%2e00&CURRENCYCODE=USD&AVSCODE=X&CVV2MATCH=M&TRANSACTIONID=6R7871963X3675321
array (
'TIMESTAMP' => '2011-07-26T13:12:19Z',
'CORRELATIONID' => '958349457b894',
'ACK' => 'Success',
'VERSION' => '63.0',
'BUILD' => '1959105',
'AMT' => '100.00',
'CURRENCYCODE' => 'USD',
'AVSCODE' => 'X',
'CVV2MATCH' => 'M',
'TRANSACTIONID' => '6R787XXX1963XXXX3675321',
)
User avatar
fearghalmurphy
Registered User
Registered User
 
Posts: 8
Joined: July 25, 2011

Re: Shortcode Trial Fail + Incorrect Results

Postby fearghalmurphy » July 26th, 2011, 8:38 am

Just so you can see what I see in PP:

2011-07-26_0937.png
2011-07-26_0937.png (66.9 KiB) Viewed 203 times
User avatar
fearghalmurphy
Registered User
Registered User
 
Posts: 8
Joined: July 25, 2011

Re: Shortcode Trial Fail + Incorrect Results

Postby fearghalmurphy » July 26th, 2011, 8:57 am

Also guys,
I looked in the paypal IPN logs and it seems to confirm the trial payment and term data is not coming across

-------------------------------------

User-Agent: WordPress/3.1; https://staging.XXXXXXX.com
array (
'txn_type' => 'subscr_signup',
'subscr_id' => 'I-8GE2LJN4LENV',
'custom' => 'staging.XXXXXXX.com|longterm',
'txn_id' => 'I-8GE2LJN4LENV',
'period1' => '0 D',
'period3' => '1 M',
'mc_amount1' => '0.00',
'mc_amount3' => '10.00',
'mc_gross' => '10.00',
'mc_currency' => 'USD',
'tax' => '0.00',
'recurring' => '10.00',
'payer_email' => 'me5@XXXXXXX.com',
'first_name' => 'Fearghal',
'last_name' => 'Murphy',
'item_name' => 'Longterm, Monthly',
'item_number' => '1',
'proxy_verified' => 'paypal',
's2member_log' =>
array (
0 => 'IPN received on: Tue Jul 26, 2011 1:24:22 pm UTC',
1 => 's2Member POST vars verified through a POST back to PayPal®.',
2 => 's2Member originating domain ( _SERVER[HTTP_HOST] ) validated.',
3 => 's2Member txn_type identified as (web_accept|subscr_signup).',
4 => 's2Member txn_type identified as (web_accept|subscr_signup) w/o update vars.',
5 => 'Signup Confirmation Email sent to: "Fearghal Murphy" <me5@XXXXXXX.com>.',
6 => 'Subscr. Return ( modification=0 ), a Proxy Return URL is ready.',
7 => 'Storing IPN signup vars now. These are associated with a User\'s account record; for future reference.',
),
'subscr_gateway' => 'paypal',
'eotper' => NULL,
'ccaps' => NULL,
'level' => '1',
'initial_term' => '0 D',
'initial' => '10.00',

'regular' => '10.00',
'regular_term' => '1 M',
's2member_paypal_proxy_return_url' => '/create-an-XXXXXXX/XXXXXXX-info/?user=450',
's2member_paypal_proxy' => 'paypal',
's2member_paypal_proxy_use' => 'pro-emails',
's2member_paypal_proxy_verification' => '6963a851c2baebb31a35ed547d7133aa',
)

----------------------------

Does this shed any light on the problem? I appreciate the help guys. I'm
in dire need of fixing this...
User avatar
fearghalmurphy
Registered User
Registered User
 
Posts: 8
Joined: July 25, 2011

Re: Shortcode Trial Fail + Incorrect Results

Postby fearghalmurphy » July 26th, 2011, 2:39 pm

Ok, I think I'm finally getting some good results....

Now heres a question... If I create a Recurring Profile (1 year annual charge) with a 1 month free trial at the start? Does that mean the following year's annual charge is moved forward 1 month?

For example. I create an account on 1 July 2011 (free month) and my CC is charged on 1 August 2011. Does the next years CC charge fire on 1 July 2012 or 1 August 2012 ??

Thank you again!!
User avatar
fearghalmurphy
Registered User
Registered User
 
Posts: 8
Joined: July 25, 2011

Re: Shortcode Trial Fail + Incorrect Results

Postby Cristián Lávaque » July 27th, 2011, 1:47 am

1 August 2012, which is a year after the 1 year payment happened.

Did you sort out what was preventing the trial from happening?
Cristián Lávaque http://s2member.net
Is s2Member working for you? Please rate it Image at WordPress.org. Thanks! :)
User avatar
Cristián Lávaque
Developer
Developer
 
Posts: 6836
Joined: December 22, 2010


Return to s2Member Plugin

Who is online

Users browsing this forum: Google [Bot], Yahoo [Bot] and 0 guests

cron