# Regarding Adding payment in square API

**URL:** <https://developer.squareup.com/forums/t/regarding-adding-payment-in-square-api/251>\
**Category:** Questions\
**Tags:** payment-form\
**Created:** [May 14, 2020, 1:09pm UTC](https://developer.squareup.com/forums/t/regarding-adding-payment-in-square-api/251 "2020-05-14T13:09:31Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![ezhilan](https://avatars.discourse-cdn.com/v4/letter/e/dc4da7/32.png) [@ezhilan](https://developer.squareup.com/forums/u/ezhilan)\
**Post date:** [May 14, 2020, 1:09pm UTC](https://developer.squareup.com/forums/t/regarding-adding-payment-in-square-api/251/1 "2020-05-14T13:09:32Z")

</div>

1)I am trying to add payment through square api POST /v2/payments

 ![image](https://global.discourse-cdn.com/square/original/1X/20ebd11a641a4e1323f5c9985050f382570eda8a.png)  
in that its asking for source\_id , where or how i can find that source\_id,

2)can u suggest how can i add payments in my test account for testing purpose

---

<div class="post-metadata">

**Author:** ![sjosey](https://sea1.discourse-cdn.com/square/forums/user_avatar/developer.squareup.com/sjosey/32/40_2.png) [@sjosey](https://developer.squareup.com/forums/u/sjosey)\
**Post date:** [May 14, 2020, 4:45pm UTC](https://developer.squareup.com/forums/t/regarding-adding-payment-in-square-api/251/2 "2020-05-14T16:45:30Z")

</div>

1. `source_id` will either be a `nonce` that is generated via the [Square Payment Form](https://developer.squareup.com/docs/payment-form/overview), or a `customer_card_id` from a customer’s saved card on file. I would suggest taking a look at the [Overview](https://developer.squareup.com/docs/payments-api/overview) for more information.
2. We have [Sandbox Test Values](https://developer.squareup.com/docs/testing/test-values) that you can use

---

<div class="post-metadata">

**Author:** ![ezhilan](https://avatars.discourse-cdn.com/v4/letter/e/dc4da7/32.png) [@ezhilan](https://developer.squareup.com/forums/u/ezhilan)\
**Post date:** [May 15, 2020, 12:25pm UTC](https://developer.squareup.com/forums/t/regarding-adding-payment-in-square-api/251/3 "2020-05-15T12:25:42Z")

</div>

Thanks…for the clarification
