What Api do I call to send customer information, amount to charge and credit card info on a online checkout page using cURL

what Api do I call to send customer information, amount to charge and credit card info on a online checkout page using cURL

:wave: I’m Square Dev AI, here to help answer your question!
Based on the information you’ve provided, the following documentation will help answer your question:

Additional Documentation

Charge a Card on File
Checkout API Overview
Using the REST API

If this documentation helped you find a solution, please check the box indicating that this reply solves the problem.
Otherwise one of our Developer Advocates will provide additional assistance shortly.

I am not looking to save the credit card I want to send a one time transaction

I am looking for the api to pass in the credit card information and the amount and the customer info for a one time transaction. All I see is your company showing how to save a card.

Mike

To create an online checkout page, you can use the Checkout API. However, for security reasons, you should not directly send credit card information through an API call. Instead, you should use the Web Payments SDK or In-App Payments SDK to securely collect card information and generate a payment token.

Here’s a basic workflow:

  1. Use the Web Payments SDK or In-App Payments SDK on your checkout page to collect card information and generate a payment token.

  2. Use the Customers API to create a customer profile with the customer’s information.

  3. Use the Cards API to save the card for the customer using the payment token generated in step 1.

  4. Use the Checkout API to create a checkout page. In the request, you can specify the amount to charge and the customer ID.

Please note that you should always ask customers for permission before saving their card information.

This answer was reviewed by @Bryan-Square.