Paypal Integration

SupportPaypal Integration
jennifer_suits Staff asked 7 years ago
I have been struggling with this all day and I thought I had everything right, but I'm not seeing a Paypal payment button on the front end. In fact, when I require Paypal payment there isn't even a submit button on the front end (just the cancel button). I know this is a new feature and there is not documentation on it, but I wanted to try anyway. 

This is where I'm having problems

i am using the most recent versions of WordPress, the EA plugin and extension. 

After much learning I think I have the right credentials.

Here is a pic.Paypal Settings in EA This is where I copied the credentials from my pp developer:
PP live credentials   Sandbox credentials  
3 Answers
Nikola Loncar Staff answered 7 years ago

Hi,

that should be fine. Can you please send me the link to that page with form where PayPal is missing? I need to check if there are some errors in console.

Best regards,
Nikola

Nikola Loncar Staff answered 7 years ago
Sorry for that message I missed the link in post. I am looking at it right now ignore that part of message. Best regards, Nikola
Nikola Loncar Staff answered 7 years ago

Hi,

looks like there is something wrong with PHP settings there but here is quick fix. Can you please open file in Extension plugin called src/paypal_logic.php and there scroll to part :

var total_amount = jQuery('#ea-total-amount').data('total');

return paypal.rest.payment.create(env, client, {

and please remove blank space between so that it looks like this:

var total_amount = jQuery('#ea-total-amount').data('total');
return paypal.rest.payment.create(env, client, {

Best regards, Nikola

jennifer_suits Staff replied 7 years ago

It worked! Thank you for the fast response.

I love this plugin, but it was a little difficult figuring out the Paypal integration. I’d be happy to review your documentation and offer my thoughts as to what might make it easier from someone with my skill level (I would describe me as an advanced administrator).

Thank you so much for all the hard work creating this plugin and for the fast support. I will leave a positive review.