Tips and Tricks HQ Support Portal › Forums › WP eStore Forum › WP eStore General Questions › Which is a better way to access customers?
Tagged: 3rd Party, Customer Database, estore customer, method api
- This topic has 7 replies, 3 voices, and was last updated 9 years, 6 months ago by wzp.
-
AuthorPosts
-
May 17, 2015 at 11:28 pm #12647HERGOMember
Does the plugin have APIs to access customers easier? or is there a good way to modify customers programatically except for handling tables in SQL directly?
May 17, 2015 at 11:30 pm #70076wzpModeratorWhat are you trying to do?
May 18, 2015 at 6:20 am #70077HERGOMemberI am thinking of trying to store serials to eStore, or I’ll have to make another database in 3rd party system to store them. That’s why the serials are generated automatically by another system soon after purchase.
Planning flow:
1) A user purchases our product(s) using Paypal.
2) WordPress(with eStore) validates his PDT from Paypal, save his information in eStore.
3) eStore notifies the PDT to 3rd party licensing system.
4) The licensing system generates his licenses that are encoded with his email and name extracted from PDT.
5) The licensing system sends his licenses by email.
6) The licensing system updates his licenses to his serial field of customers in eStore.
May 18, 2015 at 11:46 pm #70078adminKeymasterSteps 1 to 5 should be covered with the discussion you are having in the following post:
The 6th one will be a little tricky. Where is this 3rd party license system/script running? On the same domain where eStore is running?
May 20, 2015 at 1:28 am #70079HERGOMemberThanks for your reply. The 3rd party license system is currently working on a subdomain, but fortunately it is composed of our own codes. That’s why we are flexible and I can move the all scripts to the same domain on the same server where eStore is running if necessary.
from:
[http://www.domain/]
[http://license.domain/]
to (if necessary):
[http://www.domain/]
[http://www.domain/license/]
May 20, 2015 at 11:05 pm #70080adminKeymasterBoth should be fine I think. You will need to be able to insert data into the eStore database. As long as you can do that, you will be fine.
May 21, 2015 at 2:34 am #70081HERGOMemberDo you have any helper methods or helper php codes for manipulating the tables easily in eStore plugin? I mean, I am wondering how to design the code to access the table. I’ll have to write at least a few scripts to do that even if you give me good references, but if eStore provides some methods that update it easier in the database, I could use them.
May 21, 2015 at 7:33 pm #70082wzpModeratorWordPress already has a way for you to access any of the tables:
-
AuthorPosts
- You must be logged in to reply to this topic.