use same paypal ipn for multiple stores [duplicate] - paypal-ipn

This question already has answers here:
Paypal multiple IPN setup
(2 answers)
Closed 9 years ago.
I am building a WordPress website using:
Sugar Events Calendar & Sugar Events Calendar & Gravity Forms Integration plugin
WooCommerce store selling a couple of products
I have enabled the PayPal IPN and specified the URL for your listener in the Notification URL field. I used the Gravity Forms URL from the plugin.
So, I am ( want to ) using PayPal IPN (Basic PayPal service) with Multiple Stores With 1 Paypal Account. I am not sure how this will work when there is a purchase from the WooCommerce store. I think they will get the Gravity Forms notification? Do I need a script to dynamically call the notification form each store?
Thanks,
Doak

You can pass over the IPN URL that you want to use with each transaction. If you are using Website Payments Standard, you can use the variable notify_url. Then just set your value to the IPN URL that you want to use.

Related

Is it possible to dynamically set notify_url for recurring payments in PayPal?

I've run into a slight predicament in regards to the PayPal IPN system. My client already has an IPN URL designated for their store, however I am building a custom application which presents the ability to subscribe to a service. I need to be able to receive IPN notifications, however I've seen varying answers in regards to whether or not you can dynamically set the notification URL for recurring payments through the notify_url parameter.
Has anyone recently dealt with this situation? I'm aware that it's possible to setup a handler that will pass requests to various IPN handlers however the store system that my client requires the request to be sent directly from PayPal, third-party vendors' requests are ignored.
You can set notify_url as a parameter of the form that is submitted when the button is clicked, and that will override whatever notification URL is set on the account.
However AFAIK you can't change it again subsequently.

Will old PayPal buttons continue to work after switching to PayPal Express?

I'm using the same PayPal merchant account on multiple websites. Currently I'm using old-style PayPal links () with IPN notification.
Now I'd like to start using the PayPal Express API. But at least for a while I would have the old links still online on some sites.
The switch to PayPal Express seems to be per account. Will the old links and IPN continue to work ?
when you implement PayPal express checkout that will not hinder your PayPal links on whatever site you have them on. You can have PayPal Express Checkout with non-hosted button code on the site at the same time; no problem, at least while you're done with your testing, etc.
PayPal Express Checkout can be used across multiple sites; however APIs are only one per account. What this means is that if you want the funds to go to separate accounts for each site then you'll need a new PayPal account per site as you'll have to use different APIs with Express Checkout. That is the UserName/Password/Signature.
However you will have one IPN listener field for each account; so if you don't mind getting pinged for each site using the same IPN listener then you're fine.
You can just create specific prefix # for each site with the products themselves. Like store # 1 = 001Product# | Store # 2 002Product | etc. This will help differentiate IPN pings for each store and help you catalog it better. This is if you decide to use the same APIs for Express Checkout with the same IPN of the account. If so, you will have the PayPal button purchases along with the Express Checkout purchases you all the same data IPN wise and all funds will roll into the same account.
I hope I hit your mark on your question, but let me know if you need additional clarity as I'm happy to help. Have a good one.

Paypal button integration passing session variables

Hello guys I am developing a web store where users are already registered it must track both users the one that is selling the item and the one that is buying the item also some instructions the buyer might to express to the seller.
I have not performed this kind of tasks before have been reviewing the Paypal developer Api however have not found the exact functionality I need right now.
i need to pass session variables from my app into the paypal mechanism.
Please let me know how to integrate a button for buying an item and then store the details about the transaction in my db cause need to know the userid of the users within my app.
Thanks a lot.-
In your case you can use the Express Checkout API or simple PayPal Standard + IPN
If you use Express Checkout, then you don't need to send any session variable to PayPal as the session is not closed and the last step of the transaction (DoExpressCheckoutPayment) occurs in your website. But, if you really want to send some custom data to PayPal you can do it by sending "PAYMENTREQUEST_n_CUSTOM" inside the SetExpressCheckout call.
If you use PayPal Standard + IPN. You can pass to PayPal the variable called "custom" (Pass-through variable for your own tracking purposes, which buyers do not see) and retrieve it back in the IPN.

paypal integration types confusion

I new to paypal integration in asp.net . I found very difficult to understand the paypal api .
I under stood two types -
inline html form ( i.e is also called buy button )
payflow api
my questions are :
which one must be used for recurring payment ( subcription packages for end user)?
in first type , few sites suggested to use IPN for confirmation of payment. I want to know is it neccessary since without using IPN, also using notify_url we can confirm the payment success (as per my knowledge notify_url returns to your site when payment is completed at paypal site)?
for recurring payment , do i need to store user account details (i.e credt card or paypal account ) in my databas?
please do reply with you suggestion .
Thanks
1) You can do it with both, actually. If you want to stick with basic HTML forms then you'd be using Payments Standard, and they call it "Subscriptions". You can easily create a Subscription button from within your PayPal account.
If you're using the API then they call it Recurring Payments (or Recurring Billing). You would use Express Checkout for the PayPal signups, and Payments Pro if you want to handle credit cards directly on your site without any redirect to PayPal.
IPN is useful regardless of what integration method you're using, however, don't get it confused with PDT. PDT sends data back to your site's thank you page, or whatever final page you setup for it, and it only works with Payments Standard. When PDT is configured on Payments Standard, even with Auto-Return enabled, there is no guarantee the user will make it back to your return URL. IPN is very similar, but data will always be POSTed to your IPN listener regardless of whether or not the user makes it back to your site.
You'll also want to use IPN to handle updates for future payments on a subscription / recurring profile. For example, the actual payments, cancelations, suspensions, reactivations, etc.
The notify_url parameter you mentioned is used for IPN. Again, though, this is separate from PDT. A common mistake I've seen many times is when people have their PDT and IPN both set to the same URL. Then when people do make it back to your thank you page, the code actually runs twice. Once from the user actually hitting it, and once again from PayPal's IPN server hitting it. So make sure to avoid that sort of thing.
3) No, you will never save credit card details to your server. The subscription / recurring system handles that using the data that PayPal saves on their servers.

Paypal IPN Broadcast to multiple websites [duplicate]

This question already has answers here:
Paypal multiple IPN setup
(2 answers)
Closed 9 years ago.
I've been trying to find a solution for this for months but i couldn't...
Paypal only allows me to put one IPN address, but i need more than one for my membership sites to work and other scripts.
How can the Paypal IPN message be broadcast to multiple locations instantly?
Please tell me in a newbie way.
Thanks!
How are you processing paypal payments?
With PayPal Payments Standard, you can supply a different notify_url for each membership site that will be used as the IPN endpoint for those transactions' notification.