Hi everyone
I really hope someone can help with the following issue.
I use S2member with a small local unrecognized gateway and I’m trying to to create my own IPN page which does the following:
- once the user hit the “buy now” button he is redirected to an external gateway page and make the payment
- after the payment he is redirected back to my website to the IPN page which verifies the transaction and that a successful payment was made, and if everything is ok it generates an invoice and then:
- check if the user logged in and if yes:
3.a) update his level from 0 to 1 or 2, depends on the subscription type
3.b) set an EOT - here is the problem: if the user is not logged in, then he needs to sign up, but once he finishes to fill in the registration fields he’s redirected and I don’t know how to repeat steps 3, 3a and 3b after this user signed up and logged in.
in other words, how does S2member recognize now that this user has already paid. in step 3 I got post parameters from the gateway and if the user logged there’s no problem (open registration / level 0) is open.
the problem is only when the user is redirected to sign up.
please help
I’m not a pro and I learned everything from the internet so if you can explain me the concept in plain english then I might know what to look for.
many thanks
Idan