I am hoping someone can help me with the following. I have a Buy Now button. The Buy Now button displays PayPal page correctly in a separate window. Now what I am trying to do I cannot find info on it. I would like PayPal to return to the child dialog with a variable that will indicate success (payment made) or failure (payment cancelled by buyer). Is this possible?
I would like flow to work like this:
1.Member logs in to my site
2.Member clicks on BuyNow
3.PayPal opened in new window
4. Member proceeds/ cancels payment
5. PayPal returns to the web page that invoked it.
5a. If payment made the page is refreshed
5b. If payment not made nothing occurs
Bruno
Like it was suggested, you can use Auto-Return to have buyers who pay with a PayPal automatically returned to your site. Set the Auto-Return URL in your account to be the page you want buyers taken to or define the return_url value.
If you're using buttons created through your PayPal account there is a place to set a cancel and return URL for buyers to be redirected to.
Not every buyer is guaranteed to return to your site though. They'll still be able to close the browser or navigate elsewhere before the redirect completes.
Related
I have a website that use can buy points. I use paypal for payment. My method is this.
- After paypal sucess redirect to a success?point=100
- In success page I will add point to user base on the point variable.
- But like this user can type direct in url or refresh the page. It also add point.
My question is how to prevent user type direct in url or refresh
Server language: PHP, Nodejs
Use the redirect page to notify the user that their payment has been completed, but do not take any action from that page.
Instead, set up a PayPal IPN (Instant Payment Notification) endpoint. PayPal will make a request to this endpoint with specific parameters to securely notify you that a payment has been received; use that to update the user's balance. Note that this notification may arrive either before or after the user views the redirect page, depending on how quickly their browser redirects and how long it takes PayPal to verify the payment and call your endpoint.
I am using Paypal Sandbox account. I want to automatic page redirect my own website after payment successful order authorized.
Your transaction ID for this payment is: 8E7045675M462235P.
We'll send a confirmation email to ramesh#cognizsoft.com.
return to aman#cognizsoft.com
Go to PayPal account overview
Add funds from your bank
it's go to back on store when click on return to aman#cognizsoft.com
With Payments Standard there is no guarantee the user will make it back to your site. You can help things by enabling Auto-Return in your PayPal account profile, but even then the user could close the browser before the redirect happens and they would never make it there.
If you need to automate post-payment-processing tasks you can do that using IPN which will be triggered regardless of whether or not the user makes it back to your site.
If you would rather ensure that you will indeed end up on your site to finalize every checkout then you could switch to the Express Checkout API.
I am working on a project which will be able to accept paypal payments. The sequence I am using is as follows:
My current development sites' payment steps:
The user goes to my site,
Chooses to pay for something,
Is redirected to paypal,
The payment is completed on paypal,
Then the user gets redirected back to my sites success url.
This works fine, as I use an IPN listener to update my database in the background when paypal decides to confirm the committed payment and let the user know accordingly.
However, a few days ago, I was doing some online shopping of my own, and paid using paypal. I noticed that when I paid, I was redirected to paypal, where I logged in and saw the paypal invoice. I clicked confirm, and I was redirected back to the sellers website, where I so a summary and was told to commit the purchase!!!
So basically, the sequence was something like this:
My shopping experience from a different sellers site:
I wanted to pay for the items,
I was redirected to paypal,
I was the invoice and confirmed the payment,
I was redirected to the sellers site,
I was was shown a confirmation of the order and was asked to commit the payment,
I committed the payment and was told that the order has been completed.
The difference, my site commits the purchase on the paypal website and I listen for a reponse from paypal using their IPN system, but this second site seems to commit the payment on the sellers actual website.
I thought, wow, that felt so much more reassuring from a user experience point of view.
How is that done?
Sounds like you're currently using Payments Standard and you want Express Checkout.
Express Checkout is very similar to Standard except that it's API based and the user gets returned to your site prior to finalizing the payment.
It consists of 3 API calls...
1) SetExpressCheckout - gets a token back from PayPal that you append to the end of a redirect URL that sends the person over to PayPal to login and review the payment.
2) GetExpressCheckoutDetails - This allows you to pull the payer details (name, phone, shipping address, etc.) back into your app from PayPal. This is an optional step.
3) DoExpressCheckoutPayament - this finalizes the payment. No money is moved until this API call happens, and it doesn't happen, of course, until the user is already back at your site and within your own app flow again.
You can still use IPN the way you are, but you could also things directly within the flow as well since you get instant responses back from the API, and you can setup your own review however you want to.
I am testing the a payment process of paypal.I am using Paypal Website Payment Pro solution.
When the PayPal transaction is complete, PayPal shows this payment successful message:
Thanks for your order
Your payment of $XXXX.XX USD is complete.
You're now going back to MYSITE.
If you are not redirected within 10 seconds, click here.
I want to skip this page and directly go to my specify page url.
I have followed this instruction as mention in paypal documentation.
1: login in paypal sandbox account
2: i went to profile tab then under Website payment settings then went to Website Payments Pro Hosted Solution and then Settings
there is a auto return option. i enable the auto return radio box and insert the return url .ans then saved it .
but the problem is that it is not auto redirecting .it is showing the same paypal payment successful page with a popup with message "continue or cancel button" if the user pree the cancel button then it will not redirect to my specify url (that i do not want)
I know may be this question is duplicated. but the reason i am asking this question because paypal do changes rapidly .
thanks in advance
If you used PAYPAL php SDK THEN You have to make a success page like"success.php" and in payment.php file you have to set success url of this file(success.php).
I am using sandbox mode.
I click buy item on my shop, and after i pay with sanndbox account it takes me to "Thank you for your payment - Paypal" but doesn't redirect back to my site! I already have IPN setup!
I dont understand, do I need to contact paypal first ? or is there some section on paypal where you can enter your shopping site URL to get it authorized ?
IPN sends the notification to your server behind the scenes, whether the end user is redirected or not.
PDT, is a different (though somewhat similar) technology offered by PayPal, which sends the data when it redirects. Are you sure you are not receiving IPN notifications?
good comparison of the various methods here: https://www.x.com/message/108223#108223
when using IPN, the transaction information will be posted to your ipn handler url directly from paypal in the background. the ipn url can be specified with the "notify_url" parameter or in your profile.
the customer will be redirected back to your site. the target url can be set in your profile or specified in the transaction using the "return" parameter.