Skip to content

Commit

Permalink
deprecate old checkout examples (#470)
Browse files Browse the repository at this point in the history
  • Loading branch information
zenmasterjobo authored Apr 29, 2024
1 parent 81dca52 commit a7e79ec
Show file tree
Hide file tree
Showing 37 changed files with 21 additions and 12 deletions.
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,10 +1,14 @@
# Useful Links
# Deprecated Example
**This Sample Application has been deprecated and is no longer maintained.**
The use of `CreateCheckout` is a deprecated pattern and we now suggest using the `CreatePaymentLink` [endpoint](https://developer.squareup.com/reference/square/checkout-api/create-payment-link). More information [here](https://developer.squareup.com/docs/checkout-api)

### Useful Links

* [C# (.NET) SDK Page](https://developer.squareup.com/docs/sdks/dotnet)
* [Checkout API Overview](https://developer.squareup.com/docs/checkout-api/what-it-does)
* [Checkout in the API Reference](https://developer.squareup.com/reference/square/checkout-api)

# Website Payment Processing Using the Square Checkout API: Csharp
### Website Payment Processing Using the Square Checkout API: Csharp

This is a simple example application that utilizes Square's Checkout API
using ASP.NET Core Razor. This examples assumes you are familiar with C# development.
Expand All @@ -15,7 +19,7 @@ There are two sections in this ReadMe.
* [Application Flow](#application-flow) - Provides an overview of how the Square
Checkout API integrate in the ASP.NET app.

## Setup
### Setup

To get it running:

Expand All @@ -32,7 +36,7 @@ dotnet run --launch-profile Sandbox

This will start the server on `localhost:5000`, which you can navigate to in your favorite browser.

## Application flow
### Application flow

This is an ASP.NET Core Razor application. The web application implements the
Checkout API to take payments.
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,22 +1,27 @@
# Useful Links
# Deprecated Example
**This Sample Application has been deprecated and is no longer maintained.**
The use of `CreateCheckout` is a deprecated pattern and we now suggest using the `CreatePaymentLink` [endpoint](https://developer.squareup.com/reference/square/checkout-api/create-payment-link). More information [here](https://developer.squareup.com/docs/checkout-api)


### Useful Links

- [PHP SDK Page](https://developer.squareup.com/docs/sdks/php)
- [Checkout API Overview](https://developer.squareup.com/docs/checkout-api/what-it-does)
- [Checkout in the API Reference](https://developer.squareup.com/reference/square/checkout-api)

# Square Checkout Demo
### Square Checkout Demo

This is a simple example application that utilizes Square's Checkout API. This examples does assume you are familiar with PHP development.

It takes a single payment, declared by the user, and creates an order to use in the Checkout API.

## Setup
### Setup

### Requirements
#### Requirements

- 8.0 <= PHP

### Install the PHP client library
#### Install the PHP client library

This sample already includes the `square/square` dependency in its `composer.json` file. To install the client library:

Expand All @@ -29,7 +34,7 @@ This sample already includes the `square/square` dependency in its `composer.jso
php composer.phar install
```

### Specify your application credentials
#### Specify your application credentials

In order for the example to work, you must create a new file `.env` by copying the contents of the `.env.example` file. Edit this file with your application credentials and environment configuration.

Expand All @@ -44,7 +49,7 @@ Open your [developer dashboard](https://developer.squareup.com/). Now supply eit
| SQUARE_ACCESS_TOKEN | `string` | Access Token found at the Developer App Dashboard, Credentials tab. Must match the corresponding `ENVIRONMENT`. |
| SQUARE_LOCATION_ID | `string` | Location found at the Developer App Dashboard, Location tab. Must match the corresponding `ENVIRONMENT`. |

## Running the sample
### Running the sample

From the sample's root directory, run:

Expand All @@ -58,6 +63,6 @@ For more information about Checkout please visit:
- https://developer.squareup.com/reference/square/checkout-api
- https://github.com/square/square-php-sdk/blob/master/docs/Api/CheckoutApi.md

## Feedback
### Feedback

Rate this sample app [here](https://delighted.com/t/Z1xmKSqy)!
File renamed without changes.
File renamed without changes.

0 comments on commit a7e79ec

Please sign in to comment.