All Crowdin Apps can use one of the following payment models:
You can use Crowdin as a payment processor for subscription handling of your apps. To use payment via Crowdin, Contact Support Team and we will create a subscription for your Crowdin App.
To implement this payment processor, you need to use an API endpoint to return up-to-date information on the app subscription. You should also add a middleware to your Crowdin App that will limit the access to the app for users that didn’t subscribe.
In the middleware, you should make an API request to Crowdin and, depending on the result, implement one of the following actions:
200 OK – the subscription is active. Crowdin App must provide access to the functionality by the date specified in the response. This date should be stored within the app to reduce the number of requests to this API endpoint.
402 Payment Required – the subscription was not paid. In this case, restrict access to the app functionality and provide the user with a URL to a checkout page. You will get the checkout URL in the response.
404 Bad Request – the subscription was not found. It means one of several errors: a user removed a Crowdin App from the organization, or a subscription wasn’t defined for the app. In this case, you should restrict access to the Crowdin App.
To access the Crowdin App subscription API, the app must use the authorization method
crowdin_app in the App descriptor and use the received Access Token in the Authorization header.
"expires": "2022-12-19 12:00:00"
"message": "App identifier not found"
In the event of subscribing to a Crowdin App, a user will be directed to a checkout page with the app subscription details. Please note that the first payment amount might differ from the app subscription cost. The subscription cost of the app is proportionally prorated over a billing cycle, and, e.g., if a user subscribes to an app at the beginning of his billing cycle, he will pay the app’s subscription price in full. And if a user subscribes to an app in the middle of his billing cycle, he will pay only half of the app’s subscription price.
Let’s review the possible scenario below:
The total subscription price for a Crowdin App is $30/month. Suppose today is the 1st day of the month, and the next billing cycle starts on the 10th of the current month, so when subscribing to the app, a user will need to pay $10.
$30 / 30 days (billing cycle) * 10 days (prorate period) = $10
On the next billing cycle, the app subscription will be included in the user’s Crowdin subscription in full.