If you want to create a checkout session in your backend and not on your frontend, you can do so with our backend SDKs.
To get started on integrating the SDK to your backend, go over to Configuring the SDK .
checkout_url = archetype.create_checkout_session(uid=uid,tier_id=tier_id)
Your custom UID that you've generated for the user. Make sure this correlates to the UID you've mapped to Archetype.
The tier_id field inside the product that the user clicks on or wants to subscribe to.
This returns a url as a string that you can then send to your end user.
Interested in the frontend Checkout Session?
Check out Pricing Integration for more details on doing this inside your site.
Updated about 2 months ago