square-connect

How to get Nonce for Card using Square API from Backend

拜拜、爱过 提交于 2021-02-07 20:25:57
问题 In my application i need to process Cards from backend, I am already doing this with other payment gateways but for Square Connect I can't find anything. My Question is how to generate Square Card Nonce from the backend? What API I should call ? Gone through their entire documentation. 回答1: We have the same problem. Square seems to be tailored for simple ecom sites. Sites that are not PCI compliant. We are PCi Level 1. And we have a custom payment form. Square requires that you have to use

Need to get CardNonce and CANNOT get Callback?

女生的网名这么多〃 提交于 2020-01-07 08:22:06
问题 I'm trying to follow this example to submit credit card information and get back a CardNonce. https://docs.connect.squareup.com/articles/adding-payment-form/ The form works. I can enter in all the information. I press the button and the function requestCardNonce() IS getting called because I inserted a debug statement to bring up a message box window.alert("IN requestCardNonce"); and it shows up after I click the button. HOWEVER, I cannot seem to get cardNonceResponseReceived to work after I

Square: Value was not expected to be a string

天涯浪子 提交于 2019-12-25 11:56:20
问题 I'm getting a "Value was not expected to be a string" error. I've validated the JSON request with a validator and I've ensured that all values are enclosed within double quotes. However when it tells me the length (in this example, 500) it is greater than the length of the JSON itself. [category] => INVALID_REQUEST_ERROR [code] => BAD_REQUEST [detail] => Value was not expected to be a string (line 1, character 500) Using: { "idempotency_key": "1", "billing_address": { "address_line_1": "123

Square: Card nonce not found in this `sandbox` application environment

流过昼夜 提交于 2019-12-24 20:29:26
问题 I am receiving the following error when trying to run the demonstration from the Square SDK: Card nonce not found in this sandbox application environment. Please ensure an application ID belonging to the same environment is used for the SqPaymentForm. When I echo '<pre>';print_r($request_body); echo '</pre>'; I receive the following: Array ( [card_nonce] => 123456789098765432123456789 [amount_money] => Array ( [amount] => 100 [currency] => USD ) [idempotency_key] => 59cd807f20ce2 ) It appears

Uploading Item Image using Square Connect API

喜欢而已 提交于 2019-12-24 10:38:45
问题 I've reviewed the examples posted in the Square Connect API documentation and the examples on GitHub, however, I can't seem to adapt these examples to the guidance on uploading images: http://docs.connect.squareup.com/#post-image Part of the challenge is working with the Content-Type: multipart/form-data which only the image upload requires so the documentation is non-existent (with the connect-api docs). My ultimate question is, can Square please post an example of how to upload images? Most

Square API and ColdFusion

我的未来我决定 提交于 2019-12-24 08:02:16
问题 I am trying to take an existing ColdFusion website that currently uses Authorize to process cards. I would like to switch over the payment gateway and use Square. Does anyone have any sample ColdFusion code on how to use the Square API as a payment gateway? 回答1: Here is a gist another developer has used <cfset IDKey = CreateUUID()> <cfset request.params.card_nonce = form.nonce> <cfset request.params.amount_money.amount = 100> <cfset request.params.amount_money.currency = 'USD'> <cfset request

Android support for the Square Register API?

主宰稳场 提交于 2019-12-13 05:58:45
问题 I am in the in the process of developing point of sale applications for restaurants for both iPhone and Android. I wanted to use Square to process all the credit card sales seamlessly with my apps, but Square Register API is not available for Android. Would Square Connect allow my app to integrate in a way where the customer's food order can be taken inside my app, and then Square automatically be launched to allow the customer to pay (pre-populating the dollar amount), and then switch back

Checkout API Setup Guide references commands that kill test pages AND do not exist in API

被刻印的时光 ゝ 提交于 2019-12-13 03:56:21
问题 The following code snippets in the Checkout API Setup Guide at https://docs.connect.squareup.com/payments/checkout/setup references GetID() cause the page to fail and are not in the API: $checkoutId = $result->getId(); AND $checkoutUrl = $result->getCheckoutPageUrl(); In fact, I cannot find reference to those commands anywhere in the technical docs or API reference except on the Setup Guide. Is the Setup Guide wrong or am I missing something? Is Checkout not fully live? I am not sure why a

Access using https redirect-url is denied at Square Connect Authorize

心已入冬 提交于 2019-12-12 05:28:54
问题 I am using Square Connect and have a trouble using OAuth API. (Square Connect OAuth API) When I set a https redirect-url at the apps page, the endpoint gives me an error response without showing a sign-in page. If I send the same request setting localhost (http), it works fine. Why do I get access-denied? Is there any extra things I need to do for https redirect-url? Details for https redirect-url (Failed) SSL is self-signed certificate, redirect url is https://{MY_SERVER}/callback , and

How to Load Square Payment Form in Shadow DOM

隐身守侯 提交于 2019-12-12 04:31:31
问题 I am trying to create a Web Component for the Square Payment form, but am having trouble getting it to load into the shadow DOM. I am wondering whether or not this is possible, since the form is populated with a script from the Square CDN. Has anyone had any luck with this use case? I am using code from an example on https://docs.connect.squareup.com/articles/adding-payment-form and inserting it into a Web Component template. The full code example is on Codepen. https://codepen.io/kvnapavl