Posted: January 9, 2025 at 12:06 pm
We sell courses/events for Canada and US. We have different PayPal business accounts for each country. Question is: if I have one event can I attach 2 PayPal accounts to ONE event? So that the money is routed to the correct country/PayPal. Thank you in advance. |
|
Hi Vals, When someone registers, you have to configure Event Espresso to decide which payment gateway account for people to pay. By default Event Espresso uses the default payment accounts you have set up in Event Espresso > Payment Methods. The Payment Methods Pro add-on allows you to choose a payment method to be used for an individual account if different than the default settings. It seems this idea is incomplete. You have to pre-determine which payment account for attendees to pay. In the case that you had two different payment options available for one account, how the system know which account to pay? |
|
Thanks so much Garth! I believe our web developers can use code to determine which account registrants will send funds to: by asking registrants whether they are from Canada, from the US, or other country. The code sends them to the right email/payment set up. Sound right? |
|
That might work. Here are my recommendations for modifying Event Espresso Core: 1. Use WordPress Hooks and Filters Event Espresso is built with extensibility in mind. Utilize the available WordPress action hooks and filters to add or modify functionality without altering the core files. This ensures compatibility with updates and reduces the risk of breaking existing features. All actions are prefixed with either AHEE__ (Action Hook Event Espresso) or FHEE__ (Filter Hook Event Espresso) so if you search for either of those strings in a text editor/IDE you’ll find all of our hooks. If you looking to record a purchase only when its paid you’ll likely want to use a hook on the thank you page, for example: AHEE__thank_you_page_overview_template__top Each of those action hooks is passed the EE_Transaction object which you can use to confirm if payment has been made, there are some details here: Your team can also request additional hooks if necessary. 2. Leverage Add-ons or Custom Plugins 3. Follow Coding Standards 4. Document Your Changes 5. Test in Staging Environments 6. Avoid Hardcoding 7. Contribute to Event Espresso Development 8. Monitor Updates and Release Notes 9. Use Version Control Does that help? |
|
You must be logged in to reply to this support post. Sign In or Register for an Account