Can gift code purchases auto-redirect to gift code page?

Hi guys,

Having my first play with the gift code functions. So far so good, and it works, BUT I don’t love the process. I want users to pay for their gift code (off-site, PayPal), and then when returned to the site they are sent to the page where the gift code actually is.

As it stands, a user must fill out the fields, click the checkout button (a PayPal checkout in my instance), then after completing payment the user is returned to the same page with a message “your payment was successful, click here” or similar, which then takes them to their gift code.

This seems counter-intuitive. Is there a way to use the ‘success=’ shortcode attribute to automatically take the user straight to the page that they are purchasing access to? E.g. the page that holds their gift code.

I have tried just setting the restricted page’s URL with the ‘success=’ attribute, but it doesn’t work. I assume this is because the ‘success=’ redirect occurs before the heavy lifting is done by s2M that actually approves the access to the page and generates the URL?

Any help here appreciated!