I’m working on integrating Authorize.Net in a React.js application and would like guidance on securely creating a customer payment profile using Accept.js to handle card details without them hitting my server.
My requirements:
Questions:
10-08-2024 12:43 AM
You’ll want to use Accept.js just to grab the opaqueData (it gives you dataDescriptor + dataValue, not the paymentProfileId directly). In React, load the Accept.js script, call Accept.dispatchData with your API Login ID + Client Key, and then send the opaqueData to your backend.
On the backend, use the Authorize.Net SDK (createCustomerProfile or createCustomerPaymentProfile) and pass that opaqueData—this is where you actually get the customerProfileId / customerPaymentProfileId.
Key point: card data never touches your server, only the token does. For PCI scope reasons, stick with this flow or look at Accept Hosted if you want it even simpler.
10-03-2025 07:34 AM