Тёмный
No video :(

Accept a payment 

Stripe Developers
Подписаться 29 тыс.
Просмотров 9 тыс.
50% 1

In this refreshed episode, CJ covers how to take a one-time payment in an SCA ready way with Stripe.js and Ruby.
Resources
Official guide: stripe.com/doc...
Demo repo: github.com/str...
Presenter
CJ Avilla - Developer advocate at Stripe - / cjav_dev
Table of contents
00:05 - Intro
01:49 - Demo overview
02:12 - Install Stripe sample
03:23 - Create payment intent on the server
06:58 - Collect card details on the client
12:00 - Confirm payment intent on client
14:50 - Test payment flow
15:55 - Reasons for "No such payment intent: pi_"
19:29 - Add support for email receipts
Support
If you have a question, please feel free to reach out to our support team on Discord at stripe.com/go/....
Updates
Sign up to stay updated with developer news: go.stripe.glob...
Feedback
If you have any feedback about this or other episodes, let us know: forms.gle/VjNq....
#Stripe #SCA
#Stripe #Payments

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

 

7 окт 2020

Поделиться:

Ссылка:

Скачать:

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

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 27   
@labelstyle4577
@labelstyle4577 3 года назад
Hello, I'm not a developer, but I would like to integrate Visa, Mastercard payment buttons... on my shopify website. I already have a shopify site, and I have already opened a Stripe account which is already activated. The account is already linked with shopify, and already activated. But the problem is that when I go in to pay, only the Paypal checkout button is available. But the rest like, visa or mastercard, is not visible. I wanted to try to integrate it, but I don't know how to do it because I'm not a developer. I installed python and tried to follow the tutorial but I can't, I would like to get help so I can integrate the buttons safely. Thanks
@genesisherrera1015
@genesisherrera1015 3 года назад
Same here. I however have a Squarespace shop and am wanting to understand how to set this up. This video is very confusing since it doesn't explain how to do this through Squarespace.
@michaldopierala
@michaldopierala 3 года назад
It is very easy to get lost in this video when we jump from one think to another.
@cjav_dev
@cjav_dev 3 года назад
Sorry for any confusion, @Michał. Happy to chat on Twitter (@cjav_dev) if you have specific questions.
@inderatechnologies8088
@inderatechnologies8088 3 года назад
Having trouble with another issue... having multiple product names passed into stripe checkout with matching prices... (ex) if The user has 2 products in their cart, I want to pass those item names and prices into stripe to checkout. Using nodejs :)
@paulasjes5852
@paulasjes5852 3 года назад
The `line_items` field on a Checkout Session is an array of hashes, so you can pass in a maximum of 100 items with prices/products: stripe.com/docs/api/checkout/sessions/create#create_checkout_session-line_items
@omarsuriel1112
@omarsuriel1112 3 года назад
When you say “one time payment” do you mean this is not the way to go about taking payments for an e-commerce site? Since were expecting customers to come back and/or buy different items?
@StripeDev
@StripeDev 3 года назад
To clarify, by one time payment we mean that the charge is not a subscription/recurring payment!
@sukhjeetdhillon5228
@sukhjeetdhillon5228 3 года назад
my payout is blocked I am trying to reach out customer service but no luck.
@StripeDev
@StripeDev 3 года назад
Hey Sukhjeet-thanks for flagging this with us. We can take a deeper look into what's going on with you-would you mind sending an email to us at heretohelp@stripe.com?
@debbieoriade7436
@debbieoriade7436 3 года назад
If someone pays you through stripe how long does it take to reach my bank account?
@StripeDev
@StripeDev 3 года назад
Hey Debbie, great question. Ultimately this depends on where your Stripe account is located, alongside some additional factors such as your bank's processing times. We have more details on how payouts with us work here: stripe.com/docs/payouts#payout-schedule.
@omarsuriel1112
@omarsuriel1112 3 года назад
So when I listen to the web hook, how do I know what’s in the order for the payment? If all I passed to the payment intent was the amount?
@nolan-stripe3628
@nolan-stripe3628 3 года назад
Hey Omar: this is information you'd typically store in your own database associated with the payment intent id. You can also use the payment intent metadata to store something like an order_id from your own systems so that you can look it up directly upon receipt of the webhook event.
@omarsuriel1112
@omarsuriel1112 3 года назад
@@nolan-stripe3628 thank you so much for answering! So, the flow goes like this: every time the checkout page is loaded on my e-commerce site, I fetch a payment intent from the server and I pass in the shopping cart data: (items, quantity, price, etc), then on the server I verify that the prices are in fact correct (since I can’t trust the client data), and I create a pending order in my database and store the verified items, prices and total along with the paymentIntentId, and when the payment is completed and I get the web hook event, I look up the pending order associated with that payment intent, mark it as paid and initiate my fulfillment process. This seems like it would work but I was not sure that was the best practice since that means I have to store in my database a pending order every single time a customer visits the checkout page, even when they don’t plan to actually buy, and also storing a different pending order even when they just go back and forth or refresh the checkout page since I’m creating a payment intent when the page loads. Just seem like a lot of data to store but I surely can do if it is considered a good practice. It just felt wrong to me because all the pending orders I could end up storing, or is there something I’m missing in my understanding of how the flow should be?
@nolan-stripe3628
@nolan-stripe3628 3 года назад
@@omarsuriel1112 That sounds about right. If you don't want to store these pending orders you'd need to change your business logic to persist a temporary order for a customer and have a payment intent associated with it. Alternatively, you could defer creating the order/payment intent until the customer expresses intent to pay. Eg make the server call after they click whatever buttons you have. A "pay now" button can retrieve the payment intent client_secret from your server just before using confirmCardPayment.
@omarsuriel1112
@omarsuriel1112 3 года назад
@@nolan-stripe3628 thank you so much Nolan! Thanks to your advise I almost have the whole payment thing completed! I ended up creating a potential_order tables and storing a JSON + other normalized data including the paymentIntent. And then retrieving the potential order and making it into a real order when the payment is made. But I also followed the best practice listed in the documentation and I am using the same payment intent for the same customer shipping cart and what I’m doing it is updating it if they already have one and also updating the potential_order related to that paymentIntent. That way I’m not saving a new potential_order every time the checkout page render. Thank you so much!!!!!
@nolan-stripe3628
@nolan-stripe3628 3 года назад
@@omarsuriel1112 Glad it was helpful! Sounds like your integration is now in a much better place :)
@rozinulhaq6301
@rozinulhaq6301 3 года назад
How to download script ?
@rozinulhaq6301
@rozinulhaq6301 3 года назад
How to upload on control panel
@paulasjes5852
@paulasjes5852 3 года назад
@@rozinulhaq6301 I'm afraid I'm not sure what your question is. Would you mind writing into support directly at support.stripe.com/contact ?
@jaydajenkins4722
@jaydajenkins4722 3 года назад
all I want is as pay button and I gotta go threw all this
@cjav_dev
@cjav_dev 3 года назад
Hey Jayda, This is if you're building a custom integration. The simpler path is to use Stripe Checkout. Feel free to reach out to @cjav_dev on twitter :)
@xuanhochi1719
@xuanhochi1719 3 года назад
Dear anyone Before using stripe read this article Any company you open up, only operate for about 1 month and then force them to close , Is this a specialty of Stripe ? or specialties of the American nation ? Do you know how much it costs to open a company? The people who support are disgusting, without knowledge
@StripeDev
@StripeDev 3 года назад
Hey Xuan-we're sorry to hear if this was your experience with us. We'd like to help-could you send us an email at heretohelp@stripe.com so we can investigate things further with you?
Далее
Accept a payment - Create a PaymentIntent with Java
10:11
Who Owns Your Domain? And Who is it Registered With?
5:11
why I left stripe
8:18
Просмотров 17 тыс.
Introduction to the Stripe CLI
34:19
Просмотров 57 тыс.
How Stripe Conquered Payments
4:33
Просмотров 61 тыс.