Giter VIP home page Giter VIP logo

Comments (12)

mohamedkhairy953 avatar mohamedkhairy953 commented on July 24, 2024 1

from flutter-sdk-bridge.

OMARIHAMZA avatar OMARIHAMZA commented on July 24, 2024 1

I tested it on 2 devices: Xiaomi mi mix 3 & AVD (Pixel 3a API 29).

The issue occurs in both devices.

from flutter-sdk-bridge.

mohamedkhairy953 avatar mohamedkhairy953 commented on July 24, 2024

Hello
Did you receive anything from the flutter cllback
It may be some validation error which returns to you through the callback

from flutter-sdk-bridge.

OMARIHAMZA avatar OMARIHAMZA commented on July 24, 2024

Hello Mohamed,

Thanks for your response.

I printed the callback result and I got this error:

{code: -1, data: null, message: Invalid merchant country code (it should be alpha-2 ISO code), status: error}

My config is as follows:

var configuration = PaymentSdkConfigurationDetails( profileId: "myid", serverKey: "secret-secret-secret", clientKey: "secret-secret-secret-secret", cartId: "25", cartDescription: "cart desc", merchantName: "Mhd", screentTitle: "Pay with Card", billingDetails: billingDetails, shippingDetails: shippingDetails, locale: PaymentSdkLocale.EN, amount: 20.0, currencyCode: "SAR", merchantCountryCode: "SA", );

What is the correct alpha-2 ISO code for Saudi Arabia?

from flutter-sdk-bridge.

mohamedkhairy953 avatar mohamedkhairy953 commented on July 24, 2024

from flutter-sdk-bridge.

OMARIHAMZA avatar OMARIHAMZA commented on July 24, 2024

OK, thanks.

Please do let me know once you find the cause of the problem :)

from flutter-sdk-bridge.

mohamedkhairy953 avatar mohamedkhairy953 commented on July 24, 2024

Hello , Could you please tell me what device you are using to reproduce this issue, and do me a favor and try on another device and let me know.

from flutter-sdk-bridge.

mohamedkhairy953 avatar mohamedkhairy953 commented on July 24, 2024

We've published a new version 2.0.2-beta, please upgrade your version and try again

from flutter-sdk-bridge.

OMARIHAMZA avatar OMARIHAMZA commented on July 24, 2024

I upgraded the library to flutter_paytabs_bridge: ^2.0.2-beta

Nothing has changed.

{code: -1, data: null, message: Invalid billing country code, status: error}

from flutter-sdk-bridge.

mohamedkhairy953 avatar mohamedkhairy953 commented on July 24, 2024

from flutter-sdk-bridge.

OMARIHAMZA avatar OMARIHAMZA commented on July 24, 2024

I thought the problem was from the config object! Didn't know that the address object was causing it!

Thank you very much Mohamed for your help!

from flutter-sdk-bridge.

mohamedkhairy953 avatar mohamedkhairy953 commented on July 24, 2024

from flutter-sdk-bridge.

Related Issues (20)

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.