Skip to main content
Orb supports Adyen as a payment gateway. Once Adyen is connected and a customer is mapped to it, Orb can collect payment on invoices through the Orb invoice portal and via auto-collection, using the payment methods enabled on your Adyen merchant accounts.

Setup

Connecting Adyen with Orb

Orb connects to your Adyen company account using a company-level API credential that you generate in your Adyen Customer Area. Orb then uses every active merchant account under that company, so you don’t enter merchant accounts one by one.

1. Create a company-level API credential in Adyen

  1. In your Adyen Customer Area, switch to your company account and go to Developers > API credentials.
  2. Create a new credential and set Credential type to Web service user.
  3. Give it the following Management API roles:
    • Accounts read: lets Orb list the merchant accounts under your company.
    • Webhooks read and write: lets Orb register the webhook it uses to track payments.
    • API credentials read and write: lets Orb set up the client key and allowed origins that the payment form needs.
  4. Also give it the Checkout webservice role, which Orb uses to create payment sessions, charge saved payment methods, and list stored payment methods. Orb doesn’t check this role when you connect, so if it’s missing, the connection succeeds but payments fail.
  5. Under Accounts, select Full company access.
  6. Save the credential and copy its API key.

2. Connect Adyen in Orb

  1. In the Orb dashboard, navigate to Settings > Integrations and select Connect to Adyen.
  2. Provide:
    • API key: the company-level API key from the previous step.
    • Company account ID: your Adyen company account code, as shown in the account selector of the Adyen Customer Area (for example, Orb-Inc).
    • Live URL prefix: required in live mode. This is the prefix Adyen assigns to your live API endpoints, found in Adyen under Developers > API URLs > Prefix.
  3. Orb validates the credentials, then automatically:
    • finds the active merchant accounts under your company and makes them available in Orb,
    • registers a single company-level webhook back to Orb (including the HMAC key used to verify it) that covers all merchant accounts in the company, including ones you add later,
    • adds the Orb dashboard, invoice portal, and customer portal as allowed origins, and
    • sets up the client key the portals use to show the payment form.
    You do not need to set up a webhook or client key yourself in Adyen.
Connect to adyen If the connection fails, check that the company account ID is correct, that the API key was created at the company level (not on a merchant account), and that it has all three roles listed above. The company must have at least one active merchant account. Each Orb account supports one Adyen connection.
In test mode, Orb connects to your Adyen test environment, so you can try the full payment flow safely with Adyen test cards. Live mode connects to your live environment and requires the live URL prefix.
Orb treats a successful authorization as payment received, so each Adyen merchant account you use with Orb should be set up for automatic capture. If your account uses manual or delayed capture, contact the Orb team before going live.

Using multiple merchant accounts

Once connected, the Adyen card on Settings > Integrations shows your Adyen company account and one row for each merchant account Orb found. Orb doesn’t attach merchant accounts to entities or pick a default when you connect. Until you choose them for each entity, Orb can’t collect payments through Adyen. To choose them:
  1. Navigate to Settings > Entities and open the entity.
  2. Under Payment accounts, select Add payment account and choose one or more Adyen merchant accounts.
  3. Select Make default on the account that should collect this entity’s invoice payments.
Removing a payment account from an entity disconnects that merchant account from the entity and removes the customer payment methods saved on it. You can’t remove an account while it has payments in progress. Orb picks the merchant account for each payment as follows:
  • Invoice payments go through the merchant account set for the customer on the invoice’s entity. If the customer has none, they go through the entity’s default payment account. To set a customer’s account, open the customer’s payment settings and choose a Payment gateway for each entity. Only accounts attached to that entity are listed.
  • Saved payment methods are always charged through the merchant account they were saved on.
  • Payments with no invoice, such as saving a payment method or buying credits, go through the default payment account of your default entity.
Adyen events from every merchant account in the company reach the same Orb webhook. Orb routes each one to the right entity using its merchant account code, and ignores events from merchant accounts that aren’t attached to an entity.

Configuring customers

When creating or updating customers in the Orb UI, select Adyen as the Payment Provider. Customer mappings can also be configured in the API by setting payment_provider to adyen. You do not need to supply a payment_provider_id. Adyen uses a shopperReference to anchor a customer’s stored payment methods, but Orb manages this for you (using the Orb customer ID), so mapping a customer to adyen is sufficient for Orb to collect payment once the account is connected.

Paying invoices

When a customer opens an invoice in the Orb invoice portal, Orb renders an Adyen Web Drop-in that displays every payment method enabled on the merchant account collecting the payment, such as cards, ACH, PayPal, Klarna, and Bancontact. To add or remove methods, enable them on that Adyen merchant account; no changes are needed in Orb. Pay invoice

3D Secure authentication

When a payment in the invoice portal requires 3D Secure (SCA), the Drop-in completes the challenge inline as part of the checkout, so no additional setup is needed. Off-session auto-collection charges run without customer interaction, so a stored payment method that would require a 3D Secure challenge to authenticate cannot be charged off-session.

Saving payment methods

The Drop-in can save a customer’s payment method for future use. Whether the customer is shown a “save this payment method” option is controlled by your account’s payment settings:
  • Always save: the payment method is stored without prompting.
  • Ask the customer: the Drop-in renders a consent checkbox.
  • Never save: no method is stored.
Saved payment methods are tokenized by Adyen and associated with the Orb customer, and become the method Orb charges for auto-collection.

Managing payment methods via the API

In addition to the portal’s “save” flow, you can attach, list, and remove a customer’s stored Adyen payment methods directly through the API, and choose which one is the customer’s default. This is useful when you already hold an Adyen stored payment method (a storedPaymentMethodId) for a customer and want Orb to charge it during auto-collection. When Orb charges a stored payment method during auto-collection, it sends recurringProcessingModel: UnscheduledCardOnFile with shopperInteraction: ContAuth. If you create stored payment methods in Adyen yourself, store them with recurringProcessingModel set to UnscheduledCardOnFile so Orb can charge them off-session.
You designate the default payment method for Adyen customers. Tell Orb which stored method is the customer’s default, either by passing customer_default: true when attaching it or by setting default_payment_method_id on the customer. Orb charges that designated default during auto-collection.
A payment method object is intentionally minimal:

Attaching a payment method

Attach an Adyen stored payment method to a customer with POST /payment_methods. Provide exactly one of customer_id or external_customer_id, and set customer_default to true to make it the customer’s default in the same call. Attaching the same external_payment_method_id to a customer twice returns a 409.

Listing payment methods

List a customer’s payment methods (most recently created first) with GET /payment_methods. One of customer_id or external_customer_id is required. The response follows Orb’s standard pagination format.

Removing a payment method

Delete a payment method with DELETE /payment_methods/{payment_method_id}. This is a soft delete; if the method was the customer’s default, the customer is left with no default.

Setting the default payment method

A customer’s default payment method is what Orb charges during auto-collection. The customer resource exposes it as default_payment_method, and you can set or clear it on PUT /customers with default_payment_method_id. Pass a payment method ID to set the default, or null to clear it. The payment method must belong to that customer.
Attaching, removing, or changing the default emits the corresponding payment_method.created, payment_method.deleted, and customer.edited webhooks so your systems stay in sync.

Auto-collection

When auto-collection is enabled, Orb charges the customer’s default Adyen payment method off-session on the invoice due date. Payment results are reconciled asynchronously through Adyen webhooks, and the invoice’s status, timeline, and invoice.payment_succeeded / invoice.payment_failed webhooks reflect the outcome.

Enhanced scheme data (level 2/3)

Visa and Mastercard offer lower interchange rates on eligible commercial card transactions when the merchant sends purchase details along with the charge. Adyen calls this enhanced scheme data (ESD). Level 2 data is the purchase reference and tax total. Level 3 data adds line item detail. Orb sends both level 2 and level 3 data with every Adyen charge, whether the customer pays through the invoice portal or Orb charges a stored payment method during auto-collection. There is nothing to turn on in Orb. Adyen validates the data, checks whether your merchant account and the card are eligible, and submits the level the card qualifies for. If you are not eligible, or the data does not pass validation, Adyen processes the payment without it. Enhanced scheme data never blocks a charge.
Eligibility, card scheme requirements, and data validation rules are governed by Adyen and the card schemes. Refer to Adyen’s documentation for the current requirements, and contact Adyen to confirm your merchant account is enabled for level 2/3 data.

Configuring the default commodity code

Level 3 data requires a commodity code on every line item, identifying what was sold in a standardized coding scheme such as UNSPSC. Orb applies a single account-level code to every line. To set it, navigate to Settings > Integrations, select Configure on your Adyen connection, and enter a Default commodity code in the Configure Adyen Payments dialog. The code can be up to 12 ASCII characters. When left blank, Orb defaults to 81110000, the UNSPSC code for computer services. Use a code that matches what you sell. Per-item commodity codes are not supported today.

What Orb sends

Orb builds the enhanced scheme data from the issued invoice. Amounts are sent in minor units (for example, cents for USD), and text is restricted to ASCII and truncated to the schemes’ limits. Orb also includes the customer’s billing address on every charge when it is complete (street, city, postal code, and country), since some schemes require address verification to qualify.

Line item limits

Adyen accepts at most 100 line items per transaction and drops the entire enhanced scheme data payload past that, so Orb handles large invoices as follows:
  • Line items that charge nothing (a zero amount after discounts and credits) are left out.
  • If more than 100 lines remain, Orb sends the first 99 as-is and rolls the rest into a single consolidated line (description N additional lines, product code CONSOLIDATED, quantity 1) so the amounts still reconcile.

Limitations

Enhanced scheme data is best-effort. In the following cases the charge goes through as normal, but Orb does not send enhanced scheme data or Adyen drops it:
  • Negative line items. The schemes have no representation for a negative line. Orb sends these lines as-is, and Adyen drops the enhanced scheme data for that payment.
  • Customer balance applied to the invoice. A customer balance reduces the amount charged without being attributable to any line, so the line totals no longer reconcile with the charge. Orb does not send enhanced scheme data for these payments.
  • Validation results. Orb does not record whether a charge qualified or which level Adyen submitted. To monitor this, enable ESD validation results on your Adyen webhook as described in Adyen’s documentation.

Refunds

Refunds issued in Adyen are reflected on the corresponding Orb invoice. To return funds to a customer, issue the refund in Adyen, then follow the refund credit note workflow to keep your Orb accounts receivable and balances aligned.

Real Time Account Updater

Adyen offers a Real Time Account Updater service, available for Visa, Mastercard, and Cartes Bancaires cards, that can inform about changes to account information such as a card’s number or expiration date. With this service enabled, when a customer payment is refused Adyen instantly checks for updated card details and, if there is an update, immediately retries the payment with the updated card details, within a single transaction. On Orb’s side, enabling this Adyen service allows declined auto-collection charges to be immediately retried with updated card details. Note that charges initiated through the invoice portal are not eligible for these retries. In addition, we will receive the updated card details in the payment response and reflect the updates in our own saved payment information as well. To enable Real Time Account Updater, reach out to Adyen Support to enable this service for your account. Then, in your Adyen Customer Area:
  • Go to Developers > Additional data.
  • Under Payment, check the option to enable Realtime account updater status.
  • Under Card, select the card details you want to receive in the payment response. In order for Orb to update our own saved payment information, please select at least the following:
    • Card bin details
    • Card summary
    • Expiry date