latest stable versions: v150827 (changelog)

Old Forums (READ-ONLY): The community now lives at WP Sharks™. If you have an s2Member® Pro question, please use our new Support System.

404 Error in Preview Site & PayPal Sandbox

Home Forums Community Forum 404 Error in Preview Site & PayPal Sandbox

This topic contains 7 replies, has 2 voices. Last updated by  Cristián Lávaque 4 years ago.

Topic Author Topic
Posted: Wednesday Jan 2nd, 2013 at 3:45 am #35952

I am sure I am making another silly mistake, but cannot figure it out.

I am testing with my preview website at http://www.bayareatamilmanram.org.previewdns.com and PayPal Sandbox. When I pay with credit card everything works fine and control returns to my site.

When I pay with PayPal I am getting 404 error: http://www.bayareatamilmanram.org/sample-page/?s2member_paypal_xco=s2member_pro_paypal_checkout_return&token=EC-3XE30370CL576414F&PayerID=RV97HFPV62GNL

I suspect it is to do with the fact that the return URL is not the preview site URL. Not sure how to fix it. Please help.

The only log I see is the PayPal API log. Here it is:
PHP v5.3.14 :: WordPress® v3.5 :: s2Member® v121213 :: s2Member® Pro v121213
Memory 3.18 MB :: Real Memory 3.50 MB :: Peak Memory 3.21 MB :: Real Peak Memory 3.50 MB
http://www.bayareatamilmanram.org/sample-page/
User-Agent: Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.1; WOW64; Trident/5.0)
——– Input vars: ( Wed Jan 2, 2013 8:30:31 am UTC ) ——–
array (
‘METHOD’ => ‘SetExpressCheckout’,
‘RETURNURL’ => ‘http://www.bayareatamilmanram.org/sample-page/?s2member_paypal_xco=s2member_pro_paypal_checkout_return’,
‘CANCELURL’ => ‘http://www.bayareatamilmanram.org/sample-page/?s2member_paypal_xco=s2member_pro_paypal_checkout_cancel’,
‘PAGESTYLE’ => ‘paypal’,
‘LOCALECODE’ => ”,
‘NOSHIPPING’ => ‘1’,
‘SOLUTIONTYPE’ => ‘Sole’,
‘LANDINGPAGE’ => ‘Billing’,
‘ALLOWNOTE’ => ‘0’,
‘PAYMENTREQUEST_0_PAYMENTACTION’ => ‘Sale’,
‘PAYMENTREQUEST_0_DESC’ => ‘Annual Membership – $50 USD / per family per year’,
‘PAYMENTREQUEST_0_CUSTOM’ => ‘www.bayareatamilmanram.org’,
‘PAYMENTREQUEST_0_CURRENCYCODE’ => ‘USD’,
‘PAYMENTREQUEST_0_ITEMAMT’ => ‘50.00’,
‘PAYMENTREQUEST_0_TAXAMT’ => ‘0.00’,
‘PAYMENTREQUEST_0_AMT’ => ‘50.00’,
‘L_PAYMENTREQUEST_0_QTY0’ => ‘1’,
‘L_PAYMENTREQUEST_0_NAME0’ => ‘Annual Membership – $50 USD / per family per year’,
‘L_PAYMENTREQUEST_0_NUMBER0’ => ‘1::1 Y’,
‘L_PAYMENTREQUEST_0_AMT0’ => ‘50.00’,
‘PAYMENTREQUEST_0_SHIPTONAME’ => ‘SivaThree TestThree’,
‘PAYMENTREQUEST_0_SHIPTOSTREET’ => ”,
‘PAYMENTREQUEST_0_SHIPTOCITY’ => ”,
‘PAYMENTREQUEST_0_SHIPTOSTATE’ => ”,
‘PAYMENTREQUEST_0_SHIPTOCOUNTRYCODE’ => ‘US’,
‘PAYMENTREQUEST_0_SHIPTOZIP’ => ”,
‘EMAIL’ => ‘seshappan@hotmail.com’,
‘VERSION’ => ‘71.0’,
‘USER’ => ‘pro_1356973562_biz_api1.gmail.com’,
‘PWD’ => ‘1356973619’,
‘SIGNATURE’ => ‘ARL5rz4IL098uQpoQEp53ELB8K6oAPsnmSD..eSkyD6t8W.Nx5wmnzrP’,
)
——– Output string/vars: ( Wed Jan 2, 2013 8:30:32 am UTC ) ——–
TOKEN=EC%2d3XE30370CL576414F&TIMESTAMP=2013%2d01%2d02T08%3a30%3a32Z&CORRELATIONID=2b00a85d948e&ACK=Success&VERSION=71%2e0&BUILD=4181146
array (
‘TOKEN’ => ‘EC-3XE30370CL576414F’,
‘TIMESTAMP’ => ‘2013-01-02T08:30:32Z’,
‘CORRELATIONID’ => ‘2b00a85d948e’,
‘ACK’ => ‘Success’,
‘VERSION’ => ‘71.0’,
‘BUILD’ => ‘4181146’,
)

List Of Topic Replies

Viewing 7 replies - 1 through 7 (of 7 total)
Author Replies
Author Replies
Posted: Thursday Jan 3rd, 2013 at 2:20 am #36058

Hi Siva.

http://www.bayareatamilmanram.org/sample-page/ gives a 404. Why is the return URL pointing to that instead of http://www.bayareatamilmanram.org/?s2member_paypal_xco=s2member_pro_paypal_checkout_return as it’d normally be?

What is the WP directory? Isn’t it in http://www.bayareatamilmanram.org?

Posted: Thursday Jan 3rd, 2013 at 4:23 am #36078

Hi Cristian,

My problem is that the RETURNURL should be pointing to http://www.bayareatamilmanram.org.previewdns.com/sample-page/. I am not able to figure out how to change it to my preview test website.

Thanks.

– Siva.

Posted: Thursday Jan 3rd, 2013 at 4:39 am #36083

Hmm…

Are the WordPress and site addresses correct in [hilite path]WP Admin -> Settings -> General[/hilite]?

Could you post the shortcode you’re using for the pro-form?

Posted: Thursday Jan 3rd, 2013 at 6:19 pm #36136

Hi Cristian,

Here is the short code created using the pro-form:

[s2Member-Pro-PayPal-Form level="1" ccaps="" desc="Annual Membership – $50 USD / per family per year" ps="paypal" lc="" cc="USD" dg="0" ns="1" custom="http://www.bayareatamilmanram.org" ta="0" tp="0" tt="D" ra="50" rp="1" rt="Y" rr="BN" rrt="" rra="2" accept="paypal,visa,mastercard,amex,discover,maestro,solo" accept_via_paypal="paypal" coupon="" accept_coupons="0" default_country_code="" captcha="0" /]

I have also doublechecked the following set up:

  1. WordPress Settings->General->WordPress Address (URL) = http://www.bayareatamilmanram.org.previewdns.com
  2. WordPress Settings ->General->Site Address (URL) = http://www.bayareatamilmanram.org.previewdns.com
  3. PayPal Sandbox->Auto Return URL = http://www.bayareatamilmanram.org.previewdns.com/?s2member_paypal_return=1
  4. PayPal Sandbox->IPN Notification URL = http://www.bayareatamilmanram.org.previewdns.com/?s2member_paypal_notify=1

Is it possible that the return URL is being truncated because the preview address follows .org suffix? Or did I miss some set up?

Posted: Saturday Jan 5th, 2013 at 7:41 am #36253

The custom attribute in your shortcode seems wrong, since it has the other address. I’d generate a new shortcode from your test installation, so s2Member gives you the right value for it. [hilite path]Dashboard -› s2Member® -› PayPal® Pro Forms -› Membership Level # Forms[/hilite]

I see you mention the Sandbox. I’ve seen it sometimes cause problems that wouldn’t be present in live transactions, so I prefer to avoid it and instead test with live 1 cent transactions.

Posted: Monday Jan 7th, 2013 at 1:35 am #36417

Hi Cristian,

Here is the new short code generted. If you are looking at the “custom=” parameter, it is still generating the URL to http://www.bayareatamilmanram.org and not to the preview site.

It is going to be challenging to run a live transaction. We have a live website using a different membership software. We want to switch over to WordPress based site using s2member plugin. I cannot change the settings in my PayPal account until our new site is ready and tested.

[s2Member-Pro-PayPal-Form level="1" ccaps="" desc="$50 USD / One Time ( for 1 year access, non-recurring, no trial )" ps="paypal" lc="" cc="USD" dg="0" ns="1" custom="www.bayareatamilmanram.org" ta="0" tp="0" tt="D" ra="50" rp="1" rt="Y" rr="BN" rrt="" rra="2" accept="paypal,visa,mastercard,amex,discover,maestro,solo" accept_via_paypal="paypal" coupon="" accept_coupons="0" default_country_code="" captcha="0" /]
Posted: Tuesday Jan 8th, 2013 at 5:33 am #36558

Well, s2Member can set the IPN and return URLs on a transaction basis for buttons, unless you’re using PayPal Pro, in which case the IPN URL needs to be set in your PayPal settings.
[hilite path]Dashboard -› s2Member® -› PayPal® Options -› PayPal® IPN Integration -> More info[/hilite]
[hilite path]Dashboard -› s2Member® -› PayPal® Options -› PayPal® PDT / Auto Return -> More info[/hilite]

I find it odd that the generator would output another domain for the custom attribute. You’d need to find where it’s getting it from. Your WP settings? Or your server? And there’s something pointing the return URL to that /sample-page address. Maybe .htaccess?

Maybe you should test the installation in the same site where the live installation is? Or use a more normal address for the test? Not sure what else to suggest, other than reviewing your installation and hosting configuration…

I hope it helps find something.

Viewing 7 replies - 1 through 7 (of 7 total)

This topic is closed to new replies. Topics with no replies for 2 weeks are closed automatically.

Old Forums (READ-ONLY): The community now lives at WP Sharks™. If you have an s2Member® Pro question, please use our new Support System.

Contacting s2Member: Please use our Support Center for bug reports, pre-sale questions & technical assistance.