#syed-payments
1 messages · Page 1 of 1 (latest)
Hello! Are you trying to do this through Checkout (our own hosted page) or with plain Payment Intents + elements (on a page you build yourself)
Hi there! I would like to do it using Checkout
Gotcha! So I believe you'd need to create a price with custom_unit_amount set (https://stripe.com/docs/api/prices/create#create_price-custom_unit_amount)
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
Specifically, you'd set custom_unit_amount[enabled]: true
hmmmm so I would essentially create a custom price and then feed that into paymentintent api via Stripe::Price.retrieve()? Just want to double check to make sure I'm understanding correctly
No if you're using Checkout you wouldn't be working with Payment Intents directly - is there a specific reason you're focusing on Payment Intents?
Yeah so for the site I'm making, users can set goals and specify a certain amount of money that is to be taken if they fail to hit that goal. It checks at the end of the week whether or not the target has been hit.
I was following along with the video guide in the docs I linked (https://youtu.be/S1WJuhGkY88) and from what I understand, I would need to use PaymentIntents to charge customers at a later date (not sure if my understanding is correct, would appreciate if you could point out if I'm wrong)
Learn how to collect payment details using Checkout's setup mode, which stores the payment method on file for future payments using the Setup Intents API.
Presenter
CJ Avilla - Developer Advocate at Stripe - https://twitter.com/cjav_dev
Table of contents
00:00 Introduction
00:36 Add a checkout button
00:42 Add an endpoint to your serv...
(I can explain further if my current explanation doesn't fully make sense as well)