tamara_flutter_sdk 1.0.11 copy "tamara_flutter_sdk: ^1.0.11" to clipboard
tamara_flutter_sdk: ^1.0.11 copied to clipboard

Tamara Check out SDK

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: ^1.0.11

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();
    },
  )
);