paypalpaypal-sandboxexpress-checkout

PayPal Express Checkout Integration does not fully complete the transaction


I'm implementing the v2 Express Checkout Paypal Integration; It works fine, however it does not fully complete the transaction (business account does not receive the payment).

  1. I'm running tests on sandbox.

  2. The token is generated as well as the Order ID.

  3. I copy and paste the given link into the URL bar and press enter to proceed to complete the transaction. https://www.sandbox.paypal.com/checkoutnow?token=2463323E24235WQ.

  4. The transaction is completed and redirects to a new URL https://example.com/return?token=2463323E24235WQ&PayerID=UEJ2NE9233DS5W.

Everything seems to work well, however when I come to check the notifications of the sandbox business account (in which the payments were supposed to go to), it does not show any payment.

Everything seems to be set accordingly but the payments just don't go to my account.


Solution

  • transaction is completed

    Nope, wrong; the buyer approved the payment. There is no transaction.

    To create a transaction, when the buyer returns to e.g. https://example.com/return?token=2463323E24235WQ&PayerID=UEJ2NE9233DS5W , you must display an order review page and capture the order with the appropriate API call.

    If you want to capture the order immediately (skipping the display of an order review page), you can specify this in the initial order setup so that the "Continue" button the buyer clicks to return to your site instead says "Pay Now".