#syed-payments

1 messages · Page 1 of 1 (latest)

lavish igloo
#

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)

still badger
#

Hi there! I would like to do it using Checkout

lavish igloo
#

Specifically, you'd set custom_unit_amount[enabled]: true

still badger
#

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

lavish igloo
#

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?

still badger
#

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...

▶ Play video
#

(I can explain further if my current explanation doesn't fully make sense as well)

lavish igloo
#

Ah gotcha! Then you don't need to be worrying about using custom amounts with Checkout at al

#

You'd use Checkout in setup mode to just gather payment details, and then when it's time to charge the user you'd just create a Payment Intent with any amount you choose to charge them