The Kademi payments API allows you to submit a request using ajax and returns a JSON object indicating success of failure and containing any validation messages. You can use this in conjunction with the jquery.forms plugin or by building an aajax request directly.
Getting EWay access credentials
- Start by registering with EWay - https://myeway.force.com/success/partner-registration
- Then follow the instructions here - https://eway.io/api-v3/#authentication - copied below...
- Log in to your Partner Portal account using the link below for your country
Navigate to Resources > Sandbox/Testing and click on ‘Request Sandbox’ Note: Skip this step if you already have a Sandbox account
Navigate to the Sandbox using the link below for your country
Go to My Account > User Security > Manage Roles
Create role under name of “API KEY”
Go to My Account > User Security > Create User
Assign API KEY role to new user.
Choose a name (such as API Key) and set the email to something like firstname.lastname@example.org and choose a password.
Once the role is created, click ‘actions’ dropdown menu and click ‘View API Key’
Select the Rapid API Key, the password you set in step 8 is the API password for this key.
Note: Kademi uses the Direct Connection API - https://eway.io/api-v3/#direct-connection
This requires use of EWay's client side encryption or provide a PCI DSS compliance certificate. To use this you must obtain an encryption key from eway
More details here - https://eway.io/api-v3/#client-side-encryption
Kademi EWay Payment API
|name||The card holder's name||Joe Blogs|
|expiryMonth||Two digit month||12|
|expiryYear||Two digit year||23|
|totalAmount||The currency value to be paid||897|
|number||The card number||4444333322221111|
|cvn||The card's CVN number||567|