New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Return URL and Cancel URL Options #17

Closed
angelleye opened this Issue Feb 10, 2017 · 2 comments

Comments

Projects
None yet
2 participants
@angelleye
Owner

angelleye commented Feb 10, 2017

We need to add the following settings to the button module settings:

  • Return URL
  • Cancel URL

The user should be able to choose from a drop down list of their current WordPress pages to set these values.

If populated, they would map to the HTML form in the following fields...

<input type="hidden" name="return" value="$ReturnURL" />
<input type="hidden" name="cancel_return" value="$CancelURL" />

@angelleye angelleye added this to the 1.0.2 milestone Feb 10, 2017

@angelleye

This comment has been minimized.

Owner

angelleye commented Feb 10, 2017

If you need to see a sample of this we've done something similar in our PayPal for WooCommerce plugin. You can set the Cancel URL the way I'm requesting here.

@angelleye

This comment has been minimized.

Owner

angelleye commented Feb 10, 2017

@keyurptl I see you added the Return URL and Cancel URL fields here, but you just did it as text fields where the user would have to find the URL and copy/paste it into the field.

As mentioned above, what I want here is the ability for people to select from a drop down list of all the pages they have created in WordPress. They should see all the page titles in the drop down, and they could just choose that way, but the full URL would be used as the value for the HTML form.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment