#spourdas_api
1 messages ยท Page 1 of 1 (latest)
๐ 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/1237145820709519413
๐ Have more to share? Add more details, code, screenshots, videos, etc. below.
Hi there, can you share more details? If you're referencing a specific demo, could you share the link to it here?
Do you have a Checkout Session ID you can share?
I am starting locally. Then, it goes here: https://checkout.stripe.com/c/pay/cs_test_a1gY0QYQIJbkWep1SEFQOYNdmo4VuVozVrW21yVMDNKMSIZodf4Bgb0XLr#fidkdWxOYHwnPyd1blpxYHZxWjA0VUFTQ3JDU3V1YW9BNFJQVG5rRkttTUxIM21TSVJnZjFyS3ZCf2Y1QW93Tk9Kf2FjZ0JyanRma3A9al08VUw0YG5wRlRGVD1qaGI0N1d9STZBa3xON0hfNTVmUWx%2FdW9NVCcpJ2N3amhWYHdzYHcnP3F3cGApJ2lkfGpwcVF8dWAnPyd2bGtiaWBabHFgaCcpJ2BrZGdpYFVpZGZgbWppYWB3dic%2FcXdwYHgl
how come it wont accept US phone numbers
Just to be clear, you're saying the Checkout Session doesn't ask for phone numbers at all, correct?
The phone number field you see is specifically for Link. Are you hoping you use Link here or are you just looking to collect customer phone numbers for later use?
Ok. Thanks for explaining that. I thought it was part of the payment process.
If what you want to do is add a phone number field (vs. having customers save the payment details to their Link account), this is the parameter you should use when creating the Checkout Session: https://docs.stripe.com/api/checkout/sessions/create#create_checkout_session-phone_number_collection
thank you very much
If you do want to use Link, you should be able to use an Australia phone number. We'll automatically add the country code (+61 in this case) so no need to type it in. Australia phone numbers should be in the right format though
That explains the Australian flag there ๐
I have another problem now. My "Accepted a Payment" demos are not finding their css files all of a sudden? any ideas?
You'll need to provide much more information. Were the files moved to another local folder? Did you change the pointer to these files in your code?
I was trying to keep the three types of "Accept a Payment" sites all on my computer. I downloaded the first one and renamed the directory to accept-a-payment-element and it showed everything file
fine
next, I downloaded the custom Accept a Payment and renamed the folder to accept-a-payment-custom. The css formatting stopped working
After that, I delelted the two directories and i tried "Accept-a-Payment" in the custom mode and the css still does not come up
I downloaded the custom Accept a Payment and renamed the folder to accept-a-payment-custom. The css formatting stopped working
Do you have the link you used to download this?
C:\Users\spour\Documents\Stripe>stripe samples create accept-a-payment
I do the above
That's your local folder. You mentioned "I downloaded the custom Accept a Payment". Where did you download this from exactly?
well, once you download the stripe CLI, you are supposed to be able to build all these projects. That'
that's what I meant by download
This is how its coming up
does something timeout?
after a certain usage
Hi there ๐ taking over, as my colleague needs to step away
Give me a few minutes to get caught up.
I'm still not sure I understand what you're doing. You mentioned the Stripe CLI, but then earlier in the thread it looks like you downloaded a project folder for a Stripe Demo. Can you summarize the issue briefly and explain what you've tried so far?
Can you be more specific about what you're trying to do? Please spend a bit more time drafting a reply. It's difficult to understand context with short non-descriptive sentences
I am goting thourgh samples to get familiar with Stripe: https://docs.stripe.com/samples
Browse the source code of sample Stripe integrations.
The instructions says to download CLI
I did
I use the CLI to create these sub-directories: stripe samples create accept-a-payment
I go into the sub directory
I go into the server sub directory
i do mvn pakcage
package
then, java -cp target/sample-jar-with-dependencies.jar com.stripe.sample.Server
I bring up the page: localhost:4242
Look at the screen shot above in the thread
it looks like its missing some CSS
Are all the integrations working as expected outside of the styling?
y
I'm not even sure what the styling is supposed to look like for this to be honest. It looks like at least the fonts are coming through. Is there a reason you need the demo to look a certain way?
Like, it's entirely possible that this is what it's supposed to look like since it's a demo
may be. I just started all this today. thanks for all your help. I will start looking at vidoes tomorrow.
No worries! I just wanted to make sure I understood. Let us know if you run into any issues building your won integration!