Checkout Sessions

Archetype's Backend Utilities

Create Checkout session

Description

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)

Arguments

Argument

Description

uid

Your custom UID that you've generated for the user. Make sure this correlates to the UID you've mapped to Archetype.

tier_id

The tier_id field inside the product that the user clicks on or wants to subscribe to.

Response

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.


Did this page help you?