• I am using s2Member’s feature that allows a non-member to purchase access to a specific page. I am passing some variables to PayPal in the button code. (I had originally wanted to use os0, os1, on0, on1 but s2Member uses these for its own purposes. PayPal has so many PDT variables, however, I’m sure I’l be able to find one I can use.)

    On the return from PayPal, I would like to access and use some of these variables to tailor content on the page that has been purchased.

    My question is, how in a WordPress page, can I access PayPal PDT variables on the protected page that my user is returned to after coming back from PayPal (via s2Member’s return page). Thank you.

    https://www.ads-software.com/plugins/s2member/

Viewing 1 replies (of 1 total)
  • Thread Starter amillsmcewan

    (@amillsmcewan)

    I forgot to mention that I’d also like to be able to access some of the PayPal variables such as customer (payer) name, address, phone number, email address etc.

    Does anyone have any sample code to share that retrieves the relevant PayPal PDT variables (possibly via using a function / hook) and makes them availabe for use or display on the protected page to which the user has now bought access? Thank you.

Viewing 1 replies (of 1 total)
  • The topic ‘Accessing PDT Variables on Return from PayPal’ is closed to new replies.