|
bump – is this a Customer forum or a Community forum ?
|
|
Seems no one is answering that Google Groups question?
|
|
thanks – I see that
But, can we do recurring payments (subscriptions) and allow the user to pay with a credit card ?
|
|
Thanks Christian, for clarifying the detail re: PayPal
The original question was about Google Checkout
Can we setup subscriptions for S2 customers, where they can pay by credit card ?
joe
-
This reply was modified 4 years, 5 months ago by
Simon Cooke.
|
|
yes – but can she take customer payments with credit cards with this approach ?
or just accept payments via other paypal accounts ?
si
|
|
Thanks – I dont think these articles are accurate anymore.
I have a PayPal Business account, then freely upgraded to PayPal Express checkout and can now get my API credentials and use Pro forms.
With this and pro forms I cannot, however, pay with credit cards – only a PayPal account
Using PP standard buttons, customers can pay with credit cards (for one off payments)
I already know all this from testing in last 2 weeks and it condradicts some of the info in the articles you gave links to
What I don’t know is how this operates when trying to use forms/buttosn for subscriptions
Joe
|
|
Thanks – I am starting to develop a picture of what is and is not possible but its still not really clear.
At the moment it looks like, using a PayPal Business account, I could setup recurring payments with PP buttons – but the customers would have to have PayPal accounts to subscribe this way.
Google also supports recurring payments but seems as if one needs a Wallet account to subscribe this way ?
My question is therefore: is there any way to create a subscription service where customers can pay with a Credit card ?
Perhaps you guys could start a separate knowledge base to keep abreast of these issues ?
They are complex and changing and intrinsic to s2member pro usage.
|
|
Just to re-iterate, in my version of s2member pro, the hidden at registration, custom field, assigned a default value – does not work as it should.
Its not until I show the custom field that that the value is assigned to it during regsitration.
To work around the issue – I have given it a friendly name, made it a pre-checked checkbox and made it required (so the user cannot uncheck it when filling out reg form)
It now retains the correct value (in this case ‘1’) – which I cab use elsewhere
Joe
|
|
this is my s2member
120309
|
|
using a paypal button to pay for registration, this redirects back to out of the box s2 registration
after it completes the hidden field is in users profile but has no value
no other plugins are involved in this process
Joe
|
|
Also, alongside this is the issue of the checkout accepting customer credit cards
I have got a PayPal Business account (not pro) accepting cards for one-off payments (via s2member buttons)
Can Google checkout accept subscription payments with customer credit cards ?
si
|
|
Yes, I think it does – thanks.
I am a little confused about the various options supported by PayPal, depending on what type of PayPal account you have.
I think this is the case:
PayPal Business does NOT support recurring subscriptions (using s2member buttons)
PayPal Pro does support recurring subscriptions (using s2member pro forms)
Google checkout (normal account) does support recurring subscriptions (using s2member buttons)
Can you confirm this ?
I have to clarify options for clients and need clarity myself
Si
|
|
|
|
|
|
Thanks – look fwd to reply
|
|
There appears to be a method to suspend subscriptions in PP account:
https://cms.paypal.com/us/cgi-bin/?cmd=_render-content&content_ID=developer/e_howto_html_subscribe_buttons#id09A7FJ00JHS
With this in mind, how would a WordPress/S2 administrator handle the subscription in WP, should they suspend a subscription in PP – or would S2 know this automatically ?
Thanks
|
|
thanks for the advice.
darn
is there any way a site admin could achieve something manually ?
|
|
This is what I have in my author.php (gives me a blank page)
function get_s2member_custom_fields($user_id = $theUserID) {
$return = array();
$user = get_user_option('s2member_custom_fields', $user_id);
foreach ((array)json_decode($GLOBALS['WS_PLUGIN__']['s2member']['o']['custom_reg_fields'], true) as $field) {
if (isset($user[$field['id']])) {
$return[$field['id']]['label'] = $field['label'];
if (empty($field['options']))
$return[$field['id']]['value'] = $user[$field['id']];
else {
$field['options'] = strpos($field['options'], "\n") ? explode("\n", $field['options']) : (array)$field['options'];
foreach ($field['options'] as $option) {
$option = explode('|', $option);
$options[$option[0]] = $option[1];
}
foreach ((array)$user[$field['id']] as $choice)
$return[$field['id']]['options'][$choice] = $options[$choice];
}
}
}
return $return;
}
$s2_custom_fields = get_s2member_custom_fields($theUserID);
echo $var['buyer_country_usa']['options'][0]['label'];
|
|
Cristian, is there a bug in this code – it causes my page to go blank when I include it like this (with a user ID)
function get_s2member_custom_fields($user_id = $theUserID) {
$return = array();
$user = get_user_option('s2member_custom_fields', $user_id);
foreach ((array)json_decode($GLOBALS['WS_PLUGIN__']['s2member']['o']['custom_reg_fields'], true) as $field) {
if (isset($user[$field['id']])) {
$return[$field['id']]['label'] = $field['label'];
if (empty($field['options']))
$return[$field['id']]['value'] = $user[$field['id']];
else {
$field['options'] = strpos($field['options'], "\n") ? explode("\n", $field['options']) : (array)$field['options'];
foreach ($field['options'] as $option) {
$option = explode('|', $option);
$options[$option[0]] = $option[1];
}
foreach ((array)$user[$field['id']] as $choice)
$return[$field['id']]['options'][$choice] = $options[$choice];
}
}
}
return $return;
}
|
|
That’s awesome, thanks Cristian.
Well what do you know:
A) the info already existed
B) you do help people to do things like this in the forums
cheers – I’ll post something back when I have a working solution
|
|
I understand but if you keep user meta data in a serialised array you could help me to extract that data in a meaningful way – that’s after all, at least partly what the support forums are about…no ?
I have posted some custom code that has made an attempt to get the data I need but is clearly not the full solution.
What I am asking for is help completing what I have attempted to start myself. This is consistent with other posts where users have subsequently had a good level of support for their custom coding.
If you don’t want to help me can you ask Jason to post me an answer, as I am not aware that an answer to this specific question exists anywhere at this time in your support forums.
If it does, simply point me to it
Thanks
|
|
oops
first code snippet:
$user_data = get_userdata($user_id);
echo $user_data['wp_lss2member_custom_fields']['buyer_country_usa'];
second code snippet:
echo get_user_field('buyer_country_usa', $theUserID);
ps – I have an unusual database table prefix
|
|
Thanks Raam
I had already read that thread – its not really aimed at what I am trying to achieve
Or, to put it another way, it relates to a method of searching users for custom fields and I am not clever enough to work out how to extract from it the information I need to:
Print/echo data from user meta fields (using an author ID)
I have tried this:
(it breaks the page)
and this:
(it returns ‘Array’)
buyer_country_usa is a multi-option checkbox field
Cheers
Joe
|
|
|
|
Can you help ?
I have managed to use the plugin: Developer’s custom fields, to register a custom field for an s2member role:
The new field now shows in the back-end edit-user screen for only that user role.
GREAT
I need to get this new field to be editable in the s2member front-end user profile management screen.
The answer is here in the plugin’s documentation, but I am not experienced enough to work out how to do it
http://sltaylor.co.uk/wordpress/plugins/slt-custom-fields/docs/
I know I have to edit the s2member plugin here:
s2member/includes/classes/profile-in.inc.php
But I need someone to tell me what code from the plugin documentation to add to the above php file
Help ?
joe
|