#Vishwesh
1 messages · Page 1 of 1 (latest)
Which integration are you using?
I am using above library
Yes, but the official Doc is here https://stripe.com/docs/payments/accept-a-payment?platform=react-native
It use PaymentSheet, a prebuilt UI component which is designed nicely
ok
But I am able to view as per screenshot
not sure what I am doing wrong here
All fields are displayed in single row
also I am not able to view the Pay or Submit button
<StripeProvider
publishableKey='pk_test_51NG1G1Db6DzIKfYxEcyiYQKFASNXZaFO0pZCPA3mJPzViMLn0XlKp7e05KLwbU5xJqlONSYKxdwYD5DMOWowd7gc009WiyFZSi'
>
<CardField
postalCodeEnabled={false}
placeholders={{
number: '4242 4242 4242 4242',
}}
cardStyle={{
backgroundColor: '#FFFFFF',
textColor: '#000000',
}}
style={{
width: '50%',
height: 50,
marginVertical: 30,
}}
onCardChange={(cardDetails) => {
console.log('cardDetails', cardDetails);
}}
onFocus={(focusedField) => {
console.log('focusField', focusedField);
}}
/>
</StripeProvider>
This is test code I am using
please follow this Doc
ok let me try