I want to verify the proof of android paypal payment to do that, I want to execute this code :
curl https://svcs.sandbox.paypal.com/AdaptivePayments/PaymentDetails \
-H "X-PAYPAL-SECURITY-USERID: user_id" \
-H "X-PAYPAL-SECURITY-PASSWORD: password" \
-H "X-PAYPAL-SECURITY-SIGNATURE: signature" \
-H "X-PAYPAL-REQUEST-DATA-FORMAT: NV" \
-H "X-PAYPAL-RESPONSE-DATA-FORMAT: NV" \
-H "X-PAYPAL-APPLICATION-ID: APP-91B933855X481767M" \
-d "payKey=AP-70M68096ML426802W&requestEnvelope.errorLanguage=en_US"
since I am just a beginner in php, how can I run this command in php script and receive a response
can you link me to some examples also
thank you