Skip to content

Khader-1/tamara_flutter_sdk

Repository files navigation

Integrate Tamara Checkout Flow into Flutter App

Features

  • Add callback for checkout flows:
    • onPaymentSuccess
    • onPaymentFailed
    • onPaymentCanceled

Getting started

Add sdk to your pubspec.yaml file

dependencies:
  flutter:
    sdk: flutter
  tamara_sdk: ^0.9.1

Get URLs

Your Back End must call our Api for generating:

  • Checkout URL
  • Success URL
  • Failed URL
  • Canceled URL

Usage

Include TamaraCheckout in your Widget builder

Expanded(
  child: TamaraCheckout(
      checkoutUrl
      successUrl,
      failedUrl,
      canceledUrl,
    onPaymentSuccess: () {
      _onPaymentSuccess();
    },
    onPaymentFailed: () {
      _onPaymentFailed();
    },
    onPaymentCanceled: () {
      _onPaymentCanceled();
    },
  )
);

About

tamara_flutter_sdk fixed for ios

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published