WordPress.org

Ready to get started?Download WordPress

Forums

PayPal Donations
[resolved] Return page option not working (9 posts)

  1. johnmatthews13
    Member
    Posted 1 year ago #

    I installed and set up this widget very quickly and it works very well. Nicely done.

    There is one minor issue with the "Return Page" option. I have created a "Thank you" page on my site and then copied the permalink into the return page URL field. When the person donating is finished on PayPal they are prompted with a "Return to my site.com" option. When that is clicked they return to my home page.

    Have I inserted the wrong URL in this field or is there something I need to do on the PayPal end to make this work properly? I checked PayPal and the only thing I can see there is my site URL. There is no option for defining a return page on the PayPal end.

    Thanks,

    http://wordpress.org/extend/plugins/paypal-donations/

  2. Johan Steen
    Member
    Plugin Author

    Posted 1 year ago #

    Hi,

    Well, you can actually define an URL on the PayPal end. If you click My Profile -> My Selling Tools -> Website Preference, you can enable auto return, and a return url.

    But the thing is, that if the button specifies a return URL, it should override and settings done at the PayPal end. Button defined return URL have priority over a default URL set at PayPal. Do you have a page where I can take a look at your button?

    Cheers,
    Johan

  3. johnmatthews13
    Member
    Posted 1 year ago #

    Thank you Johan. I have logged into my PayPal account and set up the options as you suggested. I would also be interested in making sure my button is programmed correctly as well.

    The URL for the page with the button is http://www.b2egroup.net. The button is located on the bottom left.

    When examining the source code at the very end of the PayPal transaction, the form handler on the PayPal end has the correct URL inserted in the action="" portion of the tag. The submit button does not have any JavaScript function attached to it as far as I can see in the source code. That said, upon clicking the "Return to..." button, I am still redirected to my homepage, and not the thank you page I have configured in the widget and also on PayPal. The URL that I am redirected to is as follows: http://www.b2egroup.net/?merchant_return_link=Return+to+Back+to+Eden+Group+Inc.&auth=AD45r7evqEiREHDqNryGzCIYL4XacZzBPhGL.5xFXr8.0NNvU5dZW7zCCi85IwuVoNiPiJD-eoJWfij4Ps8kBog&form_charset=UTF-8

    It looks like a different URL is being sent via the Get method. Thoughts?

  4. Johan Steen
    Member
    Plugin Author

    Posted 1 year ago #

    Hi John,

    The reason it is not working is that you are using a querystring as the return url (ie, an url based on .net/?something). That's why they return to your root url, as PayPal strips away the query string. I believe there might be an option to allow query strings, but I would need to look into that first. If it's possible to enable support for query strings, I'll add that feature to a new version.

    Cheers,
    Johan

  5. johnmatthews13
    Member
    Posted 1 year ago #

    That's Johan. That makes sense. We'll look into updating the Thank-you page so that it doesn't use the query string.

  6. Johan Steen
    Member
    Plugin Author

    Posted 1 year ago #

    John,

    For the next update, I've added a setting for the return mode. I think that should make it possible to use a return page with query strings.

    If you'd like, you can try it now, by getting the latest version from my GitHub, https://github.com/artstorm/paypal-donations
    or if not used to github, I can zip it for you if you want to try it. Let me know if it works in that case.

    It's a new mode under Extras (I'll probably rename that section to advanced) for setting the return mode. Using the last option, POST mode, should make query strings working.

    Cheers,
    Johan

  7. johnmatthews13
    Member
    Posted 1 year ago #

    Thank you Johan. Just yesterday we found an option for Permalinks which changed the format from query strings to something that looks more like a traditional URL. It now seems to work fine.

    I appreciate your support. The widget is working very well.

  8. johnmatthews13
    Member
    Posted 1 year ago #

    Johan. The widget is working well and I have received several donations successfully. Some on my donors are now asking about whether I support recurring donations. Have you considered adding this feature?

    I can see a way to do this on the PayPal end but it looks like a custom build of an HTML button which I would then past into my site. I'm assuming that would mean a replacement of your widget. I'd rather stick with your widget if you are considering this feature.

  9. Johan Steen
    Member
    Plugin Author

    Posted 1 year ago #

    Recurring donations is not something I've considered implementing before. But yes, by passing in a few more parameters to the button, that can done, so technically, no problem.

    It's not something planned for the upcoming release, but I can consider it for a future one, I wouldn't dare to give a time estimate though.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic