Skip to main content
Version: 3.0.5

Installation

Easily accept payments through Apple Pay, Samsung Pay, STC Pay, or Credit Card (with managed 3DS step) in your Flutter app with Moyasar.

Features

Use this plugin to support:

  • Apple Pay: Quickly and safely accept Apple Pay payments on iOS.
  • Samsung Pay: Accept Samsung Wallet payments on supported Samsung Android devices.
  • STC Pay: Accept payments through STC Pay using the mobile number and OTP flow.
  • Credit Card: Easily accept many card companies while not worrying about managing the required 3DS step.

Each payment widget hides itself automatically when its method isn't available on the current device, so you can add them all to the same checkout screen without writing platform checks.

Getting Started

Prerequisites

Accepting Apple Pay Payments on iOS

Complete the following steps to easily accept Apple Pay payments:

For the full walkthrough, see the Apple Pay Integration Guide.

Accepting Samsung Pay Payments on Android

Samsung Pay requires a Samsung device and extra Android configuration. See the Samsung Pay Integration Guide.

Accepting Credit Card Payments on Android

Due to depending on the webview_flutter package to manage the 3DS step, make sure to set the correct minSdkVersion in android/app/build.gradle if it was previously lower than 21:

android {
defaultConfig {
minSdkVersion 21
}
}

Installation

flutter pub add moyasar

Or add it directly to your pubspec.yaml:

dependencies:
moyasar: ^3.0.5 # or the latest version