Marking payment page with code
On payment pages the representative reads nothing and runs no actions. Payment pages that don't match the address pattern can be marked in code.
- Developer
How do I mark the payment page with code?
On payment pages, the agent reads no information and executes no actions. Who can do this: Developer. The window waits only in the “I’ll be here when your payment is done” state; the page is not read, context is not sent, and actions do not run. You can mark payment pages that do not match the address pattern with code. Pages containing checkout, odeme, payment, or sepet/onay in their URL are already considered payment pages.
<script>
SmartOperator.odemeSayfasi(function () {
return document.body.classList.contains("odeme-adimi");
});
</script>
Steps
Pages containing
checkout,odeme,payment, orsepet/onayin their URL are already considered payment pages.Additional address parts can be added from the panel here.
In cases where the address cannot distinguish, call
SmartOperator.odemeSayfasi(fn):fnreturnstrue/falseindicating whether the current page is a payment page.