Buy with pay now vs pay with subscription on IPN paypal - paypal

I'm having problem with payment on subscription IPN paypal.
If I set cmd is '_xclick-subscriptions', after payment, I saw IPN response to update my db is very slow.
But if I set cmd is '_xclick', after paypmen, I saw IPN response to update my db is very quickly, seems immediate...
Does anyone know about this problem. Could you help me??
Thanks you so much!

If you rely on time then you need to use Express Checkout for subscriptions.
This is because you won't need to wait for an IPN notification to update your database, instead you will get the answer from paypal right away in an API call.
In your case you will need the credentials of the person who will receive the money, not the person who is going to subscribe. You need the follow the process described here: developer.paypal.com/docs/classic/express-checkout/
Here you can see some diagrams: here

Related

PayPal Subscription Failed Payment Webhook flow

i was wondering what webhook is sent when a subscription payment fails?. I wish to downgrade a user on my website if a payment isn't made/fails. but im unsure if the 'Billing.Subscription.Cancelled or Billing.Subscription.Suspended is sent.' I have the "max_fail_attempts": "1".
Thanks
Paypal apis & documents are suck. you can check this link
https://www.paypal-community.com/t5/Webhooks-REST-APIs/regarding-webhook-of-billing-agreement/td-p/1450631
I never see this callback sent, now i give up these webhooks and try IPN instead, hope it works.
there is another link maybe help, in 2015 guys said webhooks supports for recurring payment is in progress, I think it still in progress now.
https://github.com/paypal/PayPal-PHP-SDK/issues/242

SagePay Server Integration - PayPal IPN

My issue is that PayPal is performing security checks on their end, but marking the order as pending. This means that I am getting an OK status from the notification response on SagePay, but am unable to hold the order from being sent to the warehouse which the client has requested.
The documentation I have taken a look at is https://www.sagepay.co.uk/file/25046/download-document/SERVER_Integration_and_Protocol_Guidelines_270815.pdf and I have attempted to speak with SagePay directly.
Please, could someone let me know whether they have ever integrated the PayPal IPN with the SagePay server integration before?
Thank you
Sage Pay doesn't support Paypal IPN. Sage Pay's Payment integration is a one shot thing - once the transaction is done, it's done - it exists in either an authorised or declined state, and is immune to any further changes.
Your best bet might be to implement IPN outside of Sage Pay. You could hold all Paypal orders by default, and then wait for notifications from PayPal to indicate they are cleared to ship.

Lack of Transaction ID on successful PayPal payment?

We are using PayPal's express check-out in order to handle payments in some scenarios. Occasionally we run into situations when it appears that a successful payment has gone through, but there is no transaction id returned when PayPal POSTs the transaction details back to our site. Has anyone else run into this situation? It seems like it might be related to payments that are flagged as "Pending" but we have not been able to successfully recreate the scenario.
Kindly contact PayPal Merchant Technical Support for further assistance on this.
https://www.paypal-techsupport.com/app/ask

What happen if I don´t send my transaction id to PayPal PDT?

I'm testing my PayPal's accounts with SandBox, I read that after PayPal answer I should send a post request with my transaction id, but I don´t understand why. When PayPal send's me request with GET, mi account show operation complete, so:
1.- Why I need send a post request with confirmation if PayPal already done the transaction?
2.- Why I need a Identity token if PayPal already done the transaction?
Thanks.
I've been thinking, after read many times the process, and the reasons to use PDT instead IPN, answered both questions:
1.- I need send a post request to PayPal to verify transaction is real and was made to me.
2.- I need a identity token, because that's the way to say to PayPal "Hey, it's really me, tell me if transaction is real and was made to me"
This avoids that malicious users send me false url request or repeated request (in that case PayPal should't tell me SUCCESS". So, at the time to know than transaction is real and was made to me, I can update my stock, for example

How do I deal with PayPal customers who can't direct return

PayPal states:
Note: If you have turned on Auto
Return and have chosen to turn on
PayPal Account Optional for new users,
a new user will not be automatically
directed back to your website, but
will be given the option to return.
But if some of the customers don't get "Auto Returned", how do I handle them programmatically?
Paypal does not guarantee autoreturn especially when Paypal Account - optional setting is on.
The right way to handle the integration is with Instant Payment Notification (IPN) option. Using IPN Paypal will make POSTS to your page notifying you of payment events. The following link explains the IPN process pretty well.
To summarize, you will write code that will trap posts from Paypal and then make sure to update your billing data accordingly.
Also, IPN messages might be slightly delayed.
Create a script (cron or what) that does check for such payments at paypal perodically (e.g. every hour).
Is this what you mean?
https://www.paypal.com/cgi-bin/webscr?cmd=p/mer/express_return_summary-outside
If not, you may need to be a little more specific with your question. Like - are you using paypal pro? How are your customers checking out? etc. And now that I read the answer below mine, I wonder if you are even talking about the payment process and not something else.