How to verify successful PayPal payment

I am trying to get paypal transaction transaction information that is transmitted to our website when a client is redirected to our website.

I enabled auto-return and pdt in my paybox account settings. I sent the sample transaction to paypal and it responded to my tx app url.

As shown in some docs, I did curl req for https://www.paypal.com/cgi-bin/webscr and tried to get the information by passing req values ​​as follows:

a.) tx = same one received from paypal
b.) at = pdt code given by paypal while turning pdt on
c.) cmd= "_notify-synch"

but as a result I get String (0) "".

What am I missing?

+5
source share
1 answer

PayPal (IPN). PayPal IPN () , , , .

IPN, script, (POST) PayPal. , / (-) API:

- ( "xxxxxxxx" - URL- IPN script):
  input type = "hidden" name= "notify_url" value = "xxxxxxxx"

-: NOTIFYURL = xxxxxxxx API SetExpressCheckout DoExpressCheckoutPayment API

- Pay Pro NOTIFYURL = xxxxxxxx API DoDirectPayment

, IPN PayPal https://www.paypal.com/ipn

, IPN https://www.x.com/developers/community/blogs/ppmtsrobertg/securing-your-instant-payment-notification-ipn-script

+7

All Articles