# How can i create Payment Gateway?

**URL:** <https://developer.squareup.com/forums/t/how-can-i-create-payment-gateway/3380>\
**Category:** Questions\
**Created:** [September 6, 2021, 6:45am UTC](https://developer.squareup.com/forums/t/how-can-i-create-payment-gateway/3380 "2021-09-06T06:45:23Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![nisha](https://avatars.discourse-cdn.com/v4/letter/n/76d3ee/32.png) [@nisha](https://developer.squareup.com/forums/u/nisha)\
**Post date:** [September 6, 2021, 6:45am UTC](https://developer.squareup.com/forums/t/how-can-i-create-payment-gateway/3380/1 "2021-09-06T06:45:23Z")

</div>

Hi!  
we are trying to create a plugin in that we create checkout page i want to create a payment gateway for our plugin for that which api i used plz tell me.

i used create card api then i got like that error =\>\>  
**"detail": "Account is not enabled for card processing, visit [www.squareup.com/activate](http://www.squareup.com/activate)"**  
how can i resolve this type of error .  
We would appreciate it if you could let us know how Square can be used as a payment gateway.

Thanks very much in advance.

---

<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:** [September 7, 2021, 2:56pm UTC](https://developer.squareup.com/forums/t/how-can-i-create-payment-gateway/3380/2 "2021-09-07T14:56:58Z")

</div>

👋 Before you can accept card payments through your Square account in production, you’ll need to complete the last step, which includes a basic identity verification. To complete the activation process:

1. Sign in to your [Square Dashboard](https://squareup.com/dashboard/) \> click **Setup Guide**.
2. Select **Get Paid** \> **Verify Your Identity**.

---

<div class="post-metadata">

**Author:** ![nisha](https://avatars.discourse-cdn.com/v4/letter/n/76d3ee/32.png) [@nisha](https://developer.squareup.com/forums/u/nisha)\
**Post date:** [September 8, 2021, 4:46am UTC](https://developer.squareup.com/forums/t/how-can-i-create-payment-gateway/3380/3 "2021-09-08T04:46:48Z")

</div>

hello bryan,  
We have tried following the above steps for the activation process, but we are facing issues on it.  
Please check the attached screenshot for reference.

Also we would like to know how we can make tests using Sandbox, as we are into development , we were trying to create a Payment gateway, and unable to identify the correct API to use , Where shall the card details be passed?

Please try to reply ASAP, as we are stuck at one point.

 ![image](https://global.discourse-cdn.com/square/original/1X/ec060d00d7271ed4d8ee787c166bd5bb27d885b9.png)

---

<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:** [September 8, 2021, 3:26pm UTC](https://developer.squareup.com/forums/t/how-can-i-create-payment-gateway/3380/4 "2021-09-08T15:26:51Z")

</div>

👋 @nisha, I took a look at your account and see that you aren’t in one of our supported regions for processing production payments. You can still use sandbox and our developer tools with sandbox but you won’t need to complete any additional activation steps. To get started with sandbox visit our [Testing Developer Doc](https://developer.squareup.com/docs/testing/sandbox). 🙂

---

<div class="post-metadata">

**Author:** ![nisha](https://avatars.discourse-cdn.com/v4/letter/n/76d3ee/32.png) [@nisha](https://developer.squareup.com/forums/u/nisha)\
**Post date:** [September 9, 2021, 6:05am UTC](https://developer.squareup.com/forums/t/how-can-i-create-payment-gateway/3380/5 "2021-09-09T06:05:33Z")

</div>

Hello Bryan,

we would like to know how we can make tests using Sandbox, as we are into development , we were trying to create a Payment gateway, and unable to identify the correct API to use , Where shall the card details be passed?  
can you please have a call to discuss the issue, as we really need help.

---

<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:** [September 9, 2021, 4:13pm UTC](https://developer.squareup.com/forums/t/how-can-i-create-payment-gateway/3380/6 "2021-09-09T16:13:17Z")

</div>

Hi @nisha, You will want to use our Web Payments SDK to enter the card details into. With Square [Web Payments SDK](https://developer.squareup.com/docs/web-payments/overview) it provides a secure buyer payment card entry method along with other secure payment methods. The SDK produces a secure one-time use payment token that your application web client sends to your backend, where it is processed as a payment with the [Payments API](https://developer.squareup.com/docs/payments-refunds). The Web Payments SDK was created to make integration with your web application simpler and provide better performance. The SDK provides the following advantages:

- Granular configuration. You only need to write configuration code for the payment methods that your application accepts. Each payment method has its own objects with configuration options appropriate for the method.
- Promise-based pattern. The async/await pattern is used in place of the callback pattern of earlier payment libraries. This pattern lets your application react to events in a more reasonable way with less code.
- Automatic localization. The SDK determines the locale of the buyer’s browser automatically. However, your application can override localization by setting a configuration option.

The Web Payments SDK produces payment tokens from any of the following payment methods:

- [Credit and debit payment cards](https://developer.squareup.com/docs/web-payments/take-card-payment)
- [Google Pay](https://developer.squareup.com/docs/web-payments/google-pay)
- [Apple Pay](https://developer.squareup.com/docs/web-payments/apple-pay)
- [Gift card](https://developer.squareup.com/docs/web-payments/gift-card)
- [ACH](https://developer.squareup.com/docs/web-payments/add-ach) (bank transfer) using Plaid for bank account authentication

To get started, please visit our [Web Payments SDK documentation](https://developer.squareup.com/docs/web-payments/overview).

---

<div class="post-metadata">

**Author:** ![Robb.bd16](https://avatars.discourse-cdn.com/v4/letter/r/94ad74/32.png) [@Robb.bd16](https://developer.squareup.com/forums/u/Robb.bd16)\
**Post date:** [September 24, 2021, 4:51am UTC](https://developer.squareup.com/forums/t/how-can-i-create-payment-gateway/3380/9 "2021-09-24T04:51:09Z")

</div>

> [@Bryan-Square](#):
>
> 👋 @nisha, I took a look at your account and see that you aren’t in one of our supported regions for processing production payments. You can still use sandbox and our developer tools with sandbox but you won’t need to complete any additional activation steps. To get started with sandbox visit our [Testing Developer Doc](https://developer.squareup.com/docs/testing/sandbox). 🙂

Thanks for give me clear information about it, Really appreciate from [MyBalanceNow](https://www.mybalancenow.bid/).

---

<div class="post-metadata">

**Author:** ![nisha](https://avatars.discourse-cdn.com/v4/letter/n/76d3ee/32.png) [@nisha](https://developer.squareup.com/forums/u/nisha)\
**Post date:** [September 25, 2021, 2:50pm UTC](https://developer.squareup.com/forums/t/how-can-i-create-payment-gateway/3380/10 "2021-09-25T14:50:23Z")

</div>

hello Bryan,  
we would like to know sqpaymentform.js file is not working properly in plugin please tell me whats the reason for that.  
Please try to reply ASAP, as we are stuck at that point.

---

<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:** [September 27, 2021, 3:51pm UTC](https://developer.squareup.com/forums/t/how-can-i-create-payment-gateway/3380/11 "2021-09-27T15:51:19Z")

</div>

Hi @nisha, the `SqPaymentForm` is deprecated. Is there a reason that you are building with it or is this with a previous integration? Also are you getting any errors?

---

<div class="post-metadata">

**Author:** ![nisha](https://avatars.discourse-cdn.com/v4/letter/n/76d3ee/32.png) [@nisha](https://developer.squareup.com/forums/u/nisha)\
**Post date:** [September 29, 2021, 5:49am UTC](https://developer.squareup.com/forums/t/how-can-i-create-payment-gateway/3380/12 "2021-09-29T05:49:47Z")

</div>

hello Bryan,

We got an error like that. Please provide me with a solution to that error—  
VM2023 paymentform:1 [Deprecated] On 07/15/2022, SqPaymentForm will be retired and functionality will no longer work. We encourage you to upgrade to the Web Payments SDK [Web Payments SDK Overview](https://developer.squareup.com/docs/web-payments/overview)  
St.\_initialize @ VM2023 paymentform:1  
2VM2023 paymentform:1 Uncaught FormNotReadyError: Cannot call SqPaymentForm#requestCardNonce before the paymentFormLoaded() callback. See Step 4: [Payment Form: How It Works](https://developer.squareup.com/docs/payment-form/how-it-works#the-sqpaymentform-process-flow)  
at bt (VM2023 paymentform:1)  
at Pt (VM2023 paymentform:1)  
at St.requestCardNonce (VM2023 paymentform:1)  
at onGetCardNonce (:7:13)  
at HTMLButtonElement.onclick ((index):1)  
Please respond as soon as possible, as we’ve reached a stalemate.

---

<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:** [September 29, 2021, 4:08pm UTC](https://developer.squareup.com/forums/t/how-can-i-create-payment-gateway/3380/13 "2021-09-29T16:08:03Z")

</div>

The error that you are getting is actually the `FormNotReadyError`. It looks like you are requesting the card nonce before the `SqPaymentForm` is loaded. The deprecation message is just a warning that the `SqPaymentForm` is deprecated. 🙂

Is there any particular reason that you aren’t using the [Web Payments SDK](https://developer.squareup.com/docs/web-payments/overview)?
