Reply
Highlighted
Contributor
Posts: 48
Registered: ‎06-08-2011

AcceptJS for ACH or Card in same form

[ Edited ]

Is there a way for Hosted AcceptJS to display both ACH or Card payment options for a payor in the same dialog, similar to the options in getHostedPaymentPageRequest? I only see where you specify which dialog to display, based on options passed in.

 

Bill

Highlighted
Posts: 333
Kudos: 59
Solutions: 36
Registered: ‎03-13-2017

Re: AcceptJS for ACH or Card in same form

Hi @martin1b

 

Currently we only support cards  for Hosted Accept.js . 


You can use the Accept.js with your custom UI to accept payments with Echeck . 

 

 

https://developer.authorize.net/api/reference/features/acceptjs.html#Integrating_Accept.js_into_Your...

 

 

<script type="text/javascript">
function sendPaymentDataToAnet() {
var authData = {};
authData.clientKey = "YOUR PUBLIC CLIENT KEY";
authData.apiLoginID = "YOUR API LOGIN ID";

var bankData = {};
bankData.accountNumber = document.getElementById('accountNumber').value;
bankData.routingNumber = document.getElementById('routingNumber').value;
bankData.nameOnAccount = document.getElementById('nameOnAccount').value;
bankData.accountType = document.getElementById('accountType').value;
}
</script>

 

We are working to add support for Echeck in Hosted Accept.js  but dont have a release date for it yet . 

 

Thanks

Anurag





Send feedback at developer_feedback@authorize.net