PayPal for Zero Dollar Appointments

Support forumCategory: QuestionsPayPal for Zero Dollar Appointments
Kris asked 6 years ago
Hello! I've purchased the paypal add-on and have it working *almost* perfectly. I would like to require PayPal to book- but I have one service that is 0.00 cost. When you press the paypal checkout button for a 0.00 sum booking, nothing happens- I assume paypal doesn't count a $0 payment as valid, and then it doesn't return anything that EA is expecting. Is there a simple code mod to make this work in my case? I looked at the paypal_logic.php file but am not knowledgeable enough with the APIs and rest of the code to know how to change.
2 Answers
Nikola Loncar Staff answered 6 years ago
Hi Kris do you want to exclude those with price $0 from having PayPal button? Best regards, Nikola
Kris answered 6 years ago
Hello, It's not too important to me that the button changes, though that would be a nice feature. I know I can currently uncheck the paypal required option, but then both the "Submit" and PayPal buttons show up- I don't want to give the option to not use PayPal if there is a non-zero dollar amount. If the dollar amount is zero, either the PayPal button could remain and when you press it, it simply skips some steps and confirms.... or it could change to the Submit button. Whatever is easier. Thanks for your reply! Kris
Nikola Loncar Staff replied 6 years ago

Hi Kris I will go with hiding the PayPal button if price is 0. 🙂

Best regards,
Nikola

Kris replied 6 years ago

Thanks for the reply! To be clear, the intent is that if there is a non-zero amount, they *must* use paypal. But if there is a zero dollar amount, they can still submit the booking for free