Skip to content

Commit

Permalink
Updated build.yml and e2e.yml to ignore running tests when readme is …
Browse files Browse the repository at this point in the history
…updated
  • Loading branch information
Kwok He Chu committed Aug 1, 2023
1 parent 8487c92 commit c144ce5
Show file tree
Hide file tree
Showing 3 changed files with 35 additions and 1 deletion.
11 changes: 11 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,18 @@ name: .NET

on:
push:
paths-ignore:
- '**/readme.md'
- .gitignore
- .gitpod.yml
- LICENSE
branches: [ main ]
pull_request:
paths-ignore:
- '**/readme.md'
- .gitignore
- .gitpod.yml
- LICENSE
branches: [ main ]

jobs:
Expand Down
10 changes: 10 additions & 0 deletions .github/workflows/e2e.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,18 @@ name: E2E Testing Suite (Playwright)
on:
workflow_dispatch:
push:
paths-ignore:
- '**/readme.md'
- .gitignore
- .gitpod.yml
- LICENSE
branches: [ main ]
pull_request:
paths-ignore:
- '**/readme.md'
- .gitignore
- .gitpod.yml
- LICENSE
branches: [ main ]

jobs:
Expand Down
15 changes: 14 additions & 1 deletion authorisation-adjustment-example/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -138,5 +138,18 @@ dotnet run --project authorisation-adjustment-example
## Usage
To try out this application with test card numbers, visit [Test card numbers](https://docs.adyen.com/development-resources/test-cards/test-card-numbers). We recommend saving multiple test cards in your browser so you can test your integration faster in the future.

1. ...
1. Make a booking in the `Booking View`
2. Visit the `Admin Panel` to see the incoming webhooks and perform operations on the initial preauthorisation.


A success scenario for a payment followed by two adjustments, a capture and a reversal looks like:

`AUTHORISATION` (preauthorisation) → `AUTHORISATION_ADJUSTMENT` (adjust) → `AUTHORISATION_ADJUSTMENT` (adjust) → `CAPTURE` (capture) → `CANCEL_OR_REFUND` (reversal)

Adyen expires an authorisation request automatically after XX days depending on the card brand.
The `EXTEND` operation in this sample is used to extend the expiry date manually, for the exact days, refer to the [documentation](https://docs.adyen.com/online-payments/adjust-authorisation/#validity) (section: validity).

When CAPTURE is executed, it will perform the operation on the latest amount. You'll have to wait for the `AUTHORISATION_ADJUSTMENT` response, before making the capture once it's final.

3. Make sure to have your webhooks configured and wait for a while to confirm that the changes have been received by your application (f.e. a [CAPTURE_FAILED](https://docs.adyen.com/online-payments/capture/#testing-failed-captures) event can take several hours to process).

0 comments on commit c144ce5

Please sign in to comment.