Coder Social home page Coder Social logo

naxam / stripe-android-binding Goto Github PK

View Code? Open in Web Editor NEW
8.0 3.0 6.0 5.93 MB

Xamarin Binding Library - Stripe Android SDK

Home Page: https://github.com/stripe/stripe-android

License: MIT License

C# 31.79% PowerShell 48.90% Shell 19.31%
xamarin-android xamarin-android-binding stripe xamarin android bindings

stripe-android-binding's Introduction

AccountKit for Xamarin.Android

Stripe for Xamarin.Android

A Xamarin.Android binding library for Stripe library.

About

This project is maintained by Naxam Co.,Ltd.
We specialize in developing mobile applications using Xamarin and native technology stack.

Looking for developers for your project?


Installation

Install-Package Naxam.Stripe.Droid

Usage

Plz follow its official guide here.

Non-breaking change Upgrade

  1. Update library version and dependencies if required
  2. Run
sh build.sh --settings_skipverification=true

License

AccountKit binding library for Android is released under the MIT license. See LICENSE for details.

Get our showcases on AppStore/PlayStore

Try our showcases to know more about our capabilities.

Contact us if interested.



Follow us for the latest updates
Twitter URL Twitter Follow

stripe-android-binding's People

Contributors

jessejiang0214 avatar morejump avatar tuyen-vuduc avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

stripe-android-binding's Issues

Build fails: textAppearance resource not found after upgrading Android support libs to 27.0.2

I took a clone of stripe-android-binding repository, upgraded the Xamarin Android Support NuGet packages in the project to version 27.0.2 and compiled. I get this error message:

/stripe-android-binding/Demo/Demo/obj/Debug/lp/3/jl/res/layout/activity_add_source.xml(0,0): Error APT0000: No resource found that matches the given name (at 'textAppearance' with value '@style/TextAppearance.AppCompat.Notification'). (APT0000) (Demo)

My other project depends on Naxam.Stripe.Droid Nuget package. After I upgraded Xamarin Android Support libraries from version 26.1.0.1 to version 27.0.2 in my project, the compilation fails there as well with the same error message.

So currently it seems that the project cannot upgrade their Xamarin Android Support packages to 27.0.2 if the project has a dependency to Naxam.Stripe.Droid.

Version Update

Can u please update this stripe library to latest version ASAP?

Can't get SourceTypeModel from Source (Java.Lang.NoSuchMethodError: no non-static method "Lcom/stripe/android/model/Source;.getSourceTypeModel()Lcom/stripe/android/model/StripeJsonModel;)

Hi NAXAM.
I'm implementing stride sdk for payment on xamarin android, so i'm using package Naxam.Stripe.Droid 5.1.1.
And in the package, i can't get value of SourceTypeModel from Source.
SourceCardData sourceCardData = (SourceCardData)s.SourceTypeModel;

It always throw exception: {Java.Lang.NoSuchMethodError: no non-static method "Lcom/stripe/android/model/Source;.getSourceTypeModel()Lcom/stripe/android/model/StripeJsonModel;" ...... }

When i compare between native code of Stripe sdk and the generated C# file. I found that return type of method "getSourceTypeModel" is not correct. It should be "StripeSourceTypeModel" instead of "StripeJsonModel".

So I have solution for the issue: we try to update "return type" on RegisterAttribute.
[Register ("getSourceTypeModel", "()Lcom/stripe/android/model/StripeSourceTypeModel;", "GetGetSourceTypeModelHandler")]
By add some code on file metadata.xml:
<remove-node path="/api/package[@name='com.stripe.android.model']/class[@name='Source']/method[@name='getSourceTypeModel' and count(parameter)=0]" /> <add-node path="/api/package[@name='com.stripe.android.model']/class[@name='Source']"> <method name="getSourceTypeModel" return="com.stripe.android.model.StripeSourceTypeModel" abstract="false" native="false" synchronized="false" static="false" final="true" deprecated="not deprecated" visibility="public"> </method> </add-node>

I had tested and it worked. Hope it's useful for you!

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.