No TXN_TYPE and other variables exist in Webhook notification to my application

Jae83729
Contributor
Contributor

I've set up NVP/SOAP application and integrated with my web application. The notification used to have below variables which I have integrated with my application to work with:

https://developer.paypal.com/docs/classic/ipn/integration-guide/IPNandPDTVariables/#payment-informat...

 

However with the new NVP/SOAP application I'm getting a different notification payload like below:

 

Array ( [id] => WH-6EX80369TL913084N-2H368035FK2120727 [event_version] => 1.0 [create_time] => 2019-10-17T14:20:03.177Z [resource_type] => payment [event_type] => CHECKOUT.CHECKOUT.BUYER-APPROVED [summary] => Express checkout payment is created and approved by buyer [resource] => Array ( [payload] => ACK=Success&TOKEN=EC%2d24190312R0450274A&CORRELATIONID=95e659347b181&TIMESTAMP=2019%2d10%2d17T14%3a20%3a03%2e167Z&VERSION=205%2e0&BUILD=53072421&EMAIL=keywordrevealer%40gmail%2ecom&PAYERID=LYJJSZ7N9UB4J&COUNTRYCODE=US&FIRSTNAME=Jae&LASTNAME=Choi&PAYMENTREQUEST_0_SHIPTONAME=Jae%20Choi&PAYMENTREQUEST_0_SHIPTOSTREET=1%20Main%20St&PAYMENTREQUEST_0_SHIPTOCITY=San%20Jose&PAYMENTREQUEST_0_SHIPTOSTATE=CA&PAYMENTREQUEST_0_SHIPTOZIP=95131&PAYMENTREQUEST_0_SHIPTOCOUNTRYCODE=US&PAYMENTREQUEST_0_AMT=9%2e97&PAYMENTREQUEST_0_CURRENCYCODE=USD&PAYMENTREQUEST_0_ITEMAMT=9%2e97&PAYMENTREQUEST_0_SHIPPINGAMT=0%2e00&PAYMENTREQUEST_0_INSURANCEAMT=0%2e00&PAYMENTREQUEST_0_SHIPDISCAMT=0%2e00&PAYMENTREQUEST_0_HANDLINGAMT=0%2e00&PAYMENTREQUEST_0_TAXAMT=0%2e00&PAYMENTREQUEST_0_SELLERPAYPALACCOUNTID=admin%2dfacilitator%40keywordrevealer%2ecom [id] => 24190312R0450274A ) [links] => Array ( [0] => Array ( [href] => https://api.sandbox.paypal.com/v1/notifications/webhooks-events/WH-6EX80369TL913084N-2H368035FK21207... [rel] => self [method] => GET ) [1] => Array ( [href] => https://api.sandbox.paypal.com/v1/notifications/webhooks-events/WH-6EX80369TL913084N-2H368035FK21207... [rel] => resend [method] => POST ) ) )

 

Is there a reason why the payload is now different? I used to get variables like txn_type,  payment_status, mc_gross, subscr_id, txn_id etc. but I'm not getting this anymore with the new payload response from Paypal? How can I get the old notification payload back?

Login to Me Too
0 REPLIES 0

Haven't Found your Answer?

It happens. Hit the "Login to Ask the community" button to create a question for the PayPal community.