telr_flutter 0.0.1 copy "telr_flutter: ^0.0.1" to clipboard
telr_flutter: ^0.0.1 copied to clipboard

discontinued

A new flutter plugin project.

telr_flutter #

pub package

Getting Started #

Flutter setup #

Add this to your package's pubspec.yaml file:

dependencies:
  telr_flutter: ^0.0.1

Android Setup #

You should add in your applications <your-app>/android/app/src/main/AndroidManifest.xml:

  <manifest 
    xmlns:tools="http://schemas.android.com/tools"
   <application
        tools:replace="android:label,name"

Add the following lines inside section android in your app module build.gradle:

  packagingOptions {
       exclude 'META-INF/license.txt'
       exclude 'META-INF/notice.txt'
    }

iOS Setup #

Add the following line inside your ios Podfile file:

  platform :ios, '12.4'
post_install do |installer|
  installer.pods_project.targets.each do |target|
    flutter_additional_ios_build_settings(target)
    target.build_configurations.each do |config|
      config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] = '12.4'
    end
  end
end

then in Terminal run this commands:

$ cd ios
$ pod update

Usage #

Then you just have to import the package with

  import 'package:telr_flutter/telr_flutter.dart';

Then in your code

   var telr = TelrFlutter(
      configuration: TelrConfiguration(
        key: "pQ6nP-7rHt@5WRFv",   // KEY FROM TELR DASHBOARD
        storeId: "15996",          // STORE ID FROM TELR DASHBOARD
        email: "mail@gmail.com",   // ACCOUNT MAIL
        enableSecurity: false,     // CHECK IF DEVICE IS ROOTED TO CAN COMPLETE THE PROCESS OR NOT
        testMode: true,            // FOR TESTING PREDEFINDED CARDS IN YOUR ACCOUNT ONLY AND DON'T ACCEPT ANY REAL CARD 
      ),
    );
    
    telr.billingAddress = BillingAddress(
      city: "Dubai",
      country: "AE",
      firstName: "Basem",
      lastName: "Abduallah",
      line: "236b stree",
      phoneNumber: "123456789",
      region: "Dubai",
    );
    
    telr.makePayment(
      transaction: Transaction(
        amount: "2",
        currency: "AED",
        language: "en",     // (OPTIONAL)
        userId: "123455",   // USER ID FROM YOUR SYSTEM (OPTIONAL)
      ),
    );

Feedback #

Please feel free to give me any feedback helping support this plugin !

License #

Copyright (c) 2021 by Bassem Abduallah. Some rights reserved.

telr_flutter is under the terms of the MIT License, following all clarifications stated in the license file.

3
likes
30
pub points
30%
popularity

Publisher

unverified uploader

A new flutter plugin project.

Repository (GitHub)
View/report issues

License

BSD-3-Clause (LICENSE)

Dependencies

flutter

More

Packages that depend on telr_flutter