When you pull subscriber info from Spreedly you’ll want to remember the token that is returned as part of the subscriber’s data. The token is used to generate the “subscriber account” url that you may want to show up on your site. Let’s say your customer purchases a recurring subscription. Then later they want to change some things like:
The “subscriber account” url allows them to make these changes. It looks like this:
https://spreedly.com/meresheep/subscriber_accounts/4064324532972e2e1165628630f178ec242e3734
where “meresheep” should be replaced with your url suffix and “4064324532972e2e1165628630f178ec242e3734” should be replaced with the token of the subscriber in question.
It’s also worth noting that you might want to override the return url for the account page. In that case, you can pass a return_url parameter in the url like so:
https://spreedly.com/meresheep/subscriber_accounts/4064324532972e2e1165628630f178ec242e3734?return_url=http://meresheep.com/users/fred
The link at the bottom of the account page will now bring your customer to the return_url you specified.