Skip to main content
Set up client side encryption for eWay rapid

eWay rapid customers are required to use eWay's client side encryption with NationBuilder.

Updated over a week ago

Enable eWay encryption

There are two steps necessary to enable client side encryption.

1. Add your encryption key to your payment processor settings. You can get your public key by going to your "MyEway" and then going to My account > Client Side Encryption.ย 

2. You'll then need to add the below javascript to either the donation page template in your theme, or the page template for your individual donation pages.

<script> $(document).ready(function() { $(".donation_form").attr("data-eway-encrypt-key", "{{ page.donation.merchant_account.public_encryption_key }}"); $("#donation_card_number").attr("data-eway-encrypt-name", "EWAY_CARDNUMBER"); $("#donation_card_verification").attr("data-eway-encrypt-name", "EWAY_CARDCVN"); var script = document.createElement("script"); script.src = "https://secure.ewaypayments.com/scripts/eCrypt.js"; document.head.appendChild(script); }); </script>

Related HOWTOs

Did this answer your question?