We have a further issue (in addition to our Stripe Pro-Forms ignoring the Custom Success Return URLs) which is that upon successful payment for the purchase of additional time (e.g. 1 week), the User’s EOT is not updated.
Initially, we permit Users to purchase access using the Stripe Pro-Forms for Level #1 Access, which for the most part, work well (the Custom Success Return URLs are not functioning, and we’re waiting for a response to that query too! ).
Here’s our Stripe Pro-Form Billing Modification code:
[s2Member-Pro-Stripe-Form modify="1" level="1" ccaps="" desc="$15 GBP / One Time (for 1 week access, non-recurring)" cc="GBP" custom="new.ourwebsite.com" ta="0" tp="0" tt="D" ra="15" rp="1" rt="W" rr="0" coupon="" accept_coupons="0" default_country_code="US" captcha="0" /]
The User accesses the form when logged-in (and can only access it when logged in), and then makes payment (we’re using the Stripe Sandbox to test this).
Upon successful payment, the User is greeted with the message of “Thank you. Your account has been updated”. However, their account has not been updated.
When looking at Stripe, we see that we have no errors at all. We also have no cache installed with Wordpress, though we do use Cloudflare - but this caches only static content and does not cache databases where the EOT is stored, and therefore does not represent a possible cause of conflict.
Here’s our log for the instance:
LOG ENTRY: Fri Mar 17th, 2023 @ precisely 7:36 pm UTC
PHP v7.1.21 :: WordPress v6.0.2 :: s2Member v221103 :: s2Member Pro v221103
Memory 15.22 MB :: Real Memory 4.00 MB :: Peak Memory 15.23 MB :: Real Peak Memory 4.00 MB
new.ourwebsite.com/add-time-demo/
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/111.0.0.0 Safari/537.36
Array
(
[state] => response
[transport_class] => Requests
[args] => Array
(
[method] => POST
[timeout] => 20
[redirection] => 5
[httpversion] => 1.1
[user-agent] => s2Member v221103; https://new.ourwebsite.com
[reject_unsafe_urls] =>
[blocking] => 1
[headers] => Array
(
)
[cookies] => Array
(
)
[body] => Array
(
[txn_type] => web_accept
[txn_cid] => cus_NVa6DAFwlVCR6o
[txn_id] => pi_3Mmj4iB5DI0KRgH20tg7Q54z
[custom] => new.ourwebsite.com
[mc_gross] => 15.00
[mc_currency] => GBP
[tax] => 0.00
[payer_email] => thecorrectemailaddress@gmail.com
[first_name] => Joe
[last_name] => Bloggs
[option_name1] => Referencing Customer ID
[option_selection1] => pi_3MmfuEB5DI0KRgH20bqo8Z7f
[option_name2] => Customer IP Address
[option_selection2] => 147.12.228.123
[item_name] => $15 GBP / One Time (for 1 week access, non-recurring)
[item_number] => 1::1 W
[s2member_paypal_proxy] => stripe
[s2member_paypal_proxy_use] => pro-emails
[s2member_paypal_proxy_coupon] => Array
(
[coupon_code] =>
[full_coupon_code] =>
[affiliate_id] =>
)
[s2member_paypal_proxy_verification] => fbfbebc9d298cbeebb193ae03d84b691
[s2member_paypal_proxy_return_url] =>
)
[compress] =>
[decompress] => 1
[sslverify] =>
[sslcertificates] => /var/www/new.ourwebsite/wp-includes/certificates/ca-bundle.crt
[stream] =>
[filename] =>
[limit_response_size] =>
[s2member] => 221103
[_redirection] => 5
)
[url] => https://new.ourwebsite.com/?s2member_paypal_notify=1
[response] => Array
(
[headers] => Requests_Utility_CaseInsensitiveDictionary Object
(
[data:protected] => Array
(
[date] => Fri, 17 Mar 2023 19:36:30 GMT
[content-type] => text/html; charset=iso-8859-1
[www-authenticate] => Basic realm="Restricted"
[cf-cache-status] => DYNAMIC
[report-to] => {"endpoints":[{"url":"https:\/\/a.nel.cloudflare.com\/report\/v3?s=ZGpTBhhbleoRRFZfiC41AflAO0DGEitEfwA5nTfFENdlnMg9yisRi%2FVw8%2FKhqKEP2Y%2FoYX3O%2FC2Yo%2BEktr2Z0NGPGw55CMDcbEj0L5s6oTbcOKKYhhc8TJR%2BvvDpJ04FGf2kMTVDb0qsfBsqo787VqlNjo6RekgZ"}],"group":"cf-nel","max_age":604800}
[nel] => {"success_fraction":0,"report_to":"cf-nel","max_age":604800}
[server] => cloudflare
[cf-ray] => 7a97af64f812023a-CDG
[alt-svc] => h3=":443"; ma=86400, h3-29=":443"; ma=86400
)
)
[body] => <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>401 Unauthorized</title>
</head><body>
<h1>Unauthorized</h1>
<p>This server could not verify that you
are authorized to access the document
requested. Either you supplied the wrong
credentials (e.g., bad password), or your
browser doesn't understand how to supply
the credentials required.</p>
<hr>
<address>Apache/2.4.12 (Ubuntu) Server at new.ourwebsite.com Port 443</address>
</body></html>
[response] => Array
(
[code] => 401
[message] => Unauthorized
)
[cookies] => Array
(
)
[filename] =>
[http_response] => WP_HTTP_Requests_Response Object
(
[response:protected] => Requests_Response Object
(
[body] => <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>401 Unauthorized</title>
</head><body>
<h1>Unauthorized</h1>
<p>This server could not verify that you
are authorized to access the document
requested. Either you supplied the wrong
credentials (e.g., bad password), or your
browser doesn't understand how to supply
the credentials required.</p>
<hr>
<address>Apache/2.4.12 (Ubuntu) Server at new.ourwebsite.com Port 443</address>
</body></html>
[raw] => HTTP/1.1 401 Unauthorized
Date: Fri, 17 Mar 2023 19:36:30 GMT
Content-Type: text/html; charset=iso-8859-1
Transfer-Encoding: chunked
Connection: close
WWW-Authenticate: Basic realm="Restricted"
CF-Cache-Status: DYNAMIC
Report-To: {"endpoints":[{"url":"https:\/\/a.nel.cloudflare.com\/report\/v3?s=ZGpTBhhbleoRRFZfiC41AflAO0DGEitEfwA5nTfFENdlnMg9yisRi%2FVw8%2FKhqKEP2Y%2FoYX3O%2FC2Yo%2BEktr2Z0NGPGw55CMDcbEj0L5s6oTbcOKKYhhc8TJR%2BvvDpJ04FGf2kMTVDb0qsfBsqo787VqlNjo6RekgZ"}],"group":"cf-nel","max_age":604800}
NEL: {"success_fraction":0,"report_to":"cf-nel","max_age":604800}
Server: cloudflare
CF-RAY: 7a97af64f812023a-CDG
alt-svc: h3=":443"; ma=86400, h3-29=":443"; ma=86400
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>401 Unauthorized</title>
</head><body>
<h1>Unauthorized</h1>
<p>This server could not verify that you
are authorized to access the document
requested. Either you supplied the wrong
credentials (e.g., bad password), or your
browser doesn't understand how to supply
the credentials required.</p>
<hr>
<address>Apache/2.4.12 (Ubuntu) Server at new.ourwebsite.com Port 443</address>
</body></html>
[headers] => Requests_Response_Headers Object
(
[data:protected] => Array
(
[date] => Array
(
[0] => Fri, 17 Mar 2023 19:36:30 GMT
)
[content-type] => Array
(
[0] => text/html; charset=iso-8859-1
)
[www-authenticate] => Array
(
[0] => Basic realm="Restricted"
)
[cf-cache-status] => Array
(
[0] => DYNAMIC
)
[report-to] => Array
(
[0] => {"endpoints":[{"url":"https:\/\/a.nel.cloudflare.com\/report\/v3?s=ZGpTBhhbleoRRFZfiC41AflAO0DGEitEfwA5nTfFENdlnMg9yisRi%2FVw8%2FKhqKEP2Y%2FoYX3O%2FC2Yo%2BEktr2Z0NGPGw55CMDcbEj0L5s6oTbcOKKYhhc8TJR%2BvvDpJ04FGf2kMTVDb0qsfBsqo787VqlNjo6RekgZ"}],"group":"cf-nel","max_age":604800}
)
[nel] => Array
(
[0] => {"success_fraction":0,"report_to":"cf-nel","max_age":604800}
)
[server] => Array
(
[0] => cloudflare
)
[cf-ray] => Array
(
[0] => 7a97af64f812023a-CDG
)
[alt-svc] => Array
(
[0] => h3=":443"; ma=86400, h3-29=":443"; ma=86400
)
)
)
[status_code] => 401
[protocol_version] => 1.1
[success] =>
[redirects] => 0
[url] => https://new.ourwebsite.com/?s2member_paypal_notify=1
[history] => Array
(
)
[cookies] => Requests_Cookie_Jar Object
(
[cookies:protected] => Array
(
)
)
)
[filename:protected] =>
[data] =>
[headers] =>
[status] =>
)
)
)
We’ve also tried to use the S2Member Server Scanner - but it won’t download from your website/the download link appears to be broken.
This part of our future website is quite an important part of why we purchased S2Member Pro. What is the issue we’re facing here? Kinda sucks that we’ve paid for something and it doesn’t function.