Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Paypal IPN always return "payment_status: Pending" on sandbox?

I'm trying to implement PayPal on my website.

I use this class: http://www.micahcarrick.com/php-paypal-ipn-integration-class.html

Right now I'm testing using the PayPal sandbox.

Here is the problem:

  1. User makes payment - ok
  2. User returns to my website succesfully - ok
  3. After a few seconds PayPal calls my website using IPN - ok
  4. My class successfully validate incoming IPN data.
  5. PayPal returns "payment_status: Pending"

I don't know why PayPal IPN calls back with the payment status of "pending"?

Does anyone know what I'm doing wrong?

like image 656
marc Avatar asked Nov 28 '10 17:11

marc


People also ask

Why does PayPal Money Show pending?

Your payment will show as pending until the echeck clears that bank. It usually takes up to 7 business days for an eCheck to clear (but in some cases, it may take longer) and the money to appear in the recipient's PayPal account.

Is sandbox PayPal different from PayPal?

The PayPal sandbox mirrors the features on the PayPal production servers. While some PayPal features do not apply to the sandbox, such as closing an account, issuing monthly statements, storing shipping preferences, and PayPal Shops support, the sandbox has the same PayPal API feature set as the live environment.

Where are my PayPal sandbox transactions?

Go to https://www.sandbox.paypal.com, and logging into the account with the sandbox account's email address and password.


1 Answers

When you're logged into your test business account, manually navigate to:

https://www.sandbox.paypal.com/businessmanage/preferences/payments

You would normally be able to get there by going through your "My Business Setup" but currently it redirects to PayPal live (despite being in the sandbox).

Once you're on that page, change "Block payments sent to me in a currency I do not hold" to "No, accept them and convert them to ..."

Also, don't forget to confirm your business account using the PayPal Sandbox front-end and "Test Email" section of the API.

like image 62
Wes Hanney Avatar answered Oct 14 '22 06:10

Wes Hanney