Comments (5)
@marco-jantke Will defenitely have a look into it.
from react-native-adyen-payment.
Short answer: Yes it is possible (at least on Android, will try for iOS next week)
In order to enable it you have to add the property showStorePaymentField
to the component data:
var componentData = {
scheme: {
card_public_key : CARD_PUBLIC_KEY,
showStorePaymentField: true,
},
bcmc: {
card_public_key : CARD_PUBLIC_KEY,
showStorePaymentField: true,
}
}
I did not find this anywhere in the documentation, so it is probably a good idea to add this somewhere (as I won't expect anyone to go through the source code of this wrapper to figure it out).
from react-native-adyen-payment.
I checked on iOS and it seems not to work using the same solution as shown above for Android. Seems like I have to dive into the implementation to figure out the correct call in the coming days.
from react-native-adyen-payment.
I found the issue on iOS. It turns out that the properties have different names on Android and iOS. On Android it is called showStorePaymentField
and on iOS it is called showsStorePaymentMethodField
(note the extra 's' after show).
TLDR of the messages above:
Yes, tokenization is supported on both iOS and Android. In order to enable it you have to pass two properties to the componentData:
const componentData = {
scheme: {
card_public_key : CARD_PUBLIC_KEY,
showStorePaymentField: true, // For Android
showsStorePaymentMethodField: true, // For iOS
},
bcmc: {
card_public_key : CARD_PUBLIC_KEY,
showStorePaymentField: true, // For Android
showsStorePaymentMethodField: true, // For iOS
}
}
from react-native-adyen-payment.
from react-native-adyen-payment.
Related Issues (20)
- [Android] 3DS2 Infinite Loading HOT 1
- iOS Example don't work
- stuck on "CVC is not the right length" HOT 1
- Adyen Error on paymentMethod
- crash on Huawei devices,
- Apple Pay HOT 9
- Cant hide showStoredPaymentMethod with BCMC on IOS HOT 2
- Apple Pay doesnt work HOT 5
- Plans to update for adyen-android 4.0.0? HOT 8
- Payment has error HOT 2
- Task react-native-adyen-payment:compileDebugKotlin fails on RN 0.65.1 HOT 8
- UI for showing cardHolder name. HOT 1
- Could not find com.tencent.mm.opensdk:wechat-sdk-android-without-mta:5.1.6. HOT 7
- Android cannot link lib if MainApplication is Kotlin file
- Question: How to build AdyenPayment HOT 1
- Building Android for Expo EAS Crashing org.gradle.api.internal.artifacts.repositories.DefaultFlatDirArtifactRepository HOT 1
- React peer dependency version
- Linking failed even though I add manually to MainApplication.java HOT 1
- Question for AdyenPayment.initialize? HOT 12
- Question - Is it compatible with GraphQL api? HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from react-native-adyen-payment.