Skip to main content

Flutter Integration

You can integrate Adyen's Flutter SDK with the sessions flow, which meets the requirements for most mobile payment integrations.

With the Adyen Flutter Drop-in, you can render a list of available payment methods in your mobile application and collect payment details from your shoppers.

Requirements​

Before you begin to integrate, make sure you have followed the Basic Session Request guide.

Setting up your Flutter Project​

For detailed instructions on setting up the Adyen Flutter SDK in your project, please refer to the Adyen Flutter documentation.

Initialize the Drop-in Component​

To initialize the Adyen Drop-in component in your Flutter application, you need to use the session object obtained from Straumur's /sessioncheckout endpoint (Basic Session Request).

Payment Flow​

When the Drop-in is launched, the shopper uses the interface to select a payment method and complete the payment. The Drop-in manages the entire payment process, including 3D Secure authentication when required.

The Drop-in component handles all necessary redirects and authentication flows automatically, providing a seamless experience for the shopper.

Payment Outcome​

Once the Drop-in component has processed the payment, you will receive a result indicating the payment status. Straumur will also notify you of the final payment result via a webhook.

Payment Result Before Webhook​

To retrieve the payment result before receiving the webhook notification, follow these steps:

  1. Obtain the session.id from the /sessioncheckout response.
  2. Retrieve the sessionResult from the Drop-in result.
  3. Use both pieces of information to check the current payment status by following the Checkout Status Request.

Customization and Advanced Options​

For detailed information about customizing the Drop-in component, implementing individual payment method components, and advanced configuration options, please refer to the official Adyen Flutter documentation.

Apple Pay and Google Pay​

If you wish to include Apple Pay and Google Pay as payment methods in your Flutter application, please contact our support at developers@straumur.is