On successful completion of payment in Sandbox test site, there is a button "Return to xxx test's store". How to rename this button? - paypal-sandbox

On successful completion of payment in Sandbox test store, there is a button "Return to xxx test's store". How can i rename this button?

Related

Testing PayPal Donations with a Sandbox Account

I have a WordPress form that processes data and redirects to this url to complete the PayPal donation
https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=sb-5mepe4127835%40business.example.com&currency_code=USD&amount= <amount>&return=http://example.local/about
However, when I submit the form I receive this error from PayPal
We can't complete your donation. This organization's account is inactive.
What am I missing? The reason I have it setup this way is because I want WordPress to save the form data and send a thank you/confirmation email after the payment is complete.
https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=sb-5mepe4127835%40business.example.com&currency_code=USD&amount=&return=http://example.local/about
When testing with any sandbox account, change the domain to point to the www.sandbox.paypal.com sandbox environment , i.e.
https://www.sandbox.paypal.com/cgi-bin/webscr?cmd=_donations&business=sb-5mepe4127835%40business.example.com&currency_code=USD&amount=&return=http://example.local/about

Waiting for Paypal Payment Notification ASP.NET

I am implementing an ASP.NET web app where the user will fill an application that spans over multiple steps/Pages, with previous/Next buttons on each page to navigate back and forth to each step.
On the second step/page, I have a paypal payment button, so the user can pay for the services they selected on the first page.
My requirements is to wait for the user to pay with paypal and get the notification that a payment was received then navigate to the next page automatically. The user should not be able to proceed without payment.
The paypal payment button opens a new window with paypal site where the user makes the payment.
I looked at Paypal IPN (Instant Payment Notification), Paypal can send the notification to a service on the back-end in the web app, but how can I forward the user to the next page once this notification is received, since this service is not tied directly to the page that the user has opened on his browser?
The one way I am thinking to do is to store the payment in some table with the userid and a unique code and have a javascript function with setInterval(checkPayment, 5000); so every 5 seconds, it calls a service to check if there was a payment and forward the user.
Is there any better solution ?
Better solution is to NOT involve IPN in your checkout flow. As stated:
Because IPN is not a real-time service, your checkout flow should not wait for the IPN message before it is allowed to complete.
REF: https://developer.paypal.com/docs/classic/products/instant-payment-notification/
Paypal has an extensive API that handles your flow - e.g
Express Checkout
REST

Sandbox Paypal keeps returning error

I've created a PayPal Sandbox Buyer and Seller accounts to test my website store but for some reason everytime I login in Sandbox I get this error:
"We are unable to validate your information. Please try again."
With a button to "Return to Merchant".
Already cleared my cookies...

PayPal IPN Sandbox response always INVALID

I'm trying to implement PayPals IPN on my website in asp.net using C#. I am using the sample code given by PayPal found here: https://cms.paypal.com/cms_content/GB/en_GB/files/developer/IPN_ASP_NET_C.txt
I have enabled IPN on my account with the URL of the ipn on my site.
The URL used in the code as you can see in the link above is the sandox url for paypal testing.
I am using the IPN Simulator and It's giving me "IPN sent successfully response" but on my website it displays invalid every time.
I have also tried displaying the strRequest string in a Label and all it shows me is "&cmd=_notify-validate" without quotes. I thought it was meant to add that part on to the rest of the returned data from PayPal.
Here is my button:
This is the button I'm using
<script src="paypal-button.min.js?merchant=myemail"
data-button="buynow"
data-name="name"
data-quantity="1"
data-amount="00.50"
data-currency="GBP"
data-shipping="0"
data-tax="0"
data-env="sandbox"
data-return="http://site.net/thankyou.aspx"
></script>
What is going wrong?
UPDATE:
So.. to recap.
I have 2 sandbox accounts. One business and the other personal. I enabled ipn on the business account. On my website I have the button shown above. The ipn page has the exact same code as the sample code given for the IPN in asp.net from paypal. I got the to website, click the buy now button and make the purchase using the personal account to the sandbox business account. The payment shows as complete and shows as sent with code 200 in the ipn history for the business account but when i check the label i entered on the ipn page it shows the word invalid.
Thanks!

Automatically return to my site after a Paypal payment

I've setup a PayPal sandbox. I have created a "buy now" button with a cancel url and a finish url. I have also added a custom notify_url variable.
I get notified when they press the "pay now" button, so that's good.
The problem is on the front-end:
Q: How do I redirect them back to my site?
I realize that there is a link that says "Return to So and So's store", but I can't depend on the user to read.
Why not have Paypal open in another window so all they have to do is close the Paypal window and they are still on your site.

Resources