Paypal adaptive payments php response after complete payment - paypal

I am new working with adaptive payments of Paypal.
I completed payment using adaptive payment API.
On some research I found, to get transaction details IPN has to be implemented.
I have the code for IPN, but how do I get details just after a transaction is completed so that I could add those details in my database?
I have put the return URL to be the IPN code. Is this the correct way to do it?

Related

How to excute in Rest API if the return_url request lost after user has paid

I am integrating Express Checkout payments in my web by using REST API, and setting the payment intent to sale for making an immediate payment.
Here follows my steps:
1. create a direct payment by /v1/payments/payment, and set redirect_urls;
2. redirect the buyer using the approval_url in the response of step1;
3. when the buyer approves the payment, the full page will be redicrected to the url that I've been provided in redirect_urls, and then I will execute the payment to complete the payment.
My question here:
what if the redirect_url lost in my step3? The buyer paid but I wouldn't be notified. I would not receive the PAYMENT.SALE.COMPLETED webhook neither because I didn't execute the payment.

Paypal + PHP subscription billing?

I want to bill users a subscription fee, and I want to track if the payment was successful. But this seems to be very complicated, I have setup the Paypal PHP SDK and the samples are working, but I am not sure how to proceed now.
If you want to track recurring payments, you can use PayPal IPN feature. refer to https://developer.paypal.com/docs/classic/ipn/integration-guide/IPNIntro/?mark=IPN, PayPal will send IPN message to your IPN URL if any transaction occur.

Express checkout with payflow pro and recurring payment

i am using Paypal manager for the payment i successfully done with credit card payment with recurring payment profile from my website using PayPal manager. but now i want do recurring payment with express checkout using Paypal manager with recurring payment. i am able to do simple direct payment with express checkout using PayPal manager. i found some solution from google that we need to pass two variable
L_BILLINGAGREEMENTDESCRIPTION0 = "Your descriptor"
L_BILLINGTYPE0 = "RecurringPayments"
But i am not able to do recurring payment. I am not getting any error. but my payment have done simple payment not recurring.
Thanks in advance..
There are two things with Express Checkout. First you need to let know the whole process that you will also create some recurring payment profiles.
For that you set BillingType as RecurringPayments when you do doExpressCheckout request.
You will get the Token from paypal and later when user will be back on your site to confirm payment after signing in to Paypal you can use this token to create recurring payment profile the same way as you have done that with credit card.
So after confirming instead of sending doExpressCheckoutPayment you send createRecurringPaymentProfile request.
Of course you can also send doExpressCheckoutPayment if you want also to do some additional payment that is not recurring.

Paypal adaptive payments fee

I'm using paypal api to accept and send payments. When accepting payments i can get payment fee amount from IPN message, but i can't get it for payments, which are send using adaptive payments api. Also i tried to request adaptive payments transaction details, but it does not contain fee amount either.
I found this topic Paypal Adaptive Payment IPN fees information and tried to specify IPN url in sandbox, but i didn't get any additional info about payment. Actually i didn't get any IPN message to that url.
Is it possible to get fee for adaptive payments?

transaction status paypal adaptive payments

I do not understand this IPN values:
status=COMPLETED
transaction[0].status_for_sender_txn=Pending
transaction[0].status=Pending
I'm using adaptive payments, but I don't know why status is allways COMPLETED and transaction[0].status is allways Pending!!!!
I'm using sandbox, but I don't understand why the transactions are allways pending, I don't know when to enable the buyer to download the contents that he payed...
And there is no official documentation on the web...
The status of the transaction can be Pending in 'delayed chained' payments or if the receiver does not have a PayPal account. Can you post the whole payload? I can see only a part of it. Is this a chained payment you are trying? Is the receiver primary or secondary?