#ginjaninja_api
1 messages ยท Page 1 of 1 (latest)
Below are links to other discussions we've had with you in the past week in case you want to review that information. If your question is related to one of these previous discussions, please provide a comprehensive summary of the current state and what you need help with now. We help many users simultaneously, so a summary allows us to resolve your issue as soon as possible.
- ginjaninja_api, 4 days ago, 38 messages
๐ Welcome to your new thread!
โฒ๏ธ We'll be here soon! Typically we respond in a few minutes, but sometimes we might take a bit longer if the server is busy or if you have a particularly tricky question.
โฑ๏ธ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can always start a new thread if you have another question.
๐ This thread will always be available, even after it's closed. You can find it again using Discord's search, or you can save this link: https://discord.com/channels/841573134531821608/1224616375168012319
๐ Have more to share? Add more details, code, screenshots, videos, etc. below.
Your last thread can be found here: https://discord.com/channels/841573134531821608/1222930718301229106
thanks
No problem! Happy to help ๐
i also need to collect name on card and post code, i dont seem to find it in docs
<div id="cardExpiry"></div>
<div id="cardCvc"></div>```
card.mount('#cardNumber');
var card = elements.create('cardExpiry');
card.mount('#cardExpiry');
var card = elements.create('cardCvc');
card.mount('#cardCvc');``` this is what i have so far
With split card element, cardholder name and postal code should be implemented by yourself. Alternatively, Address Element can be used: https://docs.stripe.com/elements/address-element
address does not seem to work
What doesn't work? I don't see any implementation about address in your code
Split card payment doesn't support name and postal code collection
Cardholder name and postal code should be collected separately
oh i see, so stripe does not need to collect card holder name?
Cardholder name and postal code is supported in Payment Element, but not on split card element - the one you're using now
one more question how can i change the postal code to UK that looks like a zipcode
the place holder i mean
sorry, my bad! i didn't read your code properly
I see that you're using Address Element in your integration
yh
i think i am using Elements
i think these are my options
this is the design im trying to copy
You're using Split Card Element with Address Element. In your address element, you didn't specify the options
Can you share what is your expected behaviour?
the placeholder in postalCode is 90210 thats american. in the uk postal code would be somthing like rh43 2he
style: {
base: {
// Add your styling here
}
},
placeholder: 'Postal code',
};
var address = elements.create('postalCode', addressOptions);
address.mount('#postalCode');``` dont worry fixed it
thanks all is good now, thanks again for your help
๐ taking over for my colleague. Let me know if there's any follow-up Qs I can answer!