GithubHelp home page GithubHelp logo

agaweb / react-native-stripe Goto Github PK

View Code? Open in Web Editor NEW
23.0 23.0 7.0 1.11 MB

Unofficial integration of the payment APIs from the Stripe SDK on react-native

License: MIT License

Kotlin 28.88% JavaScript 18.97% Starlark 3.80% Java 12.53% Ruby 3.18% Objective-C 13.08% Swift 19.35% C 0.21%
react-native stripe stripe-payment stripe-payments

react-native-stripe's People

Contributors

imcyee avatar miladebadi avatar nicholasbertazzonaga 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

Watchers

 avatar  avatar  avatar  avatar

react-native-stripe's Issues

Allow passing paymentMethod to confirmCardSetup

I would like to passing payment_method to confirmCardSetup (I would like to pass metadata), here is how it can be done with tipsi-stripe:

const setupIntent = await stripe.confirmSetupIntent({
  clientSecret: clientSetupIntent.client_secret,
  paymentMethod: {
    card,
    metadata: {...},
  },
});

The same for confirmPaymentWithCard

Unable to compile android

Describe the bug
Compiling android build generate:
/agaweb/reactnativestripe/ReactCardMultilineView.kt: (51, 45): Type mismatch: inferred type is (???, ???) -> Unit but CardValidCallback? was expected

To Reproduce
Steps to reproduce the behavior:

  1. react-native run android

Expected behavior
Should compile without error.

Additional context
But it silent the error when I explicitly add the type instead of using lambda.

cardMultilineWidget.setCardValidCallback(object: CardValidCallback {
      override fun onInputChanged(isValid: Boolean, invalidFields: Set<CardValidCallback.Fields>){
        val event: WritableMap = Arguments.createMap()
        event.putBoolean("isValid", isValid)

        if (isValid) {
          val params = Arguments.createMap()
          val typeDataParams = cardMultilineWidget.cardParams!!.typeDataParams

          params.putString("number", typeDataParams.get("number") as String)
          params.putInt("expMonth", typeDataParams.get("exp_month") as Int)
          params.putInt("expYear", typeDataParams.get("exp_year") as Int)
          params.putString("cvc", typeDataParams.get("cvc") as String)

          if (typeDataParams.get("address_zip") != null)
            params.putString("postalCode", typeDataParams.get("address_zip") as String)

          event.putMap("cardParams", params)
        }

        (context as ReactContext).getJSModule(RCTEventEmitter::class.java).receiveEvent(id, "onCardValidCallback", event)
      }

    })

confirmCardSetup

Can we have a callback result for confirmCardSetup function as I need paymentmethodkey for updating by backend

"currently no loaders are configured to process this file"

Describe the bug
Hey, I'm getting this error:

C:/PROJECTS/VIRTUALHOCKEY/node_modules/@agaweb/react-native-stripe/src/StripeCardInputWidget.js 75:4
Module parse failed: Unexpected token (75:4)
You may need an appropriate loader to handle this file type, currently no loaders are configured to process this file. See https://webpack.js.org/concepts#loaders
| 
|   return (
>     <TouchableWithoutFeedback>
|       <StripeCardInputWidgetNative
|         {...props}

To Reproduce
Steps to reproduce the behavior:

  1. expo start

Expected behavior
start the app

CocoaPods could not find compatible versions for pod

Describe the bug
Specs satisfying the AgawebStripe (from ../node_modules/@agaweb/react-native-stripe) dependency were found, but they required a higher minimum deployment target.

To Reproduce
Steps to reproduce the behavior:

  1. Go to 'ios folder'
  2. Click on 'pod install'
  3. See error

Screenshot 2021-04-17 at 10 21 09 AM

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.