Create payment for Catalog Item

I have a catalog item that I would like to programmatically create a payment for via the createPaymentsAPI. It seems like createPaymentAPI can only be used for dollar amount charges. Am I missing something? any help please?

Hey there, check out the create order documentation here: https://developer.squareup.com/docs/orders-api/create-orders

You can put items into Orders, and make Payments on those Orders. The Order creates an instance of the item to “sell”, otherwise you cannot pay for a plain “item” out of the Catalog.

yo thank you!! i did not think to even check that API. exactly what i needed. bless!

quick one. with this approach are these the correct steps?

1 - create order
2 - create payment
3 - pay order (using payment id, where payment total equals order total)

That’s the gist! Step 3 may not always be necessary.

okay great. i just figured an order id could be passed with createPayment api. however, when I created a payment for an order and passed in the order ID, the order status still shows up as open. How does the state get updated?

Hi, look at the make request documentation here: https://developer.squareup.com/docs/orders-programming interface/make orders 2

You can place things into Orders, and make Payments on those Orders. The Order makes an example of the thing to “sell”, else you can’t pay for a plain “thing” out of the Catalog.