Giter VIP home page Giter VIP logo

esewa_pnp's Introduction

Hi ๐Ÿ‘‹, I'm Ashim Upadhaya

esewa_pnp's People

Contributors

735l4 avatar aarjan avatar allcontributors[bot] avatar aryalg avatar ayyshim avatar bimsina avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

esewa_pnp's Issues

Bug: Module compile error

Describe the bug
Module compiled with Swift 5.5.1 cannot be imported by the Swift 5.5.2 compiler:

To Reproduce
Steps to reproduce the behavior:

  1. Build an app by latest Xcode & swift compiler

Screenshots
Screen Shot 2022-02-17 at 8 37 50 PM

Environment:

  • esewa_pnp 1.1.0
  • Flutter Version 2.10.1
  • Xcode 13.2.1 and Swift 5.5.2

Support for iOS

Great work, if I found the android version usefull. Ill send a PR to add iOS support soon. Kudos brother.

Bug: Couldn't Login in Live Environment

Describe the bug
I tried logining in Live Environment using the Client Id and Secret Key provided by eSewa. But I couldnot login and prompted with the following dialog. Afterwards I received an OTP from eSewa

To Reproduce
Steps to reproduce the behavior:

  1. Go to Login
  2. Enter username and password
  3. Presented with the error in the terminal:

Success Response::: {"identifier":"SEFUQlZAXldUJiJXTgJKP1QbADUHOyAxKgQTNjwANFA4XwY6V0AHIjEqOyQ=","environment":"CRoTEg==","merchantName":"JwYPFhRTOAAOBFM1ARVdSykNAQ==","userName":"XEtRRFNGU1RKUg==","balance":"VEddQ09AXw==","productName":"JwYPFhRTOAAOBFM1ARVdSykNAQ==","totalAmount":"U0ZLRw==","message":{"technicalErrorMessage":"Service unavailable","errorMessage":"Sorry your request failed. Contact your service provider."},"charge":null,"cashBack":null,"Cookie":"JSESSIONID=25348C543CFC99282F16FFDF1D02D78B; Path=\/; HttpOnly"}

  1. I get an OTP from eSewa after the error is shown. The OTP code says use this to login in online payment.

Expected behavior
Should have login.

Screenshots

If applicable, add screenshots to help explain your problem.

  • Esewa Environment : LIVE
  • Esewa_pnp Version : 1.0.7
  • Targeted OS: Android
  • Flutter Version

i cannot run my app after installing esewa pnp 1.0.7

Execution failed for task ':esewa_pnp:bundleDebugAar'. > Direct local .aar file dependencies are not supported when building an AAR. The resulting AAR would be broken because the classes and Android resources from any local .aar file dependencies would not be packaged in the resulting AAR. Previous versions of the Android Gradle Plugin produce broken AARs in this case too (despite not throwing this error). The following direct local .aar file dependencies of the :esewa_pnp project caused this error: C:\Users\User\AppData\Local\Pub\Cache\hosted\pub.dartlang.org\esewa_pnp-1.0.7\android\libs\eSewaSdk.aar

Web support

Hey, thank you for this great package.
Any plan on adding web support for it?

Thanks ๐Ÿ™‚

Bug: Execution failed for task ':esewa_pnp:bundleDebugAar'.

Direct local .aar file dependencies are not supported when building an AAR. The resulting AAR would be broken because the classes and Android resources from any local .aar file dependencies would not be packaged in the resulting AAR. Previous versions of the Android Gradle Plugin produce broken AARs in this case too (despite not throwing this error). The following direct local .aar file dependencies of the :esewa_pnp project caused this error:

Bug:

Describe the bug
Direct local .aar file dependencies are not supported when building an AAR. The resulting AAR would be broken because the classes and Android resources from any local .aar file dependencies would not be packaged in the resulting AAR. Previous versions of the Android Gradle Plugin produce broken AARs in this case too (despite not throwing this error). The following direct local .aar file dependencies of the :esewa_pnp project caused this error: /Users/username/.pub-cache/hosted/pub.dartlang.org/esewa_pnp-1.0.4/android/libs/eSewaSdk.aar

To Reproduce
Steps to reproduce the behavior:
-Compilation of flutter debug

Expected behavior

Screenshots

Environment (please complete the following information):

  • esewa_pnp 1.0.4
  • Targeted OS: Android
  • Flutter 2.0.5

Additional context
Add any other context about the problem here.

Unable to login to esewa through the app. it says "Incorrect username or password"

Hey again,
I dont know why but every time i try to log in to esewa through my app, it says "Incorrect username or password" although the credentials are correct.
i can log in directly to esewa app with those credential but not through my app.
Have you ever faced this error and what causes this.
i have implemented the plugin as directed by you in example tab and your video.
please help me

Double value not supported by amount

Double value is not supported by amount parameter and converting all payment amount to int is not really an option because it leads to inconsistent payment data.

xcode build fail

Xcode's output:
โ†ณ
:1:1: warning: umbrella header for module 'Flutter' does
not include header 'FlutterNavigationController.h'
#import "Headers/Flutter.h"
^
SwiftEsewaPnpPlugin.swift:3:8: error: could not find module 'EsewaSDK' for
target 'x86_64-apple-ios-simulator'; found: arm64, armv7-apple-ios,
arm64-apple-ios, arm, armv7
import EsewaSDK
^
note: Using new build system
note: Building targets in parallel
note: Planning build
note: Constructing build description

Could not build the application for the simulator.
Error launching application on iPhone 11.

Success Response data don't match with response we send

After printing whole response all data is kinda like encrypted or replace. All transation is complete actual cost is deducted from your esewa account but response like encrypted data. It actually happening in live not in test need help.

Success Response::: {"productId":"DUJXRAU=","productName":"Nh4EBRVTIgsXCgUEAwgcBUUpEwdFOxUX","totalAmount":"VF1V","environment":"CRoTEg==","code":"VUM=","merchantName":"Nh4EBRVTIgsXCgUEAwgcBUUpEwdFOxUX","message":{"technicalSuccessMessage":"Your transaction has been completed.","successMessage":"Your transaction has been completed."},"transactionDetails":{"date":"NhIRVysGB0VIXVNUQFtBW19NV1MiOjVYW1BDUUZFRVFBWw==","referenceId":"VUckLioqUg==","status":"JjwoJy02PyA="}}

Error: The method 'RaisedButton' isn't defined for the class 'ESewaPaymentButton'.

In Flutter 3.3.2, I am getting such error:

/C:/flutter/.pub-cache/hosted/pub.dartlang.org/esewa_pnp-2.0.1/lib/esewa_pnp.dart:215:14: Error: The method 'RaisedButton' isn't defined for the class 'ESewaPaymentButton'.

  • 'ESewaPaymentButton' is from 'package:esewa_pnp/esewa_pnp.dart' ('/C:/flutter/.pub-cache/hosted/pub.dartlang.org/esewa_pnp-2.0.1/lib/esewa_pnp.dart').
    Try correcting the name to the name of an existing method, or defining a method named 'RaisedButton'.
    child: RaisedButton(
    ^^^^^^^^^^^^

FAILURE: Build failed with an exception.

  • Where:
    Script 'C:\flutter\packages\flutter_tools\gradle\flutter.gradle' line: 1159

  • What went wrong:
    Execution failed for task ':app:compileFlutterBuildDebug'.

Process 'command 'C:\flutter\bin\flutter.bat'' finished with non-zero exit value 1

  • Try:

Run with --stacktrace option to get the stack trace.
Run with --info or --debug option to get more log output.
Run with --scan to get full insights.

BUILD FAILED in 3m 19s

Bug: Build Failed on Android Direct local .aar file dependencies are not supported when building an AAR.

Describe the bug
Build Failed on Android Direct local .aar file dependencies are not supported when building an AAR. The resulting AAR would be broken because the classes and Android resources from any local .aar file dependencies would not be packaged in the resulting AAR. Previous versions of the Android Gradle Plugin produce broken AARs in this case too (despite not throwing this error).

To Reproduce
Steps to reproduce the behavior:

  1. Upgrade Flutter Version to 2.10.0

Expected behavior
Build should succeed on android

Environment (please complete the following information):

  • esewa_pnp: 1.1.0
  • Targeted OS: ANDROID
  • Flutter Version: 2.10.0

Bug: App doesnot build with error "Direct local .aar file dependencies are not supported when building an AAR."

After installing the package i get this error while trying to build the app.

Execution failed for task ':esewa_pnp:bundleDebugAar'.

Direct local .aar file dependencies are not supported when building an AAR. The resulting AAR would be broken because the classes and Android resources from any local .aar file dependencies would not be packaged in the resulting AAR. Previous versions of the Android Gradle Plugin produce broken AARs in this case too (despite not throwing this error). The following direct local .aar file dependencies of the :esewa_pnp project caused this error: C:\src\flutter.pub-cache\hosted\pub.dartlang.org\esewa_pnp-1.0.4\android\libs\eSewaSdk.aar

Am i missing something while installing?

Error while building in gradle plugin:4.1.0 and gradle version:6.5

The app is not building after upgrading Gradle.

Execution failed for task ':esewa_pnp:bundleDebugAar'.

Direct local .aar file dependencies are not supported when building an AAR. The resulting AAR would be broken because the classes and Android resources from any local .aar file dependencies would not be packaged in the resulting AAR. Previous versions of the Android Gradle Plugin produce broken AARs in this case too (despite not throwing this error). The following direct local .aar file dependencies of the :esewa_pnp project caused this error: ~/.pub-cache/hosted/pub.dartlang.org/esewa_pnp-1.0.0/android/libs/eSewaSdk.aar

Bug: module compiled with Swift 5.3.1 cannot be imported by the Swift 5.4 compiler

I had tried to test eSewa SDK in the simulator and got the error while building the project

SwiftEsewaPnpPlugin.swift:3:8: error: module compiled with Swift 5.3.1 cannot be imported by the Swift 5.4 compiler: /Volumes/Storage/Flutter/insurance_flutter_app/ios/.symlinks/plugins/esewa_pnp/ios/EsewaSDK.framework/Modules/EsewaSDK.swiftmodule/x86_64-apple-ios-simulator.swiftmodule
import EsewaSDK
^

Screen Shot 2021-06-21 at 11 29 22

Build failed on android:

Describe the bug
A clear and concise description of what the bug is.

To Reproduce
Steps to reproduce the behavior:

  1. Use Gradle version 4.1.3
  2. Use Flutter version 2.8
  3. Use esewa_pnp 1.1.0

Expected behavior
Build fails(both debug and release) with exception:

**Execution failed for task ':esewa_pnp:bundleReleaseAar'.

Direct local .aar file dependencies are not supported when building an AAR. The resulting AAR would be broken because the classes and Android resources from any local .aar file dependencies would not be packaged in the resulting AAR. Previous versions of the Android Gradle Plugin produce broken AARs in this case too (despite not throwing this error). The following direct local .aar file dependencies of the :esewa_pnp project caused this error: /Users/sagarshree/Developer/flutter/.pub-cache/hosted/pub.dartlang.org/esewa_pnp-1.1.0/android/libs/eSewaSdk.aar**

  • esewa_pnp 1.0.1
  • Targeted OS: [e.g. iOS, Android]
  • Flutter Version 2.8
  • [only if targetd OS is iOS] Xcode Version and Swift Version

Bug: Execution failed for task ':esewa_pnp:bundleDebugAar'.

Describe the bug

Direct local .aar file dependencies are not supported when building an AAR. The resulting AAR would be broken because the classes and Android resources from any local .aar file dependencies would not be packaged in the resulting AAR. Previous versions of the Android Gradle Plugin produce broken AARs in this case too (despite not throwing this error). The following direct local .aar file dependencies of the :esewa_pnp project caused this error: C:\flutter.pub-cache\hosted\pub.dartlang.org\esewa_pnp-1.0.4\android\libs\eSewaSdk.aar

To Reproduce
Steps to reproduce the behavior:

  1. Using distributionUrl=https://services.gradle.org/distributions/gradle-6.5-bin.zip
    classpath 'com.android.tools.build:gradle:4.1.2'
    classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"

Environment (please complete the following information):

  • esewa_pnp Version ^1.0.4
  • Targeted OS: [e.g. iOS, Android]
  • Flutter Version 1.22.6
  • [only if targetd OS is iOS] Xcode Version and Swift Version

Couldn't build project after adding eSewa Pub

Attribute application@allowBackup value=(false) from AndroidManifest.xml:
is also present at [eSewaSdk.aar] AndroidManifest.xml:14:18-44 value=(true).
Suggestion: add 'tools:replace="android:allowBackup"' to element at AndroidManifest.xml:26:5-115:19 to override.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.