Page 1 of 1

PayPal Pro Forms Return URL Help - Billing Modification

PostPosted: November 3rd, 2011, 4:19 pm
by ryanseo
Hello guys,

I'm trying to configure the custom url on return while using PayPal's Sandbox for testing.

I'm trying to work with PayPal using s2member to return after a successful paypal pro billing modification to a template that will show them the proper template they need. Within this template is supposed to be 3 options based on the return of the updated billing modification and out 1 of 3 forms for them to create a post (conditonalized based on current updated role of user).

I've looked at a couple of other threads and saw a filter to use:

Code: Select all
add_filter ("ws_plugin__s2member_redirection_url_after_modification", "my_redirection_url_after_modification");
function my_redirection_url_after_modification ($s2member_default_value, $vars = array ())
    {
        return ($my_custom_url = "http://example.com/thanks-for-upgrading/");
        // print_r($vars); for debugging, if you need more information before creating this URL.
    }


This doesn't seem to be working for me on the billing update modifications pro forms.

Also, when I try to add the success="returnurltosendto" parameter it doesn't return to the URL placed in this.

Is there something I'm doing wrong? I noticed that some people are saying to enable an option within Web Payments Pro that allows you to have a Auto Return PDT/Identity Token , but I don't see this option anywhere within the Sandbox. Is this available to the sandbox? Thanks

Re: PayPal Pro Forms Return URL Help - Billing Modification

PostPosted: November 3rd, 2011, 4:21 pm
by ryanseo
Sorry, I meant to say that using the success="returnurltosendto" was used within the new user paypal pro forms , not the billing modification, and that doesn't work either.

From my understanding, I'm using both of these in the right context but they don't seem to be working. I may be missing steps altogether.

Re: PayPal Pro Forms Return URL Help - Billing Modification

PostPosted: November 3rd, 2011, 4:44 pm
by ryanseo
I found the Settings within the Sandbox Test PayPal Store for my business account and set the proper PDT/Identity Token and plugged it into my PayPal settings within PDT/Identity Token settings in PayPal Options and it still doesn't seem to want to do any custom return url authorization.

Re: PayPal Pro Forms Return URL Help - Billing Modification

PostPosted: November 3rd, 2011, 7:22 pm
by ryanseo
This has been figured out, I had return="" instead of success="" , I had put success="" and it didn't work so I tried return="" as a safety just to see, nothing happened, so thats when I did my latest post after setting up PDT/Identity Tokens. Well, I forgot to re-edit my codes with success="" instead of return="" so it wasn't registering anything, now it works 100%. Sorry folks! Doh! lol

Re: PayPal Pro Forms Return URL Help - Billing Modification

PostPosted: November 3rd, 2011, 7:23 pm
by Eduan
Glad you figured it out! :)

Re: PayPal Pro Forms Return URL Help - Billing Modification

PostPosted: November 4th, 2011, 12:26 am
by Cristián Lávaque
Thanks for reporting back, Ryan. I'm glad you sorted it out. :)