request method is GET when POST is requested
WolfNet-Comp
Contributor
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Posted on
Mar-24-2023
10:54 AM
I have my form including <input type="hidden" name="rm" value="2"> and the return URL is set by PHP processing code before the form is sent off to PayPal. When PayPal returns to my site the $_SERVER['REQUEST_METHOD'] is GET not POST.
1 REPLY 1
furball3
Contributor
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Mar-25-2023
06:14 PM
I may be experiencing something similar. The variables are not being lifted from the POST method, PayPal's sample code only works with GET.
Furthermore, if I set anything into the Amount field (with code instead of typing it in), it disables the buttons!

Haven't Found your Answer?
It happens. Hit the "Login to Ask the community" button to create a question for the PayPal community.
Related Content
- My PayPal is not allowing me to receive or send requests. in PayPal Payments Standard
- v2/payments/authorizations/{authorization_id} Request failed with status code 404 in REST APIs
- Selected Shipping Method amount not updating to cart for card payment in SDKs
- "issue": "NOT_ENABLED_TO_VAULT_PAYMENT_SOURCE" in REST APIs
- Error payment in PayPal Payments Standard