Payments - CloudPayments#
These endpoints support payment integration with CloudPayments.
/api/payment/cloudpayments/success/
/api/payment/cloudpayments/webhook/
Successful Payment#
/api/payment/cloudpayments/success/
Request this endpoint after a successful payment. The CloudPayments frontend script runs a callback function after the successful payment, which can send a request to this endpoint.
The endpoint returns the URL to a purchased astrological report.
Request#
Method: GET
It has the same parameters as the /api/payment/stripe/checkout/
(see details), plus it has one required parameter - invoice_id
. It is the ID of the order, which is passed by the frontend app to the CloudPayments script.
The endpoint requests CloudPayments to check if this endpoint was successfully paid within the last 10 minutes. It also checks the validity of chart data for the astrological report.
Response#
{
"report_url": {...}
}
if you use the chatbot you should provide it with the url keys from the given link see here
Webhook Endpoint#
/api/payment/cloudpayments/webhook/
This is a technical endpoint for CloudPayments callbacks. It is not used by the app.