nl_tokens: Depending on the current step in checkout the user s domain can be found in either the cart or the receipt .
pl_tokens: function getDomainNameFromReceiptOrCart ( receipt , cart ) { let domainRegistration ; if ( receipt && ! isEmpty ( receipt . purchases ) ) { domainRegistration = find ( <mask> ( receipt . purchases ) , isDomainRegistration ) ; } if ( cartItems . hasDomainRegistration ( cart ) ) { domainRegistration = cartItems . getDomainRegistrations ( cart ) [ 0 ] ; } if ( domainRegistration ) { return domainRegistration . meta ; } return null ; }