Community Support Forums — WordPress® ( Users Helping Users ) — 2011-08-15T19:32:56-05:00 http://www.primothemes.com/forums/feed.php?f=4&t=14273 2011-08-15T19:32:56-05:00 http://www.primothemes.com/forums/viewtopic.php?t=14273&p=32010#p32010 <![CDATA[Re: S2 Pro forms response data]]> Thanks for reporting back on this though, MUCH appreciated!

Statistics: Posted by Jason Caldwell — August 15th, 2011, 7:32 pm


]]>
2011-08-11T10:21:34-05:00 http://www.primothemes.com/forums/viewtopic.php?t=14273&p=30493#p30493 <![CDATA[Re: S2 Pro forms response data]]>
Many thanks for your response. Just in case anyone else ask a simular question
I have inserted the response from Paypal below.


Hi PeterHuk,

No, currently the user does not have an option to select the account type they want to create when going through the subscription sign-up process. Once the account is created, the user will need to login and upgrade to a business account if needed.

Thanks.


Kind regards
Peter Huk

Statistics: Posted by peterhuk — August 11th, 2011, 10:21 am


]]>
2011-08-10T14:29:26-05:00 http://www.primothemes.com/forums/viewtopic.php?t=14273&p=30422#p30422 <![CDATA[Re: S2 Pro forms response data]]> Ah. I see now, thanks for the clarification.
Not that I'm aware of. I think PayPal is just trying to eliminate as many questions during checkout as they can, so as not to decrease your conversion rate for successful payments. This might be a good question to post here though, just in case there is a "secret" I'm not aware of: https://www.x.com/docs/DOC-1613

Statistics: Posted by Jason Caldwell — August 10th, 2011, 2:29 pm


]]>
2011-08-10T05:28:01-05:00 http://www.primothemes.com/forums/viewtopic.php?t=14273&p=30363#p30363 <![CDATA[Re: S2 Pro forms response data]]>

You mean get PayPal to only accept the transaction from them if they are a business?


Hi Jason, I made a bit of a hash of that question :oops: . What I meant was from the S2Member Pro
form, after clicking the Paypal checkout button the user will be taken to the Paypal user login page.

If the user did not have a Paypal account they can click on the link to create an account.
it is that option which I am refering to as it presents a form to create a standard user account.

But if you go direct to Paypal to create an account it gives both standard user and business user
account options.

I am aware that they can create a standard user account then upgrade but that might be a big ask
for a subscriber that may not have intended to create a Paypal account in the first place.

I understand that this issues maybe beyond your control but I was hoping that something
could have been done via an api call.

Many thanks
PeterHuk

Statistics: Posted by peterhuk — August 10th, 2011, 5:28 am


]]>
2011-08-09T21:23:31-05:00 http://www.primothemes.com/forums/viewtopic.php?t=14273&p=30353#p30353 <![CDATA[Re: S2 Pro forms response data]]>

A, If a business user (without a Paypal account) intends on creating a subscription under
their business name. After clicking the Paypal button on the S2 Pro form, is there away to
get the api to request a Paypal Business signup option instead of /as well as the current
non-business signup option?
You mean get PayPal to only accept the transaction from them if they are a business?


B, If a business requires several subscription (multi user) accounts to my service using the
same Paypal account is this likely to cause any problems (have tested and seems ok
but just want to make sure).
No, that will not cause any trouble for s2Member.


At go live this is unlikely to be an option, I would like to ask Jason if you will be willing to
consider a mechanism whereby if I paid you X I could expect priority support in Y hours
(where you would have to decide on the value of X and Y).
I can certainly appreciate the need for such a thing, and while we may offer this service in the future, we don't have the resources for that at this time. For now, we'll have to refer you to jobs.wordpress.net for dedicated support from a WordPress developer familiar with s2Member.

s2Member® / Hot Tip: ( s2Installs.com! )

Recommended by s2Member® Lead Developer (Jason Caldwell). Their rate for a standard installation is $125. They're highly trained. Just request their service!

Need Help? Post A New Job!

It's free. Your Job will appear here, and @ jobs.wordpress.net. It will be displayed for a period of 21 days; or until you take it off, whichever comes first. Good luck!

* That being said, our support forum is always open, and I invite you to write us if you encounter any problems that you'd like our help with.

Statistics: Posted by Jason Caldwell — August 9th, 2011, 9:23 pm


]]>
2011-08-07T14:50:38-05:00 http://www.primothemes.com/forums/viewtopic.php?t=14273&p=30108#p30108 <![CDATA[Re: S2 Pro forms response data]]> $ipn_array['paypal'][ 'subscr_id']
when $ipn_array['paypal'] ['txn_type'] = 'subscr_signup' (hope that makes
sense).

I have three final questions (hopefully can resolve before I go live within next few week).

A, If a business user (without a Paypal account) intends on creating a subscription under
their business name. After clicking the Paypal button on the S2 Pro form, is there away to
get the api to request a Paypal Business signup option instead of /as well as the current
non-business signup option?

B, If a business requires several subscription (multi user) accounts to my service using the
same Paypal account is this likely to cause any problems (have tested and seems ok
but just want to make sure).

C, Finally, I’m hoping to go live in the next few weeks. Up till now I have enjoyed the luxury
of spending time (often several days) with S2Mmber and S2Member Pro trying to resolve
issues I have encountered whilst trying to integrate with my system.

At go live this is unlikely to be an option, I would like to ask Jason if you will be willing to
consider a mechanism whereby if I paid you X I could expect priority support in Y hours
(where you would have to decide on the value of X and Y).

I got to say this, like insurance I am hoping not to need it, but if the situation arise it would
be good to know that option would be available. In addition I’m sure there are other members
who would be happy to know this option is available too.

Kind regards
PeterHuk

Statistics: Posted by peterhuk — August 7th, 2011, 2:50 pm


]]>
2011-08-06T17:00:46-05:00 http://www.primothemes.com/forums/viewtopic.php?t=14273&p=30043#p30043 <![CDATA[Re: S2 Pro forms response data]]>
I finally got the logging sorted. First of all add an action to the paypal notify ex below.

Code:
add_action('ws_plugin__s2member_during_paypal_notify', 'your_ipn_log_func');


This send the ipn data to your function in the form of an array. there are quite a few data
variations so I used a few standard fields to store in db.

log_id, user_id, txn_type, ipn_received_date and ipn_log_data.

the log_id, txn_type and ipn_log_data are fairly easy to send to db i.e.

log_id is set to primary key and auto_increment
txn_type can be accessed from $ipn_array['paypal']['txn_type']
ipn_log_data array can be accessed and saved by serializing $ipn_array['paypal']

To access the ipn recoreded time required some additional coding so I simply used the
current gmdate time (which is probably only a few micro seconds diffrent to the one
on the ipn log)

I did not want to use up to much proccessing time to work out the user_id so I simply added
the user id to the Custom Replacement Code i.e custom="yourdomain.com|user_id"
(where user_id is the int value) This works nicely except for one condition.

When a user modifies their account i.e upgrade / downgrade the first ipn txn_type is a
subscr_signup which is fine the custom code comes back o.k.

The next ipn txn_type is a recurring_payment_profile_cancel this ipn come in without
a custom code which causes the user_id to be stored as 0. Could this be a bug? :oops:

The account cancellations and Specific Post/Page (Buy Now) ipn's work perfectly. ;)

Is there fix or a workaround (which does not require much processing)?

Many thanks

PeterHuk

PS the process / method to process the data and insert into mysql is a bit long winded (and will
probably cause some to fall asleep). If anyone is interested I would be happy to provide more info.

Statistics: Posted by peterhuk — August 6th, 2011, 5:00 pm


]]>
2011-08-01T21:44:56-05:00 http://www.primothemes.com/forums/viewtopic.php?t=14273&p=29597#p29597 <![CDATA[Re: S2 Pro forms response data]]>

I look forward to your progress and updates.

Statistics: Posted by Cristián Lávaque — August 1st, 2011, 9:44 pm


]]>
2011-07-31T21:46:33-05:00 http://www.primothemes.com/forums/viewtopic.php?t=14273&p=29547#p29547 <![CDATA[Re: S2 Pro forms response data]]>
I managed to find the answer to the first part of my question.

S2Memeber Pro does a ‘init’ Globals load of Cancellations ,
Checkout and Specific pages if the relevant $_POST vars are set.

I.e:
Code:
$GLOBALS["ws_plugin__s2member_pro_paypal_cancellation_response"]
$GLOBALS["ws_plugin__s2member_pro_paypal_sp_checkout_response"]
$GLOBALS["ws_plugin__s2member_pro_paypal_checkout_response"]


If set they will contain positive response (i.e no errors) or negative response
If errors are set.

Format:
Code:
$GLOBALS["ws_plugin__s2member_pro_paypal_cancellation_response"][“response”] (relevant message)
$GLOBALS["ws_plugin__s2member_pro_paypal_cancellation_response"][“error”] (either true or false)


“S2Member & S2Member Pro are pure genius” :D

Now to set off and try to workout how to save pdt and ipn to DB.

PeterHuk

Statistics: Posted by peterhuk — July 31st, 2011, 9:46 pm


]]>
2011-07-28T19:45:19-05:00 http://www.primothemes.com/forums/viewtopic.php?t=14273&p=29428#p29428 <![CDATA[S2 Pro forms response data]]>
I have an option page which provides a list of all subscribable options, once
a user selects the relevant options then clicked checkout, this same pages displays a
confirmation of options selected and a S2member Pro subscription payment
form.

The problem I have at present is if there is a cancellation or an error, the page
returns to the first options page (which is what I want). But I cannot get access
to the error codes / response data that would be displayed on the S2 Pro forms.

s2member-pro\includes\classes\gateways\paypal\paypal-form-in.inc.php
contains a number of do_action points i.e:

ws_plugin__s2member_pro_during_sc_paypal_cancellation_form
ws_plugin__s2member_pro_during_sc_paypal_sp_form
ws_plugin__s2member_pro_during_sc_paypal_modification_form
ws_plugin__s2member_pro_during_sc_paypal_form

But accessing data from these points to insert into a form is proving difficult.

Any clues as to where I can grab these vars to insert into a div alert box?

Also whilst I am here, the absolute last problem I have before going semi live
Is the api and pdt logs are great, but I need to have all api and pdt transactions
logged in Mysql.

Is there anyway to grab raw log data (with log option switched off) which I can format
and insert into Mysql?

Many thanks

PeterHuk

Statistics: Posted by peterhuk — July 28th, 2011, 7:45 pm


]]>