---
title: "Widget library: Pay with Remitian and Pay All"
description: Embed Remitian payment flows in your product as modals with the JavaScript SDK, so users never leave your app.
---

[Skip to content](https://help.remitian.com/widget-library-pay-with-remitian-and-pay-all#main-content)

English

Show submenu for translations

[More support](https://help.remitian.com/kb-tickets/new?hsLang=en)

![1 color shield - light](https://help.remitian.com/hs-fs/hubfs/1%20color%20shield%20-%20light.png?width=200&height=50&name=1%20color%20shield%20-%20light.png)

Open main navigation

Close main navigation

- English
  
  Show submenu for translations
- [More support](https://help.remitian.com/kb-tickets/new)
- [Contact us](mailto:support@remitian.com)

[Contact us](mailto:support@remitian.com)

 How can we help you?

- There are no suggestions because the search field is empty.

1. [Help Center](https://help.remitian.com/?hsLang=en)
2. [API](https://help.remitian.com/api?hsLang=en)
3. [Embedded experiences](https://help.remitian.com/api?hsLang=en#embedded-experiences)

# Widget library: Pay with Remitian and Pay All

## Embed Remitian payment flows in your product as modals with the JavaScript SDK, so users never leave your app.

### What it is

The Widget Library lets you embed Remitian payment experiences inside your platform with the Remitian JavaScript SDK. Each widget opens as a modal in your app, so users complete the task without being sent to another site.

| Widget | What the end user does |
| --- | --- |
| Pay with Remitian | Completes one tax payment, from tax entity and bank account setup through approval. |
| Pay All | Approves, in one session, every scheduled payment of a tax entity that is waiting for their approval, resolving tax authority connections and the funding bank account along the way. |

You can preview the Pay with Remitian flow in the Widget Library section of the Developer Portal before you integrate.

### When you need it

- You want users to pay or approve tax payments inside your product instead of building those screens yourself.
- You want new SDK releases without rework: the `v1` CDN script always serves the latest 1.x release.

### How it works

1. Install the SDK from npm (`@remitian/widget-sdk`) or load the CDN script.
2. Optionally generate a passwordless token server-side for the user. Without one, the widget shows the Remitian login.
3. Build the config with your own external ids. Pay with Remitian supports four pre-fill levels: **minimal** (only the tax payment external id, when the records already exist), **tax entity** (individual or business details), **bank account** (ACH details) and **full** (everything, so the widget can create missing records).
4. Call `open()` to show the modal. `exit()` closes it for reuse and `destroy()` removes it.
5. Handle the callbacks: `onSuccess` (flow completed or payments approved), `onExit` (widget closed), `onError` (something failed) and `onEvent` (every widget event, for analytics).

### Common questions

### Does Pay All create tax payments?

No. Create the tax entity and schedule its payments with the API first (individually or in a batch), then open Pay All with the same external ids. Pay All requires SDK version 1.1.0 or later.

### Does onExit mean the payment was approved?

No. `onExit` only means the widget closed. Treat a payment as approved only when it comes back in `onSuccess`, or when the API or a webhook shows its new status.

### Will pre-fill overwrite data the user already has?

No. Pre-fill is used only when the widget creates a record. The one exception: if an existing payment is pending approval and you pass a different amount or date, the widget shows the difference and lets the user choose.

### What happens on a partial failure in Pay All?

Both callbacks fire: `onSuccess` with the approved payments and `onError` with the failed ones, each with a reason.

**Full documentation**

- [Widget Library](https://docs.remitian.com/products/wqptjtsou5/qdy1ka6gys/index.html)
- [Developer Portal](https://docs.remitian.com/products/wqptjtsou5/2szsjobhlg/index.html)
- [Use Case 10: Passwordless Authentication Integration](https://docs.remitian.com/products/wqptjtsou5/ohovm4zxyn/index.html)

- [Accounting Firms](https://help.remitian.com/accounting-firms?hsLang=en#main-content)

    - [Account Management](https://help.remitian.com/accounting-firms?hsLang=en#account-management)
    - [Payment Management](https://help.remitian.com/accounting-firms?hsLang=en#payment-management)
    - [Client Management](https://help.remitian.com/accounting-firms?hsLang=en#client-management)
    - [APIs](https://help.remitian.com/accounting-firms?hsLang=en#apis)
- [Tax Payer](https://help.remitian.com/tax-payer?hsLang=en#main-content)

    - [Payment Management](https://help.remitian.com/tax-payer?hsLang=en#payment-management)
    - [Account Management](https://help.remitian.com/tax-payer?hsLang=en#account-management)
- [Frequently Asked Questions (FAQ)](https://help.remitian.com/frequently-asked-questions-faq?hsLang=en#main-content)

    - [Account Management](https://help.remitian.com/frequently-asked-questions-faq?hsLang=en#account-management)
    - [Payment Management](https://help.remitian.com/frequently-asked-questions-faq?hsLang=en#payment-management)
    - [KYC & KYB Frequently Asked Questions](https://help.remitian.com/frequently-asked-questions-faq?hsLang=en#kyc-kyb-frequently-asked-questions)
- [Video Library](https://help.remitian.com/video-library?hsLang=en)
- [API](https://help.remitian.com/api?hsLang=en#main-content)

    - [Getting Started](https://help.remitian.com/api?hsLang=en#getting-started)
    - [Authentication and security](https://help.remitian.com/api?hsLang=en#authentication-and-security)
    - [Setting up firms and taxpayers](https://help.remitian.com/api?hsLang=en#setting-up-firms-and-taxpayers)
    - [Tax payments](https://help.remitian.com/api?hsLang=en#tax-payments)
    - [Embedded experiences](https://help.remitian.com/api?hsLang=en#embedded-experiences)
    - [Events and reconciliation](https://help.remitian.com/api?hsLang=en#events-and-reconciliation)
    - [Troubleshooting and getting help](https://help.remitian.com/api?hsLang=en#troubleshooting-and-getting-help)
- [Changelog](https://help.remitian.com/changelog?hsLang=en#main-content)

    - [Remitian](https://help.remitian.com/changelog?hsLang=en#remitian)
    - [TaxPay](https://help.remitian.com/changelog?hsLang=en#taxpay)
    - [API](https://help.remitian.com/changelog?hsLang=en#api)

[![1 color shield - light](https://help.remitian.com/hs-fs/hubfs/1%20color%20shield%20-%20light.png?width=150&height=38&name=1%20color%20shield%20-%20light.png "1 color shield - light")](https://www.remitian.com)

© Remitian. The Standard for Tax Payments.

<https://www.facebook.com/> <https://www.twitter.com/> <https://www.instagram.com/> <https://podcasts.apple.com/> [mailto:email@email.com](mailto:email@email.com)

Copyright © 2025, Remitian Inc..