Authorize.net
Set up Authorize.net for payment processing.
Updated
Set up Authorize.net for payment processing.
Updated
import dash from "@/lib/dash"
// Load the Authorize.net processor
await dash.payment.load()
// Tokenize card — uses Authorize.net Accept.js
const { token, descriptor } = await dash.payment.tokenize({
cardNumber: "4111111111111111",
expDate: "12/26",
cvv: "123",
})
// Complete checkout
const { order } = await dash.checkout.complete({
cartId: dash.cart.cartId,
shipping: { ... },
payment_token: { token, descriptor },
})
dash.payment.load() is called.
33: Card Code is required. The newer interface can show the box unticked while the classic setting is still ticked.