-
Notifications
You must be signed in to change notification settings - Fork 143
Description
It's not mentioned what the consequences are of not respecting user spending limits, mentioned here:
https://docs.apify.com/platform/actors/publishing/monetize/pay-per-event#respect-user-spending-limits.
Also, the instructions mentioned seem to only apply to the custom named events, and not to the synthetic default dataset item event apify-default-dataset-item, while the synthetic event is now recommended and mentioned under best pratices.
In the examples, you can see the custom event:
const chargeForApiProductDetail = async () => {
const chargeResult = await Actor.charge({ eventName: "product-detail" });
return chargeResult;
};
But how to respect user spending limits if you use the synthetic default dataset item event.
It might also be good to add the need for a check here and here.
Whenever I get a ticket about a dev not having respected the spending limits of the user they are always very surprised and unaware.
See Slack thread where a change to the docs was also suggested, here