Page 1 of 1

Sending to Paypal Mobile

PostPosted: October 1st, 2011, 7:16 am
by cclambie
Hi there,

Does anyone know how to successfully make s2Member direct to Paypal for Mobile?
I have tried adding to the cmd as described on this Paypal page - https://cms.paypal.com/us/cgi-bin/?cmd= ... ileDevices
But I haven't had any luck.

Would be great to be able to use s2Member on my Mobile Applications.

Thanks
C

Re: Sending to Paypal Mobile

PostPosted: October 2nd, 2011, 3:52 am
by Cristián Lávaque
C, where did you add the cmd=_express-checkout-mobile part in your test?

Re: Sending to Paypal Mobile

PostPosted: October 2nd, 2011, 5:44 pm
by cclambie
Hi Cristian,

I tried it this way
Code: Select all
<form action="https://www.paypal.com/cgi-bin/webscr" method="post">
<input type="hidden" name="cmd" value="_xclick" />
<input type="hidden" name="cmd" value="_express-checkout-mobile" /><!-- Instant Payment Notification & Return Page Details --><input type="hidden" name="notify_url" value="http://truesecrets.com.au/strange-tours-melbourne/?s2member_paypal_notify=1" />
<input type="hidden" name="cancel_return" value="http://truesecrets.com.au/strange-tours-melbourne/" />
<input type="hidden" name="return" value="http://truesecrets.com.au/strange-tours-melbourne/?s2member_paypal_return=1" />
<input type="hidden" name="rm" value="2" /><!-- Configures All 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="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="True Secrets 24 Hour Access" />
<input type="hidden" name="item_number" value="Secrets 1 through 7" />
<input type="hidden" name="amount" value="15" /> <!-- 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.paypal.com/en_US/i/btn/btn_xpressCheckout.gif" style="width:auto; height:auto; border:0;" alt="PayPal®" />
</form>


Then this way
Code: Select all
<form action="https://www.paypal.com/cgi-bin/webscr" method="post">
<input type="hidden" name="cmd" value="_xclick&_express-checkout-mobile" /><!-- Instant Payment Notification & Return Page Details --><input type="hidden" name="notify_url" value="http://truesecrets.com.au/strange-tours-melbourne/?s2member_paypal_notify=1" />
<input type="hidden" name="cancel_return" value="http://truesecrets.com.au/strange-tours-melbourne/" />
<input type="hidden" name="return" value="http://truesecrets.com.au/strange-tours-melbourne/?s2member_paypal_return=1" />
<input type="hidden" name="rm" value="2" /><!-- Configures All 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="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="True Secrets 24 Hour Access" />
<input type="hidden" name="item_number" value="Secrets 1 through 7" />
<input type="hidden" name="amount" value="15" /> <!-- 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.paypal.com/en_US/i/btn/btn_xpressCheckout.gif" style="width:auto; height:auto; border:0;" alt="PayPal®" />
</form>


Then this way
Code: Select all
<a href="https://www.paypal.com/cgi-bin/webscr?cmd=_express-checkout-mobile&useraction=commit&token=valueFromSetExpressCheckoutResponse&RETURNURLhttp://truesecrets.com.au/strange-tours-melbourne/?s2member_paypal_return=1&CANCELURL=http://truesecrets.com.au/strange-tours-melbourne/&SOLUTIONTYPE=Sole&LANDINGPAGE=Billing&AMT=15&"><img src="https://www.paypal.com/en_US/i/btn/btn_xpressCheckout.gif" style="width:auto; height:auto; border:0;" alt="PayPal®" /></a>


Thanks

Craig (sorry I am used to having my name in the signature :)

Re: Sending to Paypal Mobile

PostPosted: October 3rd, 2011, 2:15 am
by Cristián Lávaque
Thanks, Craig. :)

I'll email Jason so he adds his comments about this.

Re: Sending to Paypal Mobile

PostPosted: October 3rd, 2011, 3:26 am
by cclambie
Thanks Cristia'n

Re: Sending to Paypal Mobile

PostPosted: October 3rd, 2011, 10:15 pm
by Jason Caldwell
Thank you. Investigating this now.

Re: Sending to Paypal Mobile

PostPosted: October 7th, 2011, 7:17 pm
by Jason Caldwell
Thanks for your patience.

I can confirm that s2Member has NOT yet been tested with PayPal mobile, I'm adding this to our TODO list now. That being said, it seems from the documentation I've been over so far, that PayPal auto-detects mobile devices ( i.e. the HTTP_USER_AGENT ), and displays their mobile version when applicable. However, I take it that's not working for you? Perhaps there are some features that s2Member uses which PayPal's mobile version is not compatible with yet. I'll be looking further into this issue soon. Please feel free to report back with any additional test results. Thanks again for your patience.

Re: Sending to Paypal Mobile

PostPosted: October 8th, 2011, 12:29 am
by cclambie
Thanks Jason - I was under this impression too.
I for now have put this aside, but if I have time to try it further I will give it a go.
How far down your todo list is it?

Re: Sending to Paypal Mobile

PostPosted: October 8th, 2011, 1:43 pm
by Jason Caldwell
Thanks for the follow-up.
It's looking like mid-November right now.

Re: Sending to Paypal Mobile

PostPosted: October 17th, 2011, 7:42 pm
by cclambie
FYI I have had a conversation with Paypal and this is there latest message:

Hi Craig,

You will need to speak with s2Member to understand what PayPal integration they are using. The mobile optimized flow is currently only available with Mobile Express Checkout, the standard Buy Now buttons do not yet support the mobile checkout flow.

Thanks,
Stephen
Developer Technical Services

Re: Sending to Paypal Mobile

PostPosted: October 19th, 2011, 8:36 pm
by Jason Caldwell
Thanks for the follow-up.
s2Member is integrated with Standard Buy Now Buttons. However, s2Member Pro Forms ARE integrated with Express Checkout, so it sounds like they should work with Mobile Express Checkout automatically.