Posted: September 27, 2018 at 1:49 pm
|
Dear support, |
Hi there, How and what you need to pass depends on which of the PayPal payment methods you are using, so can you let me know the specific PayPal payment method you are using so I can take a look, please? |
|
|
I use the standard PayPal Business account (Not the Pro) |
If you’re using your standard PayPal Business account with the Event Espresso PayPal Express gateway, you’ll add the following code from this gist: https://gist.github.com/joshfeck/28fd4886176dd189f09d51f6a5ffd2b2 You can add the above to a functions plugin and it will apply the changes to the PayPal order description. |
|
|
September 28, 2018 at 11:14 am Awesome! I’ll try it and keep you posted |
|
We’ll start using Stripe pretty soon, can you please share the code to be used with the stripe add-on as well |
|
Hi Josh, |
You can confirm you’re using PayPal Express by going to Event Espresso > Payment Methods. That page lists the activated payment methods. If you’re using PayPal Express, that will be indicated there. Also, if you’ve placed the code into a plugin’s file, did you follow the step by step guide linked earlier that instructs to activate the plugin? |
|
You’ll add this: https://gist.github.com/joshfeck/a7578b2a75c6b7bdcb67abdbff4b55d3 |
|
|
It doesn’t say in my settings, please see screenshot: |
|
Also, if you’ve placed the code into a plugin’s file, did you follow the step by step guide linked earlier that instructs to activate the plugin? |
You can thank whoever changed the name in the settings for the confusion. Since that’s been changed, you can verify by clicking on the PayPal option there, then click the deactivate button that appears at the bottom of the page. At that point if that’s PayPal Express, you’ll see the following text:
Then you’ll click on the Activate button. |
|
That will not work.
No. That’s the core EE4 plugin and you do not edit that. You’ll need to follow this guide to add the code to your site: |
|
|
Confirmed! |
|
To make sure that the function and the filter are working properly, we used this simple code (to always return the word ‘Tickets’ in the item description but nothing changed add_filter( ‘FHEE__EE_Gateway___order_description’, |
May I ask did you follow this guide when you added the code to the site? https://eventespresso.com/wiki/create-site-specific-plugin-wordpress-site/ |
|
|
We’ll try this method now |
|
We see improvement Here is how it looks in a Paypal invoice: |
I’m glad you got the custom plugin put together and working. To change the item name, you’ll use a different filter hook. e.g.
|
|
|
It worked! Thanks Josh! |
The billing address fields (including Country) are automatically passed. Please see these screenshots that show an example: The other fields (like email) are passed to PayPal but apparently PayPal doesn’t use those to autopopulate the checkout form. |
|
|
Strange, this doesn’t work for me, however, it’s not a big deal.. The last issue I’m dealing with is the Cancel / Return Page: When someone is ready to pay and goes to Paypal then decides to cancel by clicking on “Cancel and Return” (screenshot1), it takes them to a strange page (screenshot2) Note that, other critical pages, such as the Thank You Page, works perfectly, but not the cancel page How can we troubleshoot this problem? screenshot folder: |
Hi there, I responded to your other thread last week regarding this, in case you missed it, it’s here: https://eventespresso.com/topic/paypal-cancel-registration-link-does-not-forward-to-cancellation-page/ There are details missing from your checkout form which are then not passed to PayPal checkout, so when PayPal returns the users to the site it doesn’t have all of the details used to post them back and EE has no idea what details to output to the page. |
|
|
Thanks Tony, unfortunately, the developers I was working with dropped the ball so I had to continue the troubleshooting myself |
You might try using a private browser session (like with Chrome’s Incognito mode) because if your browser has cookies from PayPal.com, that will affect the behavior of the PayPal checkout page. |
|
|
The return page also worked, |
The support post ‘Passing parameter to PayPal’ is closed to new replies.
Have a question about this support post? Create a new support post in our support forums and include a link to this existing support post so we can help you.