I have a solution where the user will select a bundle of items and services where they come from different merchants. One of the merchants requires the usage of Accept.js of Authorize.Net. https://developer.authorize.net/api/reference/features/acceptjs.html to obtain a payment nonce.
The Merchant provides me with a client Key and Login ID, used by Accept.js’s Dispatch Data Method, and by calling Accept.dispatchData(secureData, responseHandler) a payment nonce is returned. I take this payment nonce and pass it to the Merchant through its API “PlaceOrder” call.
The issue with Accept.js is that it requires an input form on a website, where payment information (credit card) is intercepted and sent to Authorize.Net to generate the payment nonce. Unfortunately, the payment information that I have is already stored in a database and I am unable to use a web form. I must pull the data from the database, and send the payment information programmatically directly through API to Authorize.Net to get a payment nonce. I cannot find such an option. Is this possible? For example:
merchantProduct = GetMerchantProduct()
ccInfo = GetCCInfoFromDatabase()
paymentNonce = AuthorizeNetGetPaymentNonce(MerchantKey, MerchantLogiID, ccInfo)
placeOrderToMerchant( merchantProduct, deliveryAddress, paymentNonce)