Hello all,
From checkout page I redirected to Chargify subscription URL and after subscription I redirected to my site with Chargify ID and Chargify Subscription ID. Then I want to insert those value in a custom table (in NOP Database) with current userid. For that I used below code -
Customer_Id = _workContext.CurrentCustomer.Id;
I checked from the database that I am not getting proper custome id.
Example:
When I register in NOP site, customer id is 504.
Then after Login I redirected to chargify and when I came back from chargify, in our thanks controller I wrote that above line to get the customerid, but it's showing 506. In database it's a guest userid, all fields have null value.
Now my question is if I redirected to some other site then how can I get the current loggedin userid or user details when I come back?
If it's not possible then can I pass my current customerid to chargify and get back that customerid as parameter just like Chargify ID and Chargify Subscription ID? Can I use Chargify custom field value to store my NOP Customer id in Chargify?
Thanks