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™

Integration using IPN with Proxy Key

s2Member Plugin. A Membership plugin for WordPress®.

Integration using IPN with Proxy Key

Postby Michelle » December 19th, 2011, 4:58 pm

HI!! I’ve spent hours reading through the forum and testing, but I still can’t get this to work. I would love to be able to pay a developer to do this for me, but I just can’t afford it at the moment – once I get this all set up and selling my products, then I will be able to, of course!!! I’m sure this is relatively straightforward to setup, but I just seem to be misunderstanding something.

So, I have ejunkie setup for all my products, and that is testing perfectly.

I have one product that I want to use s2Member for – to provide secure, time limited access to ecourse materials including videos, pdfs and word docs.

For this product I have set it up in ejunkie to send transaction data to a URL and to redirect after the purchase is completed.

The redirect sends the buyer to the login page at http://example.com/?s2member_paypal_return=1

The Payment Variable Information URL is the info copied from s2Member -> PayPal Options -> IPN with Proxy Key with item number added for membership level 1 :
http://example.com/?s2member_paypal_notify=1&s2member_paypal_proxy=[proxy-gateway]&s2member_paypal_proxy_verification=74ed62d8b30b7f19811595bc9cf8f48e&item_number=1

When I test the purchase (with a 0.01 price) I go through the ejunkie process to the Paypal checkout and am then redirected to a plain grey page with:
“Thank you! ( you MUST check your email before proceeding ). * Note: It can take ( up to 15 minutes ) for Email Confirmation with important details. If you don't receive email confirmation in the next 15 minutes, please contact Support. “

But, I don’t receive an email with login details.

When I review the logs in s2Member I get:
Paypal-ipn-log:
Code: Select all
PHP v5.2.17 :: WordPress® v3.2.1 :: s2Member® v111105
Memory 14.37 MB :: Real Memory 14.50 MB :: Peak Memory 14.40 MB :: Real Peak Memory 14.50 MB
example.com/testwp/?s2member_paypal_notify=1&s2member_paypal_proxy=[proxy-gateway]&s2member_paypal_proxy_verification=74ed62d8b30b7f19811595bc9cf8f48e&item_number=1
User-Agent:
array (
  'item_number' => '1033842'
  'Shipping_calculation_mode' => 'FlatRate'
  'mc_gross' => '0.01'
  'invoice' => '41exdo8lyvy4tc4kope14ic8owkkk4wsoscw0ks'
  'protection_eligibility' => 'Ineligible'
  'item_number1' => '1033842'
  'payer_id' => 'GFDTBKQHG3FZL'
  'tax' => '0.00'
  'payment_date' => '13:29:41 Dec 19
  'payment_status' => 'Completed'
  'charset' => 'utf-8'
  'shipping_option_name' => 'Selected'
  'mc_shipping' => '0.00'
  'mc_handling' => '0.00'
  'first_name' => 'Michelle'
  'mc_fee' => '0.01'
  'notify_version' => '3.4'
  'insurance_option_selected' => '0'
  'custom' => ''
  'payer_status' => 'verified'
  'business' => 'email@example.com'
  'shipping_option_amount' => '0.00'
  'num_cart_items' => '1'
  'mc_handling1' => '0.00'
  'verify_sign' => 'Aqy9LmkL6yF3aba.PuD5tQDCxvmeAGxWtLgJT4BdVTLl2j-WF7zrgrqw'
  'payer_email' => 'email@example.com'
  'mc_shipping1' => '0.00'
  'txn_id' => '8B842209LM1743222'
  'payment_type' => 'instant'
  'last_name' => 'M'
  'item_name1' => 'Test Product for s2Member integration'
  'receiver_email' => 'email@example.com'
  'payment_fee' => '0.01'
  'quantity1' => '1'
  'insurance_amount' => '0.00'
  'receiver_id' => 'B7AUK5CLYDHZ8'
  'txn_type' => 'cart'
  'mc_gross_1' => '0.01'
  'mc_currency' => 'USD'
  'residence_country' => 'NZ'
  'transaction_subject' => '[%eci30685662|7efb301e10eci%]'
  'payment_gross' => '0.01'
  'shipping_is_default' => '1'
  'ipn_track_id' => 'ktvjtC2rpz9UGV4gJiV1IQ'
  'item_name' => 'Test Product for s2Member integration'
  'quantity' => '1'
  'option_name1' => ''
  'option_selection1' => ''
  'option_name2' => ''
  'option_selection2' => ''
  'option_name3' => ''
  'option_selection3' => ''
  'charset_original' => 'windows-1252'
  'charset_converted' => 'true'
  'buyer_ip' => '60.234.250.177'
  'handshake' => 'b6e9600c9a0ef8145b46fd3a6fe78b5e'
  'discount_codes' => ''
  'from_name' => 'Example Business’
  'from_email' => 'email@example.com'
  'mailing_list_status' => 'true'
  'client_shipping_method_id' => '0'
  'item_cart_position' => '1'
  'sku' => ''
  'expiry_hours' => '0'
  'max_downloads' => '5'
  'ej_txn_id' => '11749982'
  'proxy_verified' => '[proxy-gateway]'
  's2member_log' =>
  array (
    0 => 'IPN received on: Mon Dec 19
    1 => 's2Member POST vars verified with a Proxy Key'
    2 => 'Unable to verify `$_SERVER["HTTP_HOST"]`. Please check the `custom` value in your Button Code. It MUST start with your domain name.'
  )
  'subscr_gateway' => '[proxy-gateway]'
  's2member_paypal_proxy' => '[proxy-gateway]'
  's2member_paypal_proxy_verification' => '74ed62d8b30b7f19811595bc9cf8f48e'
)


And from Paypal-rtn-log:

Code: Select all
PHP v5.2.17 :: WordPress® v3.2.1 :: s2Member® v111105
Memory 12.27 MB :: Real Memory 12.50 MB :: Peak Memory 12.36 MB :: Real Peak Memory 12.50 MB
example.com/?s2member_paypal_return=1&txn_id=8B842209LM1743222&item_number=1033842&payer_email=email%40example.com&first_name=Michelle&last_name=Millichip&quantity=1&currency=USD&payment_status=Completed&gross=0.01&hash=8e97c6d7704a341c8534cfa985b412eb
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/535.7 (KHTML
array (
  'subscr_gateway' => 'paypal'
  's2member_log' =>
  array (
    0 => 'No Return-Data. Customer must wait for Email Confirmation.'
    1 => 'Redirecting Customer to the Home Page. Customer must wait for Email Confirmation.'
    2 => 'Note. This can sometimes happen when/if you are offering a free Trial Period. There are times when a Payment Gateway will NOT supply s2Member with any data immediately after checkout. When/if this happens
    3 => 'array (
  \'s2member_paypal_return\' => \'1\'
  \'txn_id\' => \'8B842209LM1743222\'
  \'item_number\' => \'1033842\'
  \'payer_email\' => \’email@example.com\'
  \'first_name\' => \'Michelle\'
  \'last_name\' => \'Millichip\'
  \'quantity\' => \'1\'
  \'currency\' => \'USD\'
  \'payment_status\' => \'Completed\'
  \'gross\' => \'0.01\'
  \'hash\' => \'8e97c6d7704a341c8534cfa985b412eb\'
)'
  )
)


The user does not get added to WordPress/s2Member.

I'm relatively tech savvy, but I’m afraid this is outside my knowledge and I need some help.

Can someone point me in the right direction PLEASE???

Any assistance will be greatly appreciated. THANKS!!
User avatar
Michelle
Registered User
Registered User
 
Posts: 18
Joined: November 29, 2011

Re: Integration using IPN with Proxy Key

Postby Michelle » December 20th, 2011, 1:07 am

anyone? There must be someone out there who has integrated some service using IPN with proxy key, even if it wasn't ejunkie, that can give me some guidance.

thank you!!!
User avatar
Michelle
Registered User
Registered User
 
Posts: 18
Joined: November 29, 2011

Re: Integration using IPN with Proxy Key

Postby jesseAe » December 20th, 2011, 3:33 am

Hi Michelle, there's a very similar thread going over here, just in case it helps:

http://www.primothemes.com/forums/viewtopic.php?f=36&t=3154&p=57001&hilit=ipn#p57001

I'm hoping for some more information on the IPN with proxy key methodology soon...
User avatar
jesseAe
Experienced User
Experienced User
 
Posts: 13
Joined: August 19, 2011

Re: Integration using IPN with Proxy Key

Postby Michelle » December 20th, 2011, 4:19 am

Thanks Jesse, I had read through that thread yesterday. Hopefully we will both receive the specific guidance we need soon!
User avatar
Michelle
Registered User
Registered User
 
Posts: 18
Joined: November 29, 2011

Re: Integration using IPN with Proxy Key

Postby Cristián Lávaque » December 20th, 2011, 5:04 am

Michelle, the log mentions you're missing the custom value. WP Admin -> s2Member -> PayPal Buttons -> Shortcode Attributes -> custom

2 => 'Unable to verify `$_SERVER["HTTP_HOST"]`. Please check the `custom` value in your Button Code. It MUST start with your domain name.'


Jason explains how to add it to a button created in PayPal, I think the info may be helpful: viewtopic.php?f=36&t=309#p1333
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: No registered users and 2 guests

cron