Skip to main content

How to set up client side encryption for eWay rapid

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

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.

$(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 = "";

Related HOWTOs

How to connect a payment processor

How to create a donation page

Theme vs page level editing

If you’re unclear on how this feature works, please ask a question. If you would like to see changes to this feature, please submit a suggestion.