tipsi / tipsi-stripe

React Native Stripe binding for iOS/Android platforms
MIT License
1.14k stars 526 forks source link

createSourceWithParams for card type #406

Closed mdeket closed 3 years ago

mdeket commented 5 years ago

I keep getting Promise rejection when set type to be 'card'. Your documentation says that you support 'card' as type when creating a Source, however then I started looking into your source code and found out that actually 'card' is not supported. I attached screenshots to see what I mean.

Environment

Screenshots

Found in utils/types.js: screen shot 2018-11-13 at 11 12 40 am However documentation says this: screen shot 2018-11-13 at 11 14 04 am

tendolukwago commented 5 years ago

Any follow up on this?

cybergrind commented 5 years ago

@tendolukwago not yet

Slexom commented 5 years ago

I've the same issue.

"dependencies": {
    "react": "16.6.1",
    "react-native": "0.57.5",
    "tipsi-stripe": "^6.1.2"
  }

Error: Failed params type: Invalid params 'type' of value 'card' supplied to 'Stripe.createSourceWithParams', expected one of ["bancontact","giropay","ideal","sepaDebit","sofort","threeDSecure","alipay"].

Is there any available solution?

LRNZ09 commented 5 years ago

This issue is related https://github.com/tipsi/tipsi-stripe/issues/232