App reviews, troubleshooting, and recommendations
According to docs
https://shopify.dev/apps/payments/processing-a-payment
i am on the step 2
During checkout, an HTTP POST request is received from Shopify to the payment session URL provided during the payments app extension configuration.
But that request has no data in it.
POST:Array
(
)
GET:Array
(
)
SERVER:Array
(
[DOCUMENT_ROOT] => /home/shababhsiddique/Work/Docker/cardinity-shopify/cardinity_external_payment/public
[REMOTE_ADDR] => 127.0.0.1
[REMOTE_PORT] => 57224
[SERVER_SOFTWARE] => PHP 7.4.16 Development Server
[SERVER_PROTOCOL] => HTTP/1.1
[SERVER_NAME] => 127.0.0.1
[SERVER_PORT] => 8081
[REQUEST_URI] => /payment.php
[REQUEST_METHOD] => GET
[SCRIPT_NAME] => /payment.php
[SCRIPT_FILENAME] => /home/shababhsiddique/Work/Docker/cardinity-shopify/cardinity_external_payment/public/payment.php
[PHP_SELF] => /payment.php
[HTTP_HOST] => c965-178-236-207-149.ngrok.io
[HTTP_USER_AGENT] => Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/99.0.4844.51 Safari/537.36
[HTTP_ACCEPT] => text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.9
[HTTP_ACCEPT_ENCODING] => gzip, deflate, br
[HTTP_ACCEPT_LANGUAGE] => en-US,en;q=0.9
[HTTP_SEC_FETCH_DEST] => document
[HTTP_SEC_FETCH_MODE] => navigate
[HTTP_SEC_FETCH_SITE] => none
[HTTP_SEC_FETCH_USER] => ?1
[HTTP_SEC_GPC] => 1
[HTTP_UPGRADE_INSECURE_REQUESTS] => 1
[HTTP_X_FORWARDED_FOR] => 178.236.207.149
[HTTP_X_FORWARDED_PROTO] => https
[REQUEST_TIME_FLOAT] => 1654581150.0965
[REQUEST_TIME] => 1654581150
)
If i am not mistaken this request is suppose to have all the parameters regarding the payment. i.e amount etc...
My question is what is making shopify send empty requests to my payment session URL. Or am i mistaken in the process somewhere?
For the record, if on that page i just hard code output a json as stated in the docs
{"redirect_url":"https:\/\/0d07-178-236-207-149.ngrok.io\/process\/id"}
The checkout process does redirect to that page as intended.
The app is using Laravel built on top of generated project by shopify cli.
and the session URL is a standalone PHP file at this moment. hosted on Laravel public folder.
Currently everything hosted locally using ngrok.
I would really appreciate any help regarding possible causes of this and how to solve it.
Thanks in advance.
Solved! Go to the solution
This is an accepted solution.
This is an accepted solution.
Shopify and our financial partners regularly review and update verification requiremen...
By Jacqui Mar 14, 2025Unlock the potential of marketing on your business growth with Shopify Academy's late...
By Shopify Mar 12, 2025Learn how to increase conversion rates in every stage of the customer journey by enroll...
By Shopify Mar 5, 2025