Card

Raw card payment. The merchant collects card details directly and sends them to Prism. Requires PCI compliance — if you are not PCI compliant, use Connector Token instead.

const paymentClient = new PaymentClient(config);

const response = await paymentClient.authorize({
    merchantTransactionId: "txn_001",
    amount: { minorAmount: 1000, currency: Currency.USD },
    paymentMethod: {
        card: {
            cardNumber: { value: "4111111111111111" },
            cardExpMonth: { value: "03" },
            cardExpYear: { value: "2030" },
            cardCvc: { value: "737" },
            cardHolderName: { value: "John Doe" },
        },
    },
    captureMethod: CaptureMethod.AUTOMATIC,
    address: { billingAddress: {} },
    authType: AuthenticationType.NO_THREE_DS,
    returnUrl: "https://example.com/return",
});

Last updated

Was this helpful?