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.Customer.CheckoutSession( custom_uid=uid, product_id=product_id )
|custom_uid||Your custom UID that you've generated for the user. Make sure this correlates to the UID you've mapped to Archetype.|
|product_id||The product_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 1 year ago