Paypal IPN always return “payment_status: Pending” on sandbox?

前端 未结 13 1847
温柔的废话
温柔的废话 2020-12-12 12:45

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 usi

相关标签:
13条回答
  • 2020-12-12 13:06

    You can resolve it by the following instruction.

    1. Login to your Developer Central.

    2. Click on Test Accounts tab on the left. You should have created these test accounts for testing on Sandbox.

    3. Find the column ‘Payment Review’.

    4. Find the sandbox account you are using and click on “Enabled” in the ‘Payment Review’ column.

    5. This should change to “Disabled” and now payments funded from your balance and credit card will complete instantly.

    0 讨论(0)
  • 2020-12-12 13:07

    No solutions above worked for me, but helped me to find the solution.

    If you are using de default business and buyer account, maybe this solution will work for you.

    1. Go to developer.paypal > sandbox.accounts
      https://developer.paypal.com/developer/accounts/

    2. Login and click on clone icon in your sandobx business account and your buyer account

    3. Set new names and emails and click create new account

    4. Open the profile of both accounts and make sure Payment Review is OFF

    5. Edit your target account in your code/app and place the new business account

    6. Repeat transaction using the new buyer account


    This solution not just resolved my problem. Thanks to it the sandox.paypal design changed to the new design that uses real accounts.

    This is important because some of data received by IPN in this case, may respond at different name.

    0 讨论(0)
  • 2020-12-12 13:08

    I had the same problem, and none of the suggestion here worked. Then I realized the problem was that I was trying to make a payment from a sandbox account to a live account. So for example if your registered business account is: email@example.com then all the sandbox payments should be made to email-facilitator@example.com otherwise they will end up in PENDING mode.

    0 讨论(0)
  • 2020-12-12 13:11

    The solution is what @Jadeye explains:

    Go to PayPal Developer Website

    1. Log in to your developer account (sandbox)
    2. Click Applications
    3. Click Sandbox accounts
    4. Click on to the email address that you would like to turn off the Payment Review option and click Profile after it expand
    5. Click Settings
    6. And select Off for the Payment review.
    7. Click Close
    0 讨论(0)
  • 2020-12-12 13:13

    Similar problem here - my (sandbox) merchant account was created as in the US, and I was trying to do EUR payments.

    For me, it didn't matter which settings I changed, it only worked after creating a new merchant account based in Germany.

    0 讨论(0)
  • 2020-12-12 13:16

    Two possible reasons:

    1. seller account has option to accept or decline payment

    In this case you need to login as seller and accept payment and you will get another IPN with payment_status=Completed

    Steps:

    1. login to your developer central
    2. press "test accounts" on the left
    3. select seller account and press "Enter sandbox test site" on the bottom
    4. You should see seller dashboard with option to accept or decline any payment (you might need to relogin at this step using seller test account credentials)

    2. Payment review is enabled

    Solution:

    1. Login to your Developer Central.
    2. Click on Test Accounts tab on the left. You should have created these test accounts for testing on Sandbox.
    3. Find the column ‘Payment Review’.
    4. Find the sandbox account you are using and click on “Enabled” in the ‘Payment Review’ column.

    This should change to “Disabled” and now payments funded from your balance and credit card will complete instantly.

    0 讨论(0)
提交回复
热议问题