Skip to content

Introduction

collana pay SDK is a drop-in Express Payment Buttons library for any webshop. With a single ExpressButtons() call you render fully-branded, wallet-ready payment buttons — no deep integration with each provider SDK required.

Supported Providers

The SDK ships with 13 built-in provider implementations:

Provider KeyDescription
PayPal:PayPalExpressNative PayPal Express Checkout
PayPal:PayLaterNative PayPal Pay Later
Amazon:AmazonPayAmazon Pay
Adyen:PayPalExpressPayPal Express via Adyen Drop-in
Adyen:GooglePayGoogle Pay via Adyen Drop-in
Adyen:ApplePayApple Pay via Adyen Drop-in
Braintree:PayPalExpressPayPal Express via Braintree
Braintree:PayLaterPayPal Pay Later via Braintree
Computop:GooglePayGoogle Pay via Computop gateway
Computop:ApplePayApple Pay via Computop gateway
Mollie:ApplePayApple Pay via Mollie
Revolut:RevolutPayRevolut Pay
Stripe:GooglePayGoogle Pay via Stripe Express Checkout Element

Integration

Load the SDK directly from a CDN — no build step, no npm package required:

html
<script src="https://js-test.collanapay.com/sdk/@VERSION/collana-pay.umd.js"
        integrity="sha384-..." crossorigin="anonymous"></script>

The SDK exposes window.CollanaPay.ExpressButtons — the only function you need.

Architecture Overview

  1. Configure — Pass an ExpressButtonsConfig to ExpressButtons(). This includes a list of ProviderButtonConfig entries and three lifecycle callbacks (CallbackHandlers).
  2. Render — Call .render() on the returned instance. Each provider SDK is loaded and the button is mounted into the specified container element. Providers render in parallel via Promise.allSettled, so one failure does not block others.
  3. Callbacks — When the user clicks a button, onClick fires so you can create a transaction on your backend and return the checkoutData from the collana pay API. The provider SDK then handles wallet authentication. On success, the SDK finalizes the transaction and redirects the user to your confirmation page (UriSuccess). After the redirect, the collana pay backend asynchronously sends a server-to-server callback (Prepare Interaction or Reservation Interaction, depending on the provider) to your backend to confirm the payment. On failure or cancellation, onCancel or onError is called.

Next Steps

CollanaPay SDK Documentation