Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ To use the PayPal Orders connector, you must have access to a [PayPal Developer

3. Create a Business account

> Note: Some PayPal options and features may vary by region or country; check availability before creating an account.
> **Note:** Some PayPal options and features may vary by region or country; check availability before creating an account.

![Create business account](https://raw.githubusercontent.com/ballerina-platform/module-ballerinax-paypal.orders/main/docs/setup/resources/create-account.png)

Expand Down Expand Up @@ -135,7 +135,7 @@ The `PayPal Orders` connector provides practical examples illustrating usage in

3. Download and install [Docker](https://www.docker.com/get-started).

> **Note**: Ensure that the Docker daemon is running before executing any tests.
> **Note:** Ensure that the Docker daemon is running before executing any tests.

4. Export Github Personal access token with read package permissions as follows:

Expand Down
2 changes: 1 addition & 1 deletion ballerina/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ To use the PayPal Orders connector, you must have access to a [PayPal Developer

3. Create a Business account

> Note: Some PayPal options and features may vary by region or country; check availability before creating an account.
> **Note:** Some PayPal options and features may vary by region or country; check availability before creating an account.

![Create business account](https://raw.githubusercontent.com/ballerina-platform/module-ballerinax-paypal.orders/main/docs/setup/resources/create-account.png)

Expand Down
12 changes: 6 additions & 6 deletions ballerina/tests/README.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
# Running Tests
# Running tests

## Prerequisites

- OAuth2 credentials (Client ID & Secret) from your PayPal Developer account.

## Test Environments
## Test environments

There are two test environments for the PayPal Orders connector tests:

Expand All @@ -13,7 +13,7 @@ There are two test environments for the PayPal Orders connector tests:
| `mock_tests` | Mock server for PayPal API (default) |
| `live_tests` | PayPal Sandbox API |

## Running Tests with the Mock Server
## Running tests with the mock server

### Configure the `Config.toml` file

Expand All @@ -29,7 +29,7 @@ Then, run the following command to run the tests:
./gradlew clean test
```

## Running Tests with the PayPal Sandbox API
## Running tests with the PayPal sandbox API

### Configure the `Config.toml` file

Expand All @@ -48,7 +48,7 @@ Then, run the following command to run the tests:
./gradlew clean test
```

## Running Specific Groups or Test Cases
## Running specific groups or test cases

To run only certain test groups or individual test cases, pass the -Pgroups property:

Expand All @@ -60,4 +60,4 @@ For example, to run only the mock tests:

```bash
./gradlew clean test -Pgroups=mock_tests
```
```
4 changes: 2 additions & 2 deletions examples/order-lifecycle/main.bal
Original file line number Diff line number Diff line change
Expand Up @@ -90,8 +90,8 @@ public function main() returns error? {
});

paypal:PurchaseUnit[] purchaseUnits = check orderCaptureResponse.purchase_units.ensureType();
paypal:Capture[] captures = check purchaseUnits[0]?.payments?.captures.ensureType();

paypal:Capture[] captures = check purchaseUnits[0]?.payments?.captures.ensureType();

paypal:Capture capture = captures[0];

Expand Down
Loading