Is there a way to scan the credit card with card-io plugin to use with Stripe?

Is there a way to scan the credit card with card-io plugin to use with Stripe? I found card-io https://github.com/card-io/card.io-Cordova-Plugin/issues it works perfectly but Stripe wants us to create card element meaning you can not automatically enter the card numbers in the card element. No raw data accepted. It has to be typed in fields of element.

I found these examples for ios and android


A different kind of implementation maybe?

1 Like

Hey Hakan,
i don’t know if i understand exactly what you want, but did you know that there is a own Plugin + Ionic Wrapper from Stripe: https://ionicframework.com/docs/native/stripe

Let me Explain again [EinfachHans]; There is a plugin called card-io. https://ionicframework.com/docs/native/card-io
and yes there is a plugin for stripe; https://ionicframework.com/docs/native/stripe

I need a combination of this. Scan the card with device camera and send it to stripe with the plugin you have mentioned. Read below plz.

Stripe elements does not let you pass raw card information, yet there is a native iOS implementation available. Would be great to have this working via cordova too. Any ideas?

I am using https://ionicframework.com/docs/native/stripe and when I send the data to stripe the error was telling me I need to create a card elemts rather then sending the raw data like in ```
let card = {
number: ‘4242424242424242’,
expMonth: 12,
expYear: 2020,
cvc: ‘220’
}

I will try this again and I wil lget back here.

Did you find any solution to this?
Ideally with Capacitor.