Fix purchase session wasn't being set with ajax