Skip to content

Commit

Permalink
removed mention of Transactions and added TOC bullets in the README.
Browse files Browse the repository at this point in the history
  • Loading branch information
mvanmane committed Aug 15, 2019
1 parent 08681e2 commit 249dabb
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 6 deletions.
4 changes: 2 additions & 2 deletions connect-examples/v2/csharp_payment/README.md
Expand Up @@ -73,7 +73,7 @@ called the **SqPaymentForm**) you accept payment source information and generate

<img src="./PaymentFormExample.png" width="300"/>

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

Expand Down Expand Up @@ -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()
{
Expand Down
7 changes: 5 additions & 2 deletions 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).
Expand Down
9 changes: 8 additions & 1 deletion 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.
<b>WARNING</b>: never upload `config.json` with your credentials/access_token.
Expand Down Expand Up @@ -40,7 +47,7 @@ called the **SqPaymentForm**) you accept payment source information and generate
<img src="./PaymentFormExampleNode.png" width="300"/>

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.

Expand Down
11 changes: 10 additions & 1 deletion 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.

Expand Down Expand Up @@ -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).
Expand Down

0 comments on commit 249dabb

Please sign in to comment.