• Hi,

    we have one problem: Setting up PayPal as a payment method, how do we set the return URL, after the payment is done to redirect to the events single page?
    At the moment, always the return URL which is set in PayPal, is used.
    But normally, when you book an event with the events manager, you stay on the same single-event page with the suffix #em-booking (i.e. http://www.domain.com/event-test-2017-06-09/#em-booking)
    And there the customer is shown the confirmation message. I asked the developer, but since our licence for the pro version is older than 1 year, they only could tell us, that there is a hook for the return url.

    So the question is: Would it be possible to set the return URL, coming back from PayPal, dynamically to the right page the customer is coming from?

    What I also don’t really understand is why in the manual it is said that the return URL should be set to an URL of the wordpress-backend (/wp-admin/admin-ajax.php?action=em_payment&em_payment_gateway=paypal)

    Hope, someone can help here?

    Best regards

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Support angelo_nwl

    (@angelo_nwl)

    can you re-post this in the pro forum instead for us to help you better?

    Thread Starter CorvoDaud

    (@corvodaud)

    Hi,

    as mentioned, the licence is not active anymore, so we’d need to renew it without knowing for sure, if it would even work or if the plugin doesn’t allow for that?

    But if you say, that it is not possible otherwise to get some kinde of manual of the hook, I’ll need to confer with our customer first.

    Best regards

    I think the function you want to filter is em_gateway_paypal_get_paypal_vars.

    Setting $paypal_vars[‘return’] to the URL you want should work.

    Thread Starter CorvoDaud

    (@corvodaud)

    Hi,

    cool, thank You very much, I will try that and see if I can get a working result 🙂

    Best regards

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Set PayPal return URL to use dynamic address’ is closed to new replies.