Migrating from RPG

This guide is for partners and merchants who are currently integrated with RPG (Borgun Payment API) and are moving to the new Teya ecommerce stack. It walks through the integration options available and maps each RPG capability to its replacement.

Are you a partner managing credentials on merchants' behalf?
Every integration below authenticates with the new ecommerce credentials. You can exchange each merchant's RPG key for a new pair — see Credentials Migration.

Choose your integration

There are three ways to take payments on the new stack: Hosted Checkout, Embedded Components and direct API integration. We highly recommend Embedded Components.

Hosted CheckoutEmbedded Components (highly recommended)Direct API
Integration effortLowest — one server call and a redirectMedium — drop pre-built UI components into your checkout pageHigh — you build the payment UI and orchestrate every call yourself
Look and feelCustomers are redirected to a Teya payment page and back to your siteSeamlessly blends into your website, with customisable stylingFully yours to build
Card data on your systemsNoneNoneYes — the PCI DSS (SAQ D) obligations stay with you; check with Teya first
3D SecureHandled for youHandled for youHandled for you on the transaction flow
Fraud protectionEnhanced fraud protection built inEnhanced fraud protection built in — the components collect device and behaviour signals that strengthen risk decisions on every paymentStandard fraud checks only

With Embedded Components you keep full control of your checkout page while the components handle card capture, 3D Secure and Apple Pay for you. See the Embedded Components overview to explore what they look like.

Use the direct API only where components have no equivalent, such as collecting merchant-initiated payments on stored cards.

What replaces what

The table below covers the RPG operations documented in the RPG API reference and where each one lives on the new stack.

RPG capabilityRPG endpointsNew integration
Authentication HTTP Basic with a private key Authenticate — OAuth client credentials, issued per store, exchanged for a bearer access token.
Card payments (incl. 3D Secure) POST /api/payment
POST /api/mpi/v2/enrollment
POST /api/mpi/v2/validation
Embedded checkout or card components — 3D Secure is handled for you, with no separate enrollment or validation calls.
Tokenisation POST /api/token/single
POST /api/token/multi
Card on File — save a customer's payment method during a payment or with a zero-amount account verification.
Apple Pay POST /api/payment with a wallet token Embedded Apple Pay component — Apple Pay support without hosting your own wallet integration.
MIT / collection payments POST /api/payment with a multi-use token Charge a Saved Payment Method — a merchant-initiated transaction on a stored card via the direct API.
Refunds, captures & cancellations PUT /api/payment/{id}/refund
PUT /api/payment/{id}/capture
PUT /api/payment/{id}/cancel
Payment Actions — capture with POST /v1/transactions/{id}/capture and refund with POST /v3/refunds. There is no separate cancel: a refund on an uncaptured payment reverses the authorisation, replacing the RPG cancel.
Payment notifications GET /api/events/{eventId} Webhooks — signed notifications pushed to your platform in real time.
RPG tokens: don't re-collect cards
Tokens minted on RPG cannot be charged on the new platform as they are — but your customers never need to re-enter a card. Teya imports your stored cards and each legacy token upgrades itself on its first charge. See Migrating stored cards & recurring payments.

Next steps