I am making a website where people will buy things. What I am wondering is if there is a way to check if payment was received in paypal, and then execute some code. Or should I add a paypal widget where when payment is done then it executes some code? This is all being done in HTML and CSS being it is a website.
Take a look at Instant Payment Notification (IPN). Any time a transaction hits your PayPal account their server will POST the transaction data to a URL you specify. Your script receives the data, verifies it with PayPal to ensure it actually came from them, and then you can process that data however you need to.
This gives you the ability to update your own database, send out your own email notifications, hit 3rd party web services, or anything else you want to automate when transactions hit your account. This works for payments, refunds, disputes, etc. so you can automate lots of tasks. It happens in real-time, too.
Related
I am wanting to integrate Realex for my upcoming E-Commerce website. Imagine a scenario as mentioned below:
Customer came to the site, added the products to the Cart and moved ahead to payments.
Now, Customer entered his details on the payment page, and clicked
on the “Pay Now” button.
Imagine below given possible issues (Bad transactions) which might
occur and I am trying to overcome the same:
A. The request was processed successfully by Realex, and while redirecting to my Server URL there was a Network glitch due to which the Redirection failed.
B. The request was processed successfully by Realex, and as it was redirecting there was an Issue with my Server side (let’s suppose some Code related issue).
Now, in the both above mentioned scenarios I need to understand, if there is any way wherein I can check the given Order’s status without manually doing so?
i.e. Is there any Status check API which can provide me the status of the Order, i.e. if it was processed successfully and I might go ahead with the Order or either go ahead for the Refund to the given Customer?
I am implementing recurring payments on a website through SetExpressCheckout and CreateRecurringPaymentsProfile.
Since it's being used for giving a user access to the member's area, I would need to know right away if the initial purchase was successful. Right now, CreateRecurringPaymentsProfile always returns 'Success' and profile status of 'Active' or 'Pending', and only through the IPN will I be able to know if the first transaction was successful or not. So the mechanism seems to be asynchronous (as opposed to Paypal's single transaction system).
Is there any way to know right away (synchronously) if the first payment is successful so that the website can let the member know if he/she has access to the member's area or do we have to tell the user that his/her access is pending verification or something like that?
I am working on a project where users purchase a page of the site and are able to upload stuff to that page. At the moment, when the user pays using PayPal, they are taken straight to the upload page, which is good, however, this page is also accessible by anyone - even if they did not purchase the rights to it. Is there a way to 'protect' the upload page, to only allow proper purchasers to use it themselves? Some sort of system that would detect the PayPal payment and then redirect them to a temporary upload URL?
One way you could do this is to use Paypal's IPN (Instant Payment Notification) service. The IPN service triggers a notification when an event occurs that pertains to a transaction.
Paypal also has webhooks too.
Our platform is trying to create a feature so that a seller can refund a paypal transaction after 60 days. To do this our thought was that we would use the adaptive payment feature and simply ask paypal to send money from seller to buyer.
We created an application, and in the sandbox we have everything working. When we move to production we get this response below.
{"errorId":"550001","domain":"PLATFORM","subdomain":"Application","severity":"Error","category":"Application","message":"User is not allowed to perform this action"}]}
The question is, "How does the seller authorize our platform?" Do they need to check a box in their Paypal account?
What's a bit confusing to us, is that we are testing with our own 'seller' account which is of course a valid Paypal account.
Furthermore, we are doing a simple implicit approval. We did notice that in our application registration we are 'conditionally excepted'. We read that simple payments should work fine, it is only the chained payments that require specific approval from paypal.
I have a very simple online ordering app in Perl. The user fills in a form, and when they submit, my app inserts the info into a mySql database, then redirects them to PayPal to complete the payment. The problem is that the database does not have any information about whether they actually completed the payment. I end up having to manually reconcile a report from PayPal with my database to confirm payment for each order.
Is there anything like a "callback" from PayPal, where I could provide PayPal with a unique identifier for the order and PayPal could send back that identifier as confirmation that the order was paid, preferably through an HTTP request back to my server? Then I could update the order in my database with a "paid" flag.
yes, that's pretty much exactly how it works.
Instant Payment Notification
check out Paypal instant payment notification