Wispo Elements SDKStripe-like Appearance API · PCI-DSS L1 Vault
WISPO ELEMENTS
CARD
Tokenized Card Input
•••• •••• •••• ••••
Cardholder
ALEX MORGAN
Valid Thru
MM / YY
Security Code (CVV / CVC)PCI-DSS SAQ-A Split Elements
•••
CARD
Rosenwald Technologies OÜ · Merchant of RecordPCI-DSS L1
Digital SaaS

Test Subscription Plan

Recurring monthly SaaS access with Balkan & EU MoR fiscalization

Standard UI
Subtotal€15.00
RSPDV (Porez na dodatu vrednost) (20%)€3.00
Total Due Today€18.00
pi_wsp_initializing...
syncing...
Appearance API:

Wispo Card Elements

Powered by Wispo Vault & Payment Intents API

Mounting...
or pay with card
CARD
08 · Buyer Classification
// npm install wispo
import { loadWispo } from "wispo/elements";
import {
  Elements,
  CardNumberElement,
  CardExpiryElement,
  CardCvcElement,
  GooglePayElement, // 1-line Google Pay button synced with MoR tax
  TaxElement, // Drop-in GeoIP + B2B VAT Compliance
  useWispo,
  useElements,
} from "wispo/react";

const wispoPromise = loadWispo("pk_test_...");

const appearance = {
  theme: "night",
  variables: {
    colorPrimary: "#10b981",
    borderRadius: "12px",
  },
};

export function CheckoutForm({ clientSecret }: { clientSecret: string }) {
  return (
    <Elements wispo={wispoPromise} options={{ clientSecret, appearance }}>
      <GooglePayElement
        options={{ buttonColor: "black", buttonType: "pay" }}
        onSuccess={(pi) => console.log("Paid via Google Pay:", pi.id)}
      />
      <TaxElement />
      <div className="mt-3"><CardNumberElement /></div>
      <div className="grid grid-cols-2 gap-3 mt-3">
        <CardExpiryElement />
        <CardCvcElement />
      </div>
      <PayButton />
    </Elements>
  );
}

function PayButton() {
  const wispo = useWispo();
  const elements = useElements();

  async function handlePay() {
    if (!wispo || !elements) return;
    const { paymentIntent, error } = await wispo.confirmPayment({
      elements,
      confirmParams: {
        payment_method_data: {
          billing_details: { name: "ALEX MORGAN", email: "developer@wispotech.com" },
        },
      },
    });
  }
  return <button onClick={handlePay}>Pay Now</button>;
}