PayPal window disappears after quickly popping up

Support forumCategory: QuestionsPayPal window disappears after quickly popping up
tuxmob asked 4 years ago
Hi Nikola, Just tried the PayPal integration and no mater what I do unblocking and allowing popups (which is not a good fix because I cant expect my clients to know to do this) when I click the button for a brief second the window appears and then disappears poof!. This happens on every browser I have tried? Please advise
4 Answers
Nikola Loncar Staff answered 4 years ago
Hi, most likely price is set to 0 or you have selected option to hide price. There should be error inside browser console window. Best regards, Nikola
tuxmob replied 4 years ago

Hi Nicola,
I don’t see any option to hide price? My services all have prices. I cannot see any errors in the browser console. and the PayPal window disappears to fast to inspect it.

tuxmob replied 4 years ago

I apologize, there is an error:

Error: Request to post https://www.paypal.com/v1/payments/payment failed with 400 error. Correlation id: xxxxxxxx

{
“name”: “VALIDATION_ERROR”,
“message”: “Invalid request – see details”,
“debug_id”: ” xxxxxx “,
“information_link”: “https://developer.paypal.com/docs/api/payments/#errors”,
“details”: [
{
“field”: “transactions.amount”,
“location”: “body”,
“issue”: “Cannot construct instance of `com.paypal.platform.payments.model.rest.common.Amount`, problem: INVALID_CURRENCY_AMOUNT_FORMAT”
}
]

Nikola Loncar Staff answered 4 years ago
Hi, can you please share the link to that page so I can check ammount format that is mention inside error message "problem: INVALID_CURRENCY_AMOUNT_FORMAT" Best regards, Nikola
Nikola Loncar Staff answered 4 years ago
Hi, sorry for waiting. I have checked site and I can't see anywhere EA logic for checkout inside page html. Do you have any caching plugin there? Can you please try to clear cache on that page if so. Best regards, Nikola
tuxmob replied 4 years ago

Strange it’s showing for me, I have cleared the cache now

Nikola Loncar Staff replied 4 years ago

Thanks for update. Each time you make some changes I would suggest that you clear cache for that page because it can keep old settings. 🙂

Best regards,
Nikola

Nikola Loncar Staff answered 4 years ago
Hi, can you please check price settings on your services? That is field inside EA Settings > Services tab. Also make sure that you don't have option Hide price turned on (EA Settings > Customize) . If you want you can create temp WP account for me to check (nikolanbg[at]gmail[dot]com) Best regards, Nikola
tuxmob replied 4 years ago

Bingo!
It was indeed due to the Hide Price being enabled.

Maybe a note or information pop up could be added next to the Hide Price checkbox that says do not enable if you are using the Connect PayPal checkout.

Thank you, Nikola!

Nikola Loncar Staff replied 4 years ago

You’re welcome 🙂

Best regards,
Nikola