#abishek-products
1 messages · Page 1 of 1 (latest)
@molten tide you actually can't use Prices with PaymentIntents, they just take raw amounts in the API.
you'd use Prices with Checkout, or Invoices, or Subscriptions.
so, if I wanted to charge a customer for a Price, how do I go about doing it?
you'd use Checkout or Invoices or Subscriptions , it depends what you already have or your overall integration and development resources!
For example one of the easier ways would be to use Checkout : https://stripe.com/docs/payments/accept-a-payment?platform=web&ui=checkout (in step 2 it uses price_data to create an ad-hoc price but instead you could pass price:"price_xxx" to use your existing one).
i am actually trying to do it through PHP and not using the web checkout.
so, should I raise and invoice for the Price and then finalize it?
is that how I charge a user for a price?
what I don't see is for a way to set the one time price when creating an invoice https://stripe.com/docs/api/invoices/create?lang=php
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
ah, so I have to create an Invoice Item with the Price and then create an invoice for the customer