Happy Business Starts Here

Highlighted

How to pre-populate HPM 2.0 encrypted fields?

Hi!

I need to pre-populate this fields (creditCardExpirationMonth,creditCardExpirationYear and others) and according to the doc (https://knowledgecenter.zuora.com/CA_Commerce/T_Hosted_Commerce_Pages/B_Payment_Pages_2.0/K_Payment_...), I need to encrypt this fields.

Could you please tell me how can I encrypt this in javascript?

Thanks!