Reproduced same sample code in local cmputer. First resulted
Invalid response Response : E00117 OTS Service Error 'Field validation error.' in Authorize Net
Changed token(Coppied from acceptjs.html dov) throws
ERROR : Invalid response Response : E00114 Invalid OTS Token.
Scenario- When a new user register into website, a profile should create in Authorize Net. withou payment profile. Hope cust profile accept with none will work.
But how to obtain the dataValue and data Description
// Set the payment data for the payment profile to a token obtained from Accept.js $op = new AnetAPI\OpaqueDataType(); $op->setDataDescriptor("COMMON.ACCEPT.INAPP.PAYMENT"); $op->setDataValue("119eyJjb2RlIjoiNTBfMl8wNjAwMDUyN0JEODE4RjQxOUEyRjhGQkIxMkY0MzdGQjAxQUIwRTY2NjhFNEFCN0VENzE4NTUwMjlGRUU0M0JFMENERUIwQzM2M0ExOUEwMDAzNzlGRDNFMjBCODJEMDFCQjkyNEJDIiwidG9rZW4iOiI5NDkwMjMyMTAyOTQwOTk5NDA0NjAzIiwidiI6IjEuMSJ9"); $paymentOne = new AnetAPI\PaymentType(); $paymentOne->setOpaqueData($op);
Is there a way to create this token?
Or else Is it possible to create a customer profile with accepting nonce. Just personal infomation like name, phone and zip code?
Thanks for your help
04-18-2020 10:08 AM