square/connect
Retired Square Connect PHP SDK (EOL 2020-06-10). No longer receives updates or fixes. Migrate to the new Square PHP SDK: require square/square, update namespaces from SquareConnect\ to Square, and adjust client/response handling per docs.
Square is excited to announce the public release of customized SDK for PHP
To align with other Square SDKs generated for SQUARE API version 2020-05-28, the initial version of this PHP SDK is 5.0.0.20200528
Orders API
Order.rewards represents rewards added to an order by calling the CreateLoyaltyReward endpoint.Order.discount.reward_ids indicates that a discount is the result of the specified rewards that were added to an order using the CreateLoyaltyReward endpoint.Customers API
email_address query filter (beta) supports an exact or fuzzy search for customer profiles by their email addresses.phone_number query filter (beta) supports an exact or fuzzy search for customer profiles by their phone numbers.reference_id query filter (beta) supports an exact or fuzzy search for customer profiles by their reference IDs.created_at, updated_at, and id attributes on the Customer resource are updated to be optional. As a result, they no longer are required input parameters when you call the Square SDKs to create a Customer object. You might need to update the dependent SDKs to the latest version to mediate breaking your existing code.scopes property from the request body.limit field removed from ListCustomerSegments endpoint.Note: This release fixes a bug introduced on the April 22, 2020 release of the Square API.
Terminal API. The new Terminal API lets a custom third-party POS app integrate with the Square Terminal to send terminal checkout requests to collect payments.
Devices API. The new Devices API lets a custom third-party POS app generate a code used to sign in to a Square Terminal to create a pairing that lets the POS app send terminal checkout requests. For technical reference, see Devices API.
Customer Groups API (beta). The new Customer Groups API (Beta) enables full CRUD management of customer groups, including the ability to list, retrieve, create, update, and delete customer groups. Previously, this functionality was only available through the Square dashboard and point-of-sale product interfaces.
Customer Segments API (beta). The new Customer Segments API (Beta) lets you list and retrieve customer segment (also called smart groups) information. Coupled with the new segment_ids field on the customer resource, this API lets you better understand and track the customer segments to which a customer belongs.
New webhooks. v2 Webhooks (beta) now supports webhooks for the following APIs:
order.created, order.updated, and order.fulfillment.updatedterminal.checkout.created and terminal.checkout.updateddevice.code.pairedFor more information, see Subscribe to Events.
Customers API
group_ids field. Added to designate groups the customer is in.segment_ids field. Added to designate segments the customer is in.groups field. Deprecated to be replaced by group_ids and segment_ids. It remains supported for one year from this release.filter parameter. Updated as follows:
group_ids filter. Added to search for customers based on whether they belong to any, all, or none of the specified groups.Orders API
is_curbside_pickup. This Boolean field indicates curbside pickup.CurbsidePickupDetails. This type provides supporting information for curbside pickup, including a buyer description (for example, "buyer is in a red car") and a timestamp when the buyer arrived for the pickup.OAuth API
Catalog API
CatalogItemProductType. The ENUM value GIFT_CARD is now deprecated.Payments API. See Take Payments and Collect Fees for updated information about permission requirements, Square reporting of the application fee collected by an app, and how to collect fees internationally.
delay_duration. In a CreatePayment request, you can set autocomplete to false to get payment approval but not charge the payment source. You can now add this field to specify a time period to complete (or cancel) the payment. For more information, see Delay capture.delay_action. Defines the action that Square takes on the payment when the delay_duration elapses. In this release, the API supports only the cancel payment action.delayed_until. Provides the date and time on Square servers when Square applies delay_action on the payment.GA release: All SDKs have been updated to support the new Bank Accounts and CashDrawerShifts APIs.
Beta release: All SDKs have been updated to support the new Disputes API.
Documentation Changes
New field: The Employee object now has an is_owner field.
New enumeration: The CardBrand enumeration has a new SQUARE_CAPITAL_CARD enum value to support a Square one-time Installments payment.
New request body field constraint: The Refund Payment request now requires a payment_id.
Patch user-agent to 2.20191217.1
Square is excited to announce the public release of customized SDKs for Java and .NET. For more information, see Square SDKs.
GA release: SDKs updated to support new receipt_url and receipt_number fields added to the Payment type.
Beta release: SDKs updated to support the new CashDrawerShifts API.
Square now follows the semantic versioning scheme for all SDKs except PHP and Node.js. This versioning scheme uses three numbers to delineate MAJOR, MINOR, and PATCH versions of our SDK. In addition, the SDK version also includes the API version so you know what Square API version the SDK is related to. For more information, see Versioning and SDKs.
Java, .Net, Python, and Ruby SDKs are now version 4.0.0. Java and .Net SDKs have breaking changes in version 4.0.0. Ruby and Python do not have breaking changes.
Important: Square has begun the retirement process for Connect v1 APIs. See the Connect v1 Retirement information page for details. !!!
GA releases: SDKs now support the new modify_tax_basis field to Discounts and v2 Sandbox
BETA releases: SDKs now support the Shifts API webhooks for Labor shift created, updated, deleted, CreateLocation endpoint, and the ability to customize statement description in Payments API.
Deprecated: Support for v1Items API and v1Locations API is fully deprecated.
GA release: All SDKs have been updated to support the new Merchants API.
Beta release: All SDKs have been updated to support the new endpoints (RetrieveLocation, UpdateLocation) added to the Locations API.
Beta release: All SDKs have been updated to support the new field (mcc) added to the Location type.
GA release: All SDKs have been updated to support the new field (bin) added to the Card type.
GA release: All SDKs have been updated to support the new CardPaymentDetails fields (verification_results, statement_description, and verification_method).
GA release: All SDKs have been updated to support the new Payment field, (employee_id).
UpdateOrderCatalogItem.image_url field (deprecated under Square-Version YYYYMMDD) is retired and no longer included in Connect SDKs.Transaction.Charge and Customers.CreateCustomerCard request objects — now include the verification_token required for Strong Customer Authentication.Order entities — now include a source field that contains details on where the order originated.Beta functionality: Orders API — support for fractional quantities, expanded metadata, and embedded information on payments, refunds, and returns.
Locations.business_hours — read-only field with
information about the business hours at a particular location.V1Tender.CardBrand — New V1 enum to represent
brand information for credit cars.source)
that encapsulates the origination details of an order.v2_id field that makes it
easier to link information from Connect v1 endpoints to related Connect v2
Catalog objects:
image_id to CatalogObjectimage_url field in CatalogItem in favor of a richer
CatalogImage data type.CatalogObject level.timecard_id as path parameter for ListTimecardEvents endpointended_at to string type for V1CashDrawerShift typeThe Labor API now includes functionality that gives a Square account the ability to track and retrieve employee labor hours including multiple hourly wage rates per employee, work shift break tracking, and standardized break templates.
See the Connect v2 Technical Reference.
The Employees API includes the ability to list employees for a Square account and retrieve a single employee by ID.
See the Connect v2 Technical Reference.
The RenewToken endpoint is now deprecated and replaced with new functionality in ObtainToken. ObtainToken now returns a refresh token along with an access token. Refresh tokens are used to renew expired OAuth access tokens.
The Orders API now includes beta functionality that supports in-person fulfillment through Square Point of Sale for orders placed online.
The CreateOrderRequest datatype now groups order details under a single
object.
The CreateOrderResponse datatype now retains structure of order-level
price adjustments in addition to converting them to scoped, line-item price
adjustments. Previously, CreateOrderResponse did not preserve the original
order-level price-adjustment objects.
Requests to the ListCustomers endpoint now returns all available customer profiles. Previously, ListCustomers only returned customer profiles explicitly created through the Customers API or Square Point of Sale.
Requests to the CreateCustomer endpoint now include a idempotency_key field to
ensure idempotent creation of new profiles.
The Connect SDK now supports refund adjustments for the Connect v1
Refunds API with the addition of multiple new fields in the Refund data type
The Connect SDK now supports partial payment functionality for the Connect v1 Transactions API with the addition of a new Payment field:
Payment.is_partial — Indicates whether or not the payment is only partially paid for. If true, the payment will have the tenders collected so far, but the itemizations will be empty until the payment is completed.Tender also includes 2 new fields to help resolve timing around payments with multiple tenders. Invoices that involve partial payment (e.g., requiring a deposit) may include tenders settled well before the entire payment is completed:
Tender.tendered_at — The time when the tender was accepted by the merchant.Tender.settled_at — The time when the tender was captured, in ISO 8601 format. Typically the same as (or within moments of) tendered_at unless the tender was part of a delay capture transaction.The change also makes some behavioral changes to the Connect v1 Payment endpoints:
include_partial to indicate whether partial payments should be included in the response.How can I help you explore Laravel packages today?