Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add In-Person Payments Card Acquisition Flow #112

Merged
merged 79 commits into from
Nov 21, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
79 commits
Select commit Hold shift + click to select a range
7fdaf85
Initial commit
Kwok-he-Chu Aug 10, 2023
2f1ba2d
Update .csproj
Kwok-he-Chu Aug 10, 2023
afcdbe2
Fix namespace in csproj
Aug 10, 2023
4dd1149
POS poc for connecting with the cloud terminal api synchronously
Aug 11, 2023
309710b
Fix startup
Aug 11, 2023
0d7dd4b
Remove unnecessary views
Aug 16, 2023
7fdab6f
Added reversals, cleaned up code
Aug 18, 2023
2176df1
Move comments to AdyenOptions class
Aug 18, 2023
880189f
Merge branch 'main' into IPP-cloud-terminal-api-example
Aug 18, 2023
e0823a0
Fix comment
Aug 18, 2023
6cd2b50
Fix redirect
Aug 21, 2023
1c3bc21
Added table selection frontend
Aug 22, 2023
7e20ffb
Add tables buttons and js to send the request from the front-end and …
Aug 22, 2023
8a5c789
Added error handling screens
Aug 22, 2023
c64f0e9
Added resulthandling and non awaits for firing the requests from js
Aug 23, 2023
a860ffd
Proper error handling, matching conventions in our terminal api error
Aug 23, 2023
6d37e1c
WIP
Aug 23, 2023
573ceb1
Make css prettier
Aug 23, 2023
84f2e99
Add table fetching from backend, instead of hardcoding in on frontend
Aug 24, 2023
4ebabab
Fix interface
Aug 25, 2023
ffe53b4
Added javascript abort controller for cancellation
Aug 27, 2023
ebc1434
Beautifying the frontend and added some comments
Aug 27, 2023
cfb94b5
Keep track of table status
Kwok-he-Chu Aug 28, 2023
8fc54b3
Fix comments
Kwok-he-Chu Aug 28, 2023
4da4542
Added webhooks for refunds
Kwok-he-Chu Aug 29, 2023
2876528
WIP styling and added frontend checks
Kwok-he-Chu Aug 29, 2023
57119bb
Better styling
Kwok-he-Chu Aug 29, 2023
a7e6bf7
Send abort request upon cancellation
Kwok-he-Chu Aug 29, 2023
efff255
Update README, comments and disable frontend buttons according to the…
Aug 30, 2023
a64b77a
Include in-person-payments-example in gitpod.yml
Kwok-he-Chu Aug 31, 2023
8fa3758
Reset PaymentStatus when a failure occurs
Kwok-he-Chu Aug 31, 2023
e39f910
Do not throw nullargument exception when POS_POI_ID is empty
Kwok-he-Chu Aug 31, 2023
4e1be34
Remove dropin
Kwok-he-Chu Sep 14, 2023
1d9bf31
Fix gitpod.yml
Kwok-he-Chu Sep 14, 2023
012311e
Update PR feedback
Kwok-he-Chu Sep 18, 2023
c2d556b
Update PR feedback
Kwok-he-Chu Sep 18, 2023
cb77c42
Update readme.md
Kwok-he-Chu Sep 18, 2023
3e4f03f
Add readme.md to paths-ignore on build and E2E
Kwok-he-Chu Sep 18, 2023
a392775
Fix payment status for reversal
Sep 19, 2023
277b0b9
Card Acquisition poc
Sep 20, 2023
217fd88
Added comments
Sep 20, 2023
d53d646
Merge branch 'main' into hackathon-integration-ipp
Kwok-he-Chu Sep 22, 2023
0c47f3c
Initial Added Card Acquisition
Kwok-he-Chu Sep 22, 2023
a88c40d
Add Controller
Kwok-he-Chu Sep 22, 2023
1b054a2
Return response
Kwok-he-Chu Sep 22, 2023
3492258
Card acquisition call
Kwok-he-Chu Sep 22, 2023
715c57d
Added Abort service for normal cancellations and CardAcquisition
Sep 22, 2023
981d3af
Backend card acquisition done
Sep 24, 2023
a7b165c
Wip
Sep 24, 2023
ce19db2
Added points assignments for existing customers
Kwok-he-Chu Sep 25, 2023
91f4ea5
Register classes
Kwok-he-Chu Sep 25, 2023
e42b5f8
Hackaton update
Sep 25, 2023
053b582
ECOM + IPP unified commerce card acquisition demo V0.1
Sep 26, 2023
3cbf89b
Final touch, resetting does not clear the pizza menu's identifiers fo…
Kwok-he-Chu Sep 26, 2023
0df7f8b
Preparing loyalty ipp example
Kwok-he-Chu Oct 19, 2023
e7d6eba
WIP
Kwok-he-Chu Oct 19, 2023
c5f110d
Wip
Kwok-he-Chu Oct 26, 2023
6002019
Add links and info to main page
Kwok-he-Chu Oct 26, 2023
4d4e5b4
Remove refund statuses
Kwok-he-Chu Oct 27, 2023
30e1f54
Remove reversals from card acqsuition
Oct 31, 2023
28c7e88
Fix js
Oct 31, 2023
278a9d9
Fix
Oct 31, 2023
0c811ac
Remove TODOs
Oct 31, 2023
849a228
Rename table to "pizza"
Oct 31, 2023
69b0ffe
Remove IPP - payment and reversals
Oct 31, 2023
e86e258
Rename to loyalty-button
Oct 31, 2023
f286b34
Fix models for card acquisitions
Kwok-he-Chu Nov 9, 2023
2a59073
Decode UTF-based card acquisition responses to show the error
Kwok-he-Chu Nov 9, 2023
8379fb0
Cleanup loyalty example, added abort requests
Kwok-he-Chu Nov 10, 2023
368aaf2
Ready for review
Kwok-he-Chu Nov 13, 2023
4f816d7
Update readme.md
Kwok-he-Chu Nov 13, 2023
ed15492
Update readme.md
Kwok-he-Chu Nov 13, 2023
34d727c
Merge branch 'main' into hackathon-demo-branch-ipp-card-acq
Kwok-he-Chu Nov 13, 2023
a89f097
Fix main readme.md
Kwok-he-Chu Nov 13, 2023
288e021
Remove tableservice, its renamed to repository
Kwok-he-Chu Nov 13, 2023
8b28de9
Rename to AdminPanel and fix some display issues
Nov 13, 2023
7356993
Added card, processed feedback
Kwok-he-Chu Nov 21, 2023
c929217
Update readme.md
Kwok-he-Chu Nov 21, 2023
16c37c4
Update README
Kwok-he-Chu Nov 21, 2023
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
12 changes: 10 additions & 2 deletions .gitpod.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,13 +62,21 @@ tasks:
;;

"in-person-payments-example")
if [ -z ${ADYEN_HMAC_KEY+x} ] || [[ -z ${ADYEN_API_KEY+x} ]] || [[ -z ${ADYEN_MERCHANT_ACCOUNT+x} ]] || [[ -z ${ADYEN_POS_POI_ID+x} ]]; then
echo "Expected environment variables not found. Please set the ADYEN_HMAC_KEY, ADYEN_API_KEY, ADYEN_MERCHANT_ACCOUNT, ADYEN_POS_POI_ID environment variables in https://gitpod.io/variables and restart."
if [ -z ${ADYEN_HMAC_KEY+x} ] || [[ -z ${ADYEN_API_KEY+x} ]] || [[ -z ${ADYEN_POS_POI_ID+x} ]]; then
echo "Expected environment variables not found. Please set the ADYEN_HMAC_KEY, ADYEN_API_KEY, ADYEN_POS_POI_ID environment variables in https://gitpod.io/variables and restart."
exit 1
fi
dotnet run --project in-person-payments-example
;;

"in-person-payments-loyalty-example")
if [ -z ${ADYEN_HMAC_KEY+x} ] || [[ -z ${ADYEN_API_KEY+x} ]] || [[ -z ${ADYEN_POS_POI_ID+x} ]]; then
echo "Expected environment variables not found. Please set the ADYEN_HMAC_KEY, ADYEN_API_KEY, ADYEN_POS_POI_ID environment variables in https://gitpod.io/variables and restart."
exit 1
fi
dotnet run --project in-person-payments-loyalty-example
;;

"paybylink-example")
if [ -z ${ADYEN_HMAC_KEY+x} ] || [[ -z ${ADYEN_API_KEY+x} ]] || [[ -z ${ADYEN_MERCHANT_ACCOUNT+x} ]]; then
echo "Expected environment variables not found. Please set the ADYEN_HMAC_KEY, ADYEN_API_KEY, ADYEN_MERCHANT_ACCOUNT environment variables in https://gitpod.io/variables and restart."
Expand Down
9 changes: 9 additions & 0 deletions adyen-dotnet-online-payments.sln
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,10 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "in-person-payments-example"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "adyen-dotnet-in-person-payments-example", "in-person-payments-example\adyen-dotnet-in-person-payments-example.csproj", "{07EC4E54-8D9E-4BDA-975D-4C428DDE5DC0}"
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "in-person-payments-loyalty-example", "in-person-payments-loyalty-example", "{D2F4FD65-09D6-4C33-8582-5FDA3F10F749}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "adyen-dotnet-in-person-payments-loyalty-example", "in-person-payments-loyalty-example\adyen-dotnet-in-person-payments-loyalty-example.csproj", "{930A2423-CDAF-4B18-80D9-06D714E71A8D}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Expand Down Expand Up @@ -72,6 +76,10 @@ Global
{07EC4E54-8D9E-4BDA-975D-4C428DDE5DC0}.Debug|Any CPU.Build.0 = Debug|Any CPU
{07EC4E54-8D9E-4BDA-975D-4C428DDE5DC0}.Release|Any CPU.ActiveCfg = Release|Any CPU
{07EC4E54-8D9E-4BDA-975D-4C428DDE5DC0}.Release|Any CPU.Build.0 = Release|Any CPU
{930A2423-CDAF-4B18-80D9-06D714E71A8D}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{930A2423-CDAF-4B18-80D9-06D714E71A8D}.Debug|Any CPU.Build.0 = Debug|Any CPU
{930A2423-CDAF-4B18-80D9-06D714E71A8D}.Release|Any CPU.ActiveCfg = Release|Any CPU
{930A2423-CDAF-4B18-80D9-06D714E71A8D}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
Expand All @@ -85,6 +93,7 @@ Global
{EC4006F7-EC06-4DBC-A9F7-2273AE677AC2} = {61BDBE25-C448-4640-A4C7-E6744FA2D44F}
{10B87E36-1604-4129-93F5-EAB4009D220B} = {1552682B-E1EA-4324-9564-B9683056ACDB}
{07EC4E54-8D9E-4BDA-975D-4C428DDE5DC0} = {56A21E4A-3DE5-45C6-BCDF-FE238CBC7A90}
{930A2423-CDAF-4B18-80D9-06D714E71A8D} = {D2F4FD65-09D6-4C33-8582-5FDA3F10F749}
EndGlobalSection
GlobalSection(ExtensibilityGlobals) = postSolution
SolutionGuid = {777409BD-281D-419E-9F9B-BE609D4B6971}
Expand Down
2 changes: 1 addition & 1 deletion in-person-payments-example/Startup.cs
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ public void ConfigureServices(IServiceCollection services)
XApiKey = options.Value.ADYEN_API_KEY,
// Test environment.
Environment = Adyen.Model.Environment.Test,
Timeout = 180,
Timeout = 180
},
provider.GetRequiredService<IHttpClientFactory>(),
httpClientName
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,6 @@

<ItemGroup>
<PackageReference Include="Adyen" Version="11.2.1" />
<PackageReference Include="Microsoft.AspNetCore.Mvc.NewtonsoftJson" Version="6.0.19" />
<PackageReference Include="Microsoft.AspNetCore.Mvc.NewtonsoftJson" Version="6.0.22" />
</ItemGroup>
</Project>
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
25 changes: 25 additions & 0 deletions in-person-payments-loyalty-example/.dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
**/.classpath
**/.dockerignore
**/.env
**/.git
**/.gitignore
**/.project
**/.settings
**/.toolstarget
**/.vs
**/.vscode
**/*.*proj.user
**/*.dbmdl
**/*.jfm
**/azds.yaml
**/bin
**/charts
**/docker-compose*
**/Dockerfile*
**/node_modules
**/npm-debug.log
**/obj
**/secrets.dev.yaml
**/values.dev.yaml
LICENSE
README.md
Loading