How to check the payment status?

GordonTraveler
Contributor
Contributor

Hi together.

I am integrating payments through Paypal Plus in my script. I managed now to integreat everything till the redirect to Paypal. The customer is paying there (or not) and Paypal is redirecting to the provided "setRedirectUrls". Works so far.

But the question is now how to check if the User really payed. I don't want to relay on the redirects, as they can be manilpulated.
Till now I always used IPN. There it was easier. I could provide a callback URL and Paypal was 'calling' it with the transaction details. I also got details for the payment.
But how is it done in the SDK now? I tried it with "$payment = Payment::get($paymentId, $apiContext);", but can't see any details for the payment.

Can someone help me please.

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.