# Confirmation Regarding Credit Card Testing in Production Environment with Square Payment-links API

**URL:** <https://developer.squareup.com/forums/t/confirmation-regarding-credit-card-testing-in-production-environment-with-square-payment-links-api/19066>\
**Category:** Questions\
**Tags:** payments-api, sandbox\
**Created:** [October 7, 2024, 1:37pm UTC](https://developer.squareup.com/forums/t/confirmation-regarding-credit-card-testing-in-production-environment-with-square-payment-links-api/19066 "2024-10-07T13:37:04Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![ymym1100](https://avatars.discourse-cdn.com/v4/letter/y/c89c15/32.png) [@ymym1100](https://developer.squareup.com/forums/u/ymym1100)\
**Post date:** [October 7, 2024, 1:37pm UTC](https://developer.squareup.com/forums/t/confirmation-regarding-credit-card-testing-in-production-environment-with-square-payment-links-api/19066/1 "2024-10-07T13:37:04Z")

</div>

I am currently testing subscription payments using the Square API. Since I was unable to enter credit card information in the sandbox environment with Payment Links, I switched to production and am now testing payments after entering card details. As a developer, I’ve been repeatedly entering and canceling my own credit card information during these tests. I understand there are no penalties for doing this, correct? I’m writing this for confirmation, just to be sure. I would appreciate your guidance.

---

<div class="post-metadata">

**Author:** ![Square-Dev-AI](https://sea1.discourse-cdn.com/square/forums/user_avatar/developer.squareup.com/square-dev-ai/32/2513_2.png) [@Square-Dev-AI](https://developer.squareup.com/forums/u/Square-Dev-AI)\
**Post date:** [October 7, 2024, 1:37pm UTC](https://developer.squareup.com/forums/t/confirmation-regarding-credit-card-testing-in-production-environment-with-square-payment-links-api/19066/2 "2024-10-07T13:37:16Z")

</div>

👋 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:

> **[Sandbox Payments](https://developer.squareup.com/docs/devtools/sandbox/payments)**
>
> A quick reference of test credit card numbers and payment tokens you can use to make test payments with the Square Sandbox.

> **[Test in the Sandbox](https://developer.squareup.com/docs/devtools/sandbox/testing)**
>
> A quick reference for walkthroughs for various Square APIs that use the Sandbox for testing.

> **Additional Documentation**
>
> [Square Sandbox](https://developer.squareup.com/docs/devtools/sandbox/overview)  
> [Postman](https://developer.squareup.com/docs/devtools/postman)  
> [Payment API: Process Online and In-Person Payments](https://developer.squareup.com/docs/payments)

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.

---

<div class="post-metadata">

**Author:** ![ymym1100](https://avatars.discourse-cdn.com/v4/letter/y/c89c15/32.png) [@ymym1100](https://developer.squareup.com/forums/u/ymym1100)\
**Post date:** [October 7, 2024, 2:26pm UTC](https://developer.squareup.com/forums/t/confirmation-regarding-credit-card-testing-in-production-environment-with-square-payment-links-api/19066/3 "2024-10-07T14:26:28Z")

</div>

Contrary to the content of this document, the actual Square payment page you are redirected to through Checkout Payment Links in the sandbox environment states that credit card entry is not allowed.

---

<div class="post-metadata">

**Author:** ![Square-Dev-AI](https://sea1.discourse-cdn.com/square/forums/user_avatar/developer.squareup.com/square-dev-ai/32/2513_2.png) [@Square-Dev-AI](https://developer.squareup.com/forums/u/Square-Dev-AI)\
**Post date:** [October 7, 2024, 5:52pm UTC](https://developer.squareup.com/forums/t/confirmation-regarding-credit-card-testing-in-production-environment-with-square-payment-links-api/19066/4 "2024-10-07T17:52:13Z")

</div>

Yes, you are correct. While testing in the production environment, you can use your own credit card information to make payments and then cancel them. There are no penalties for doing this. However, please be aware that while the funds will be returned to your card after cancellation, it may take a few days for the refund to process depending on your bank’s policies.

_This answer was reviewed by @Bryan-Square._

---

<div class="post-metadata">

**Author:** ![ymym1100](https://avatars.discourse-cdn.com/v4/letter/y/c89c15/32.png) [@ymym1100](https://developer.squareup.com/forums/u/ymym1100)\
**Post date:** [October 8, 2024, 3:16am UTC](https://developer.squareup.com/forums/t/confirmation-regarding-credit-card-testing-in-production-environment-with-square-payment-links-api/19066/5 "2024-10-08T03:16:03Z")

</div>

Thank you for your reply. I’m relieved that I now understand. I look forward to your continued support.
