Digital SaaS
Standard UITest Subscription Plan
Recurring monthly SaaS access with Balkan & EU MoR fiscalization
Subtotal€15.00
PDV (Porez na dodatu vrednost) (20%)€3.00
Total Due Today€18.00
pi_wsp_initializing...
syncing...Appearance API:
// 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>;
}