From 249dabb590f0f0b6d7d1a4e2758131b0b5765cb4 Mon Sep 17 00:00:00 2001 From: Mohan Vanmane Date: Thu, 15 Aug 2019 14:39:11 -0700 Subject: [PATCH] removed mention of Transactions and added TOC bullets in the README. --- connect-examples/v2/csharp_payment/README.md | 4 ++-- connect-examples/v2/java_payment/README.md | 7 +++++-- connect-examples/v2/node_payment/README.md | 9 ++++++++- connect-examples/v2/rails_payment/README.md | 11 ++++++++++- 4 files changed, 25 insertions(+), 6 deletions(-) diff --git a/connect-examples/v2/csharp_payment/README.md b/connect-examples/v2/csharp_payment/README.md index 2cfade2a2..517d5f3fd 100644 --- a/connect-examples/v2/csharp_payment/README.md +++ b/connect-examples/v2/csharp_payment/README.md @@ -73,7 +73,7 @@ called the **SqPaymentForm**) you accept payment source information and generate -2. Charge the payment source using the nonce - Using a server-side component, that uses the Connect V2 Transaction API, you charge the payment source using the nonce. +2. Charge the payment source using the nonce - Using a server-side component, that uses the Connect V2 Payments API, you charge the payment source using the nonce. ### Step 1: Generate a Nonce @@ -111,7 +111,7 @@ After the buyer enters their information in the form and clicks **Pay $1 Now**, This invokes the form action **ProcessPayment**, described in next step. ### Step 2: Charge the Payment Source Using the Nonce -All the remaining actions take place in the **ProcessPayment.cshtml.cs**. This server-side component uses the Square .NET SDK C# wrapper library to call the Connect V2 **Transaction** API to charge the payment source using the nonce. +All the remaining actions take place in the **ProcessPayment.cshtml.cs**. This server-side component uses the Square .NET SDK C# wrapper library to call the Connect V2 **Payments** API to charge the payment source using the nonce. ```csharp public void OnPost() { diff --git a/connect-examples/v2/java_payment/README.md b/connect-examples/v2/java_payment/README.md index 1a3fcf091..bd39ad89f 100644 --- a/connect-examples/v2/java_payment/README.md +++ b/connect-examples/v2/java_payment/README.md @@ -1,8 +1,11 @@ # Java Payment Form Example -This example hosts a payment form in Java. It is a Spring Boot app and requires Java 8 or newer. +This example hosts a payment form in Java. It is a Spring Boot app and requires Java 8 or newer. There are two sections in this ReadMe. -## Setting up +* [Setup](#setup) - Provides instructions for you to download and run the app. +* [Application Flow](#application-flow) - Provides an overview of how the Square Payment form integrates in the Java example. + +## Setup First, you'll need to have created a Square application. If you haven't done this yet, you can quickly set on up in the [Square Developer Portal](https://connect.squareup.com/apps). diff --git a/connect-examples/v2/node_payment/README.md b/connect-examples/v2/node_payment/README.md index 467e7ee3b..86a916856 100644 --- a/connect-examples/v2/node_payment/README.md +++ b/connect-examples/v2/node_payment/README.md @@ -1,5 +1,12 @@ # Payment processing example: Node JS +There are two sections in this ReadMe. + +* [Setup](#setup) - Provides instructions for you to download and run the app. +* [Application Flow](#application-flow) - Provides an overview of how the Square Payment form integrates in the Node.js example. + +## Setup + * Open `config.json` and fill in values for squareApplicationId & squareAccessToken & squareLocationId with both your sandbox and production credentials. WARNING: never upload `config.json` with your credentials/access_token. @@ -40,7 +47,7 @@ called the **SqPaymentForm**) you accept payment source information and generate 2. Charge the payment source using the nonce - Using a server-side component, that uses the Connect V2 -**Transaction** API, you charge the payment source using the nonce. +**Payments** API, you charge the payment source using the nonce. The following sections describe how the Node JS sample implements these steps. diff --git a/connect-examples/v2/rails_payment/README.md b/connect-examples/v2/rails_payment/README.md index b4eef1b6b..ec5f1290f 100644 --- a/connect-examples/v2/rails_payment/README.md +++ b/connect-examples/v2/rails_payment/README.md @@ -1,4 +1,12 @@ -# README +# Payment processing example: Ruby On Rails + + +There are two sections in this ReadMe. + +* [Setup](#setup) - Provides instructions for you to download and run the app. +* [Application Flow](#application-flow) - Provides an overview of how the Square Payment form integrates in the Rails example. + +## Setup The root page has the selections for the different implementations. @@ -29,6 +37,7 @@ SQUARE_LOCATION_ID=your-location-id * The application runs in `http://localhost:3000/` * [Testing using the API sandbox](https://docs.connect.squareup.com/articles/using-sandbox) + ## Application Flow The rails web application implements the Square Online payment solution to charge a payment source (debit, credit, or digital wallet payment cards).