Thank you.
And yes we have dev docs and api docs. Some developers are doing cool things with them.
Dev https://developer.surecart.com/
API https://api-docs.surecart.com/
Hopefully that gets there.
Thread Starter
Jakson
(@jaskon)
Thanks Adam – Super detailed docs!
Think I found the page where they’ll be here right? – https://developer.surecart.com/docs/events/actions
The cupboard is bare for now but assume this is where you’ll list all the actions?
Basically looking for SureCart’s equivalent of woo’s “woocommerce_order_status_completed”
Edit! Found it now! https://developer.surecart.com/docs/events/Actions/order-actions
-
This reply was modified 2 years, 9 months ago by
Jakson.
Hi Jackson!
Happy to help here! It sounds like you want to use our purchase hooks (surecart/purchase_created). This is triggered for each product in an order.
We abstract away many of the complexities that can come with integrating with an ecommerce platform. Instead of needing to keep track of subscription changes, order statuses, refunds and any other types of actions that can affect “access” to a purchase, we instead abstract them to a purchase model.
You can read more about these, here:
https://developer.surecart.com/docs/guide/purchase-integrations/overview
Can you give me a bit more info on what you want to accomplish? I’m happy to help get you in the right direction.
Thread Starter
Jakson
(@jaskon)
@jaskon Are there any sample PHP code for using these hooks, to get customer name, email, and order fields, etc? An example PHP client library for the API? The dev docs are very sparse.