Тёмный

Level Up Your workflow with the Stripe CLI 

Stripe Developers
Подписаться 30 тыс.
Просмотров 4,8 тыс.
50% 1

Опубликовано:

 

9 сен 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 14   
@remccs16
@remccs16 2 месяца назад
This is a fantastic demo, thank you!
@StripeDev
@StripeDev 2 месяца назад
We're so glad you liked it! 🙂
@johnborron1059
@johnborron1059 3 месяца назад
Thank you sir! Just started using Stripe in a project and this information has been incredibly helpful. Will have to experiment with some of the tools illustrated but this video has been a great overview to kick off from. Much appreciated!
@blackblather
@blackblather 3 месяца назад
The CLI is helpful for working with webhooks. Previously I configured the webhook endpoint on the stripe website directly, but that meant i had to do some port-forwarding on my router. Plus, moving to another network was a pain too. Would require all that port forwarding config again. As I saw in the video, with the CLI can simply point to localhost. Will check it out for sure. Thanks
@StripeDev
@StripeDev 4 месяца назад
Hey Ryan-great question! Currently, the Stripe Checkout API does not provide a direct option to restrict shipping to specific states. Keep in mind that you also can't do additional validation during the actual Checkout-the only way is to ask for the shipping address before Checkout. You can also add text near the shipping address form [0] noting which states you do not support, but if people still pay from an unsupported state, you will have to handle it after the fact by refunding the user. [0] docs.stripe.com/payments/checkout/customization#customize-text-policies
@ryansteiger2872
@ryansteiger2872 4 месяца назад
Thank you for the reply. A refund after the fact is not ideal, but I can definitely do the former, get shipping information upfront. So if the Checkout API doesn't have options for states, I do see a way to listen for events on the shipping address Element. Is building the form with elements and checking the state selected a possibility?
@StripeDev
@StripeDev 4 месяца назад
Elements does not support this option natively, either-sorry about that!
@ryansteiger2872
@ryansteiger2872 4 месяца назад
@@StripeDev Thank you
@StripeDev
@StripeDev 4 месяца назад
Of course!
@ryansteiger2872
@ryansteiger2872 4 месяца назад
@@StripeDev As you said, not natively, but with Elements, I can listen for the state of "state" in the shipping address element and loop through my accepted states. At that point, I can either allow them to continue because they are in our area of service, or... Unmount and pop up an alert/modal with the option to reenter the address? Therefore remounting the elements? Im not sure what I'm going to do yet, but I think this will just be a last ditch effort to avoid payments from areas we don't ship to. I will still collect shipping info up front, validate, and pre-fill the shipping info on the checkout page. A little more work instead of using the Checkout API, but I can create a solution for my use case.
@vamoslonge
@vamoslonge 29 дней назад
Nice
@ryansteiger2872
@ryansteiger2872 4 месяца назад
Hello Cecil, I know this video is about CLI, but do you know the Checkout API as well? This sounds strange, but I would like to restrict the shipping address states. I ship frozen foods, and my company is a small startup and can't ship nationally yet. I have tried to access the , but is restricted. I see a way to for allowed_countries, but nothing for states. Is it possible?
@MrWalrusxD
@MrWalrusxD 2 месяца назад
I get the message 'Permission denied' when i try to login via CLI. I think its because of the API keys, does anyone else know how to solve this issue?
@StripeDev
@StripeDev 2 месяца назад
Hey there! You'll want to make sure your restricted keys are up to date and valid-take a look at our doc here for more info: docs.stripe.com/stripe-cli/keys.
Далее
Introduction to the Stripe CLI
34:19
Просмотров 57 тыс.
Join the Stripe Workbench beta
34:06
Просмотров 1,1 тыс.
Как вам наши образы?🥰🥰🤍🤍
00:10
When RESTful architecture isn't enough...
21:02
Просмотров 275 тыс.
7 Essential Command Line Tools (2022)
9:12
Просмотров 211 тыс.
Collecting Taxes with Stripe Checkout
7:41
Просмотров 2,1 тыс.
How I Built a Marketplace with Stripe Connect
13:21
Просмотров 2,4 тыс.
Why Developers Are OBSESSED With Obsidian
11:26
Просмотров 53 тыс.
So You Think You Know Git - FOSDEM 2024
47:00
Просмотров 1,1 млн
Using docker in unusual ways
12:58
Просмотров 444 тыс.