Skip to content

Open source, composable payments platform | PCI compliant | SaaS and Self-host options | Enables connectivity to multiple payment, payout, fraud, vault and tokenization providers | Uplifts authorization with intelligent routing and revenue recovery | Reduce payment processing costs with cost observability | Reduces payment ops with reconciliation

575 B
Raw Blame
-- Your SQL goes here

CREATE TABLE IF NOT EXISTS incremental_authorization (
    authorization_id VARCHAR(64) NOT NULL,
    merchant_id VARCHAR(64) NOT NULL,
    payment_id VARCHAR(64) NOT NULL,
    amount BIGINT NOT NULL,
    created_at TIMESTAMP NOT NULL DEFAULT now()::TIMESTAMP,
    modified_at TIMESTAMP NOT NULL DEFAULT now()::TIMESTAMP,
    status VARCHAR(64) NOT NULL,
    error_code VARCHAR(255),
    error_message TEXT,
    connector_authorization_id VARCHAR(64),
    previously_authorized_amount BIGINT NOT NULL,
    PRIMARY KEY (authorization_id, merchant_id)
);