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

前端 未结 13 1997
温柔的废话
温柔的废话 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: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.

提交回复
热议问题