# Web Payments quickstart not working

**URL:** <https://developer.squareup.com/forums/t/web-payments-quickstart-not-working/17723>\
**Category:** Questions\
**Tags:** payments-api\
**Created:** [July 9, 2024, 11:05pm UTC](https://developer.squareup.com/forums/t/web-payments-quickstart-not-working/17723 "2024-07-09T23:05:29Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![BVB](https://avatars.discourse-cdn.com/v4/letter/b/848f3c/32.png) [@BVB](https://developer.squareup.com/forums/u/BVB)\
**Post date:** [July 9, 2024, 11:05pm UTC](https://developer.squareup.com/forums/t/web-payments-quickstart-not-working/17723/1 "2024-07-09T23:05:29Z")

</div>

Hi,

I am unable to get a sandbox payment to work using the quickstart app. All I need to do is add the Payments API to my website, but the instructions for doing that are virtually non-existent. Or else I just don’t know where to look.

I did configure the API using the Create Payment application but I get errors. Is there a good tutorial out there somewhere that can walk me step by step on how to implement the API on my website?

---

<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:** [July 9, 2024, 11:05pm UTC](https://developer.squareup.com/forums/t/web-payments-quickstart-not-working/17723/2 "2024-07-09T23:05:46Z")

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

> **[In-App Payments SDK Quickstart](https://developer.squareup.com/docs/in-app-payments-sdk/quick-start)**
>
> Learn how to set up an application that embeds the Square In-App Payments SDK.

> **[In-App Payments SDK Quickstart](https://developer.squareup.com/docs/in-app-payments-sdk/quick-start/start)**
>
> Learn how to set up an application that embeds the Square In-App Payments SDK.

> **Additional Documentation**
>
> [Make your First API Call](https://developer.squareup.com/docs/get-started/make-api-request)  
> [Payment API: Process Online and In-Person Payments](https://developer.squareup.com/docs/payments)  
> [In-App Payment Solutions](https://developer.squareup.com/docs/in-app-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:** ![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:** [July 9, 2024, 11:06pm UTC](https://developer.squareup.com/forums/t/web-payments-quickstart-not-working/17723/3 "2024-07-09T23:06:42Z")

</div>

To integrate Square Payments API into your website, you can use the Web Payments SDK. This SDK provides a customizable UI for a secure, PCI-compliant way of accepting supported payment methods on your website.

Here are the general steps you need to follow:

1. Add the Web Payments SDK to your website. This SDK will allow you to accept payment methods and generate a secure payment token.

2. On your server-side, you will use the Payments API to process the payment. You will send a CreatePayment request to the Payments API, providing the payment token generated by the Web Payments SDK.

3. Square will process the payment and return a Payment object in the response. This object will contain information about the transaction.

For a more detailed guide, you can refer to the Web Payments SDK Overview and the guide on how to Take Payments. These guides provide step-by-step instructions on how to integrate the Web Payments SDK and Payments API into your website.

If you’re testing in the Square Sandbox, remember to use the Sandbox credentials (access token and application ID) and the Sandbox environment URL ([https://connect.squareupsandbox.com](https://connect.squareupsandbox.com)).

If you’re still encountering errors, it would be helpful to know the specific error messages you’re receiving to provide more targeted assistance.

_This answer was reviewed by @Bryan-Square._

---

<div class="post-metadata">

**Author:** ![Bryan-Square](https://sea1.discourse-cdn.com/square/forums/user_avatar/developer.squareup.com/bryan-square/32/38_2.png) [@Bryan-Square](https://developer.squareup.com/forums/u/Bryan-Square)\
**Post date:** [July 9, 2024, 11:07pm UTC](https://developer.squareup.com/forums/t/web-payments-quickstart-not-working/17723/4 "2024-07-09T23:07:47Z")

</div>

Also our [Quickstart](https://developer.squareup.com/docs/web-payments/quickstart) walkthrough has a full working example. 🙂

---

<div class="post-metadata">

**Author:** ![BVB](https://avatars.discourse-cdn.com/v4/letter/b/848f3c/32.png) [@BVB](https://developer.squareup.com/forums/u/BVB)\
**Post date:** [July 10, 2024, 11:31pm UTC](https://developer.squareup.com/forums/t/web-payments-quickstart-not-working/17723/6 "2024-07-10T23:31:26Z")

</div>

OK, so I already have the quickstart example project. That’s what I mentioned in my original post. I use xampp as my local test server on my home computer. The quickstart project mentions installing Node.js. I really don’t have to do that, do I?

I’m goinf to try implementing the SDK without using the quickstart stuff.

---

<div class="post-metadata">

**Author:** ![Bryan-Square](https://sea1.discourse-cdn.com/square/forums/user_avatar/developer.squareup.com/bryan-square/32/38_2.png) [@Bryan-Square](https://developer.squareup.com/forums/u/Bryan-Square)\
**Post date:** [July 10, 2024, 11:40pm UTC](https://developer.squareup.com/forums/t/web-payments-quickstart-not-working/17723/7 "2024-07-10T23:40:03Z")

</div>

Yes, for that Quickstart it relies on Node.js. That’s why in the README.md section one of the first things it has you do is to run `npm install` in the directory. 🙂

---

<div class="post-metadata">

**Author:** ![BVB](https://avatars.discourse-cdn.com/v4/letter/b/848f3c/32.png) [@BVB](https://developer.squareup.com/forums/u/BVB)\
**Post date:** [July 11, 2024, 12:14am UTC](https://developer.squareup.com/forums/t/web-payments-quickstart-not-working/17723/8 "2024-07-11T00:14:09Z")

</div>

I think I have it solved. I am using PHP so I downloaded and installed the PHP SDK. I was able to get a successfule sandbox payment

---

<div class="post-metadata">

**Author:** ![Bryan-Square](https://sea1.discourse-cdn.com/square/forums/user_avatar/developer.squareup.com/bryan-square/32/38_2.png) [@Bryan-Square](https://developer.squareup.com/forums/u/Bryan-Square)\
**Post date:** [July 11, 2024, 3:42pm UTC](https://developer.squareup.com/forums/t/web-payments-quickstart-not-working/17723/9 "2024-07-11T15:42:50Z")

</div>

Glad to hear that you got it to work. 🙂
