square-connect

How to load External Javascript Libraries into Angular 4 components

断了今生、忘了曾经 提交于 2019-12-07 07:29:22
I have a problem where I need to use a specific 3rd party library to generate a nonce to use the square connect api. I am having troubles finding how to load the external javascript library since they don't have a node_module that I can load like I usually do. By external library I mean something like this <script src="https://js.squareup.com/v2/paymentform " type="text/javascript"> I have not found a good way to to load this into my application so that I can use it. Any ideas on how I can solve this problem? A few options that I have used: Global script using angular-cli "scripts": [ "global

Access customer information using Square Connect API

冷暖自知 提交于 2019-12-05 15:05:35
Is it possible to access any information about a merchant's customers using the Square Connect API? The most ideal piece of information would be the email address customers enter for their receipt, but but some type of unique customer id would be nice to determine repeat customers. Looking through the Square Connect API Documents there are no endpoints for customers and Payment objects do not include any of this information. Is there another Square API with this capability? Not at this time. Regarding customer email addresses obtained for receipts, from the Square help center : Based on our

Square Connect API - image upload - Empty Reply From Server code 52 error

好久不见. 提交于 2019-12-02 20:17:33
问题 Trying to get square connect API image upload working using PHP. I used the square connect API guide: docs.connect.squareup.com/api/connect/v1/#post-image Tried two different ways based on what I found on StackOverflow and Google searching. Method 1) regular curl request: https://gist.github.com/delalis/17c3c111e3b42df127ed Method 2) using CURLFile (php >=5.5 only) https://gist.github.com/delalis/5c7ecc2aaa024927b360 Both methods gave me this empty reply from server error: Error: "Empty reply

EXPECTED_INTEGER — Issues with Square payment portal

无人久伴 提交于 2019-12-02 02:19:02
问题 I'm having issues accepting payment through my ecommerce site. This only seems to happen randomly, I've accepted payment previous without issue but every so often this happens. Square API didn't have any description with the error code. Array ( [0] => stdClass Object ( [category] => INVALID_REQUEST_ERROR [code] => EXPECTED_INTEGER [detail] => Expected an integer value. [field] => amount_money.amount ) ) Order status changed from Pending payment to Failed. 回答1: This error occurs whenever you

Is there any sandbox test account for Square?

一世执手 提交于 2019-12-01 23:39:24
问题 I am trying to develop a wrapper for the Square Connect API. I am looking for a sandbox account or a way to import test data to a new account so I can get started quickly with the development side. Thank you! 回答1: For future reference for people who land here from Google, Square now offers this. Every account is given a set of sandbox credentials, as well as there is an anonymous sandbox you can use without logging in. Login here and create an application. Once you create the application,

Is there any sandbox test account for Square?

岁酱吖の 提交于 2019-12-01 21:06:50
I am trying to develop a wrapper for the Square Connect API. I am looking for a sandbox account or a way to import test data to a new account so I can get started quickly with the development side. Thank you! Vic Amuso For future reference for people who land here from Google, Square now offers this. Every account is given a set of sandbox credentials, as well as there is an anonymous sandbox you can use without logging in. Login here and create an application. Once you create the application, there will be Sandbox settings that you can use. https://connect.squareup.com/apps Here is some more