- How to connect Israeli credit card processing and automatic tax invoicing (Sumit / OfficeGuy) to your site using Claude Code: client-side tokenization, server-side charging, VAT, and recurring billing.
With Sumit, the customer's card details never pass through your server. Tokenization happens on the client side, and your server receives only a one-time token, so you process payments without ever touching raw card data.
To collect payments on your website and issue automatic tax invoices in Israel, Sumit is the clean solution: the customer enters their card, tokenization happens on the client side directly with Sumit, your server charges using a one-time token, and Sumit automatically issues a tax invoice/receipt with the correct VAT. This way you process payments without the card ever touching your server, and without connecting a separate payment processor and invoicing service. Here is how to do it right, including the pitfalls.
Why Sumit and Not Just a Payment Processor?
Most payment processors let you collect money, but you have to handle invoicing on your own. Sumit (formerly OfficeGuy) combines both: payment processing plus an Israeli tax invoice/receipt, with Hebrew and VAT built in. Fewer moving parts, fewer things that can break.
The Right Flow (3 Steps)
Customer (browser) Your server Sumit
│ enters card │ │
│ ── tokenization ───────────────────────────────────────►│ (card never touches your server)
│ ◄── one-time token ─────────────────────────────────────│
│ ── sends token ──────────────►│ │
│ │ ── charge with token ──►│
│ │ ◄── approval + invoice ─│
│ ◄── "paid + invoice" ─────────│ │
The key principle: tokenization on the client side. The card travels directly from the browser to Sumit, and your server receives only a one-time token. You never hold card details.
Step 1: Client-Side Tokenization
On the payment page, a small piece of code sends the card details directly to Sumit and receives a one-time token. Card details never pass through your API, only the token does.
Step 2: Server-Side Charge
The server receives the token and processes the charge with Sumit. This is where the critical settings come in:
- VATIncluded: true: the amount you send already includes VAT, so the invoice comes out correctly (for example, 885 ILS = 750 + VAT).
- DocumentType: "InvoiceAndReceipt": automatic tax invoice/receipt generation.
- Currency (ILS/USD/EUR) and invoice language as needed.
Step 3: Automatic Invoice
After a successful charge, Sumit generates the invoice and returns a link to it. Save it, send it to the customer by email, and that is it, payment processing and invoicing in one operation.
Standing Orders (Recurring Payments)
For subscriptions or recurring payments there is a dedicated standing-order API. An important tip: AuthoriseOnly, which validates the card without charging it, to confirm the card is valid before the first charge. This prevents embarrassing failures down the line.
The Pitfalls (Save Yourself the Trouble)
- Double or missing VAT if VATIncluded is not set correctly. Always check the invoice against the amount charged.
- Sending card details to the server instead of a token is a security mistake. Always tokenize on the client side.
- Not testing with a test card before going to production. Sumit provides test cards, use them.
- Invoice language or currency not configured, leaving international customers with an incorrect invoice.
How to Build This in Practice with Claude Code
Claude Code builds the payment page and the charge flow from instructions: you give it the tokenization and charge flow (or the ready-made kit), it writes the code, and you just fill in your Sumit keys and test with a test card. The same principle of a clean middleware layer that we saw in the appointment scheduling system we built.
The Bottom Line
Connecting payment processing and Israeli invoicing to your website is not a weeks-long project. With Sumit and the right flow, client-side tokenization, server-side charging, automatic invoicing, you collect payments securely and issue a tax invoice in a single operation. Want to implement it? Get in touch or book a 1-on-1 private lesson where we will connect the payment processing directly on your site.

