Payments - Free Checkout#

The following endpoint is used in case of free checkout (when the front-end app runs as a free SaaS).

/api/payment/free/checkout/

Request this endpoint instead of requesting Stripe checkout (/api/payment/stripe/checkout/). This endpoints is protected (see access levels). It can only be accessed by an authenticated user with any of the access levels.

Request#

Method: GET

It has the same parameters as the /api/payment/stripe/checkout/ (see details).

The endpoint checks if data provided is correct and return report_url_params - a data for getting the astrological report, signed by the hash. In addition, it adds transaction into internal DB.

Response#

{
    "report_url_params": "date=2023-9-24&time=3:17&tz=5.0&ln_d=69&ln_m=13&dir_ln=e&lt_d=41&lt_m=16&dir_lt=n&hash=XXX"
}

Based on that report_url_params you may construct the report URL in your frontend app and use it in the last stage of conversation with the chatbot see here