Filter emojis from custom fields
Problem
As indicated in this comment, Zuora does not support emojis in custom fields. If a custom field with emoji is present while creating or updating a subscription, the transaction fails and the customer cannot proceed with the purchase.
Proposal
Filter custom fields before sending the request to Zuora.
Few places where I found custom fields set during Order creation:
Zuora::Orders::CustomFields::CreateSubscription
Zuora::Orders::CustomFields::NewAccount
Subscriptions::EnableCloudLicensingForVersionService#execute
An optimal way could be to handle the filteration in Zuora::Client::Order::SanitizeParams
. The sanitizer module is invoked before Order is created in Zuora.
Result
Next steps (if any)
-
Identify filteration logic
How will we measure success?
Edited by Aishwarya Subramanian