Support » Plugin: Hotel Booking Lite » PayPal sandbox testing leaves reservations as “pending payment”

  • Resolved luigir0jas

    (@luigir0jas)


    Greetings.

    I’ve been trying the payment process using PayPal in testing mode, and even though the PayPal Sandbox environment works correctly, and I’m redirected to my site’s “Payment Successful” page, in the admin dashboard the reservation status is shown as “pending payment”.

    I’ve tried it several times to end up with the same result. I also tried with other payment methods (“test payment” and pay on arrival) and it works fine.

    I made sure to activate the Sandbox mode in the plugin’s payment gateway config page, and the PayPal Bussiness e-mail I set is the Paypal Sandbox Test Bussiness Account E-mail (as indicated by your plugin’s documentation PayPal testing instructions).

    Any ideas of what might be happening? I’d like to test the payment gateway using a real PayPal payment, but that is not a possibility for me right now.

    Thank you.

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author MotoPress

    (@motopress)

    Hello,
    Please, make sure to use the latest Hotel Booking version (for the lite version it is 3.7.0). We have also tested the Sandbox mode locally and everything worked properly. In case the problem still exists, could you submit a ticket to get our further personal assistance?

    • This reply was modified 6 months, 2 weeks ago by MotoPress.
    • This reply was modified 6 months, 2 weeks ago by MotoPress.

    Hello, thank you for your reply.

    The version I was using was 3.5.2. I updated it to 3.7.0 but to no avail. I noticed that the instructions for testing in the documentation are different from what PayPal does. Let me explain.

    In your documentation it is said that I should use card number 5555555555554444, CVC 123 and a valid exp date, however, PayPal sandbox just asks me for an email and password (in which case, I use the personal sandbox account credentials paypal automatically provided me with), and then lets me select an preset VISA testing card. I don’t know if that has anything to do with this.
    I’ll proceed to submit the ticket, thank you.

    Plugin Author MotoPress

    (@motopress)

    Hi,

    When you submit a payment via PayPal it gets a Pending status. You can see it in your Dashboard. To Complete a payment PayPal should “notify” your website.

    PayPal will not update your Payment from Pending to Complete if you use local address (localhost, 127.0.0.1 etc).

    Read more about IPN here
    https://developer.paypal.com/docs/classic/products/instant-payment-notification/#how-it-works

    luigir0jas

    (@luigir0jas)

    Hello!

    Yes, indeed, that was my issue. I was doing all the testing on my local machine but when I uploaded the site to my testing hosting it worked as it should’ve. Thank you!

    Plugin Author MotoPress

    (@motopress)

    Hello @luigir0jas,
    Thank you for your reply. We’d highly appreciate if you review Hotel Booking plugin here https://wordpress.org/support/plugin/motopress-hotel-booking-lite/reviews/

Viewing 5 replies - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.