Two is a payment method tailored to handle businesses to business (B2B) payments. By adding Two into your Dintero checkout, you can offer customers a simple and high converting B2B payment method.Documentation Index
Fetch the complete documentation index at: https://docs.dintero.com/llms.txt
Use this file to discover all available pages before exploring further.
Payment Types
| Payment Type | Description | Use Case | EHF/ Electronic Invoice support |
|---|---|---|---|
two.invoice_b2b | Business-to-business invoicing | One-time invoices to companies. | Norway, Sweden, Denmark and Finland. |
How It Works
- Customer selects “Two - Business Invoice” payment at checkout.
- Billing information is collected (name, address, email, phone, country, organization number).
- Order verification via company representatives (handled by Two)
- A transaction is created in Dintero’s system.
- When the merchant captures the transaction, Two distributes the invoice to the customer.
- Customer pays the invoice to Two via their bank.
- Dintero settles the funds when they are received from Two.
Configuration
Enable the Two payment type in the session configuration when creating a checkout session.Configuration Options
| Option | Applies To | Type | Description |
|---|---|---|---|
days_until_due | All types | Integer (0-365) | Number of days until the invoice is due. Default: 14 days. |
See related documentation for more information about creating payment sessions:
Verification
After the end user finishes the payment form in the Dintero checkout they are redirected to Two’s customer verification page. The specific method Two employs (e.g., OTP via SMS/email, or Open Banking check) is determined dynamically by Two’s risk assessment based on:- The representative’s details
- The buyer’s company profile
- The order amount
- The customer completing the payment needs to verify their identity
- A legal representative of the company must also verify — Two’s hosted verification page will display a list of known legal representatives of the company. The customer can then contact one of those individuals and ask them to verify on their behalf. The legal rep receives a verification request (via SMS or email) and completes their own verification step.
- The order is only approved by Two once both the customer and a legal representative have completed verification. The payment is not rejected outright — the buyer is given the opportunity to get a legal rep to co-verify.
Transaction Lifecycle
Two transactions are automatically authorized upon successful verification.| State | Description |
|---|---|
| AUTHORIZED | This is the initial successful state. |
| CAPTURED | Two will send an invoice to the customer’s company. |
| FAILED | Payment could not be created. |
| PARTIALLY_REFUNDED | A partial refund has been issued. The remaining amount is still valid. |
| REFUNDED | The full transaction amount has been refunded. |
| VOIDED | The transaction has been cancelled before it was captured. |
Refunds and Cancellations
- To cancel an invoice, cancel (void) the transaction is in the AUTHORIZED state.
- Partial refunds can be issued while the transaction is in the CAPTURED state.
- For each refund on a transaction, a credit note is created and sent to the customer’s company.
Invoice Dates
- Invoice issue date: The date of the capture.
- Invoice due date: Issue date +
days_until_duefrom capture (default: 14 days).
Billing Address Requirements
Two requires a billing address with all payment types.| Field | B2B |
|---|---|
first_name | Required |
last_name | Required |
address_line | Required |
postal_code | Required |
country | Required (ISO 3166 alpha-2) |
phone_number | Required |
email | Required |
business_name | Required |
organization_number | Required |
For Norway, the organization number is 9 digits. For Sweden, it is either 10 or 12 digits.
Liability
Unlike card-based payments, aCAPTURED status for Two does not mean the customer has paid — it means Two has sent the invoice to the customer’s company. The customer still needs to pay the invoice via their bank. Funds are not guaranteed to arrive in the merchant’s account until Two has collected payment and settled it to the merchant. If the customer does not pay, the merchant’s receipt of funds depends on Two’s collection process and the specific contract terms.