API Explorer
You are viewing an old version of the API

Create payment

Charges a payment source, for example, a card represented by customer's card on file or a card nonce.

Open in API Reference

Sign In

Body

Money
string
string
boolean
Money
boolean
Address
string
string
string
string
string
string
string
Address
string
Money
string
Request
cURL
  • cURL
  • Ruby
  • Python
  • C#
  • Java
  • PHP
curl https://connect.squareupsandbox.com/v2/payments \
  -X POST \
  -H 'Square-Version: 2020-09-23' \
  -H 'Authorization: Bearer ACCESS_TOKEN' \
  -H 'Content-Type: application/json' \
  -d '{}'
Response
// No response received yet.

Share Feedback

Thanks for visiting the Square API documentation. What's on your mind?