Skip to content

Commit

Permalink
Merge pull request #2039 from SwedbankPay/hotfix/dx-2281_test_data_up…
Browse files Browse the repository at this point in the history
…date

DX 2281: test data update (develop)
  • Loading branch information
arebra authored Nov 27, 2023
2 parents 59d8046 + 854373f commit 635fc2d
Show file tree
Hide file tree
Showing 5 changed files with 103 additions and 31 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/azure-production-new.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: Deploy to Azure Production CommonSvc
on:
push:
branches: ['master']

jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- name: build
run: |
docker compose run \
-e GITHUB_BRANCH=develop \
-e GITHUB_REPOSITORY_URL=https://github.com/SwedbankPay/developer.swedbankpay.com \
portal build \
--env=production \
--site-url=https://developer.swedbankpay.com
- name: login
uses: azure/[email protected]
with:
creds: '{"clientId":"${{ secrets.SUBSCRIPTION_CLIENT_ID_PROD }}","clientSecret":"${{ secrets.SUBSCRIPTION_CLIENT_SECRET_PROD }}","subscriptionId":"${{ secrets.SUBSCRIPTION_ID_PROD }}","tenantId":"${{ secrets.TENANT_ID }}"}'

- name: deploy
uses: azure/[email protected]
with:
inlineScript: az storage blob upload-batch -s _site -d "\$web" --account-name proddevelopersa1 --overwrite
34 changes: 34 additions & 0 deletions .github/workflows/azure-stage-new.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: Deploy Pos Developer Branch to Azure Stage

on:
push:
branches: ['develop-pos']

jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- name: jekyll build
run: |
docker compose run \
-e GITHUB_BRANCH=develop \
-e GITHUB_REPOSITORY_URL=https://github.com/SwedbankPay/developer.swedbankpay.com \
portal build \
--env=production \
--site-url=https://developer-pos.stage.swedbankpay.com
- name: azure login
uses: azure/[email protected]
with:
creds: '{"clientId":"${{ secrets.SUBSCRIPTION_CLIENT_ID_STAGE }}","clientSecret":"${{ secrets.SUBSCRIPTION_CLIENT_SECRET_STAGE }}","subscriptionId":"${{ secrets.SUBSCRIPTION_ID_STAGE }}","tenantId":"${{ secrets.TENANT_ID }}"}'

- name: azure deploy
run: |
az storage blob upload-batch \
--source "_site" \
--destination "\$web" \
--account-name stagedeveloperecomsa1 \
--overwrite \
--validate-content
34 changes: 34 additions & 0 deletions .github/workflows/azure-stage-pos.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: Deploy Ecom Developer Branch to Azure Stage

on:
push:
branches: ['develop-pos']

jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- name: jekyll build
run: |
docker compose run \
-e GITHUB_BRANCH=develop \
-e GITHUB_REPOSITORY_URL=https://github.com/SwedbankPay/developer.swedbankpay.com \
portal build \
--env=production \
--site-url=https://developer.stage.swedbankpay.com
- name: azure login
uses: azure/[email protected]
with:
creds: '{"clientId":"${{ secrets.SUBSCRIPTION_CLIENT_ID_STAGE }}","clientSecret":"${{ secrets.SUBSCRIPTION_CLIENT_SECRET_STAGE }}","subscriptionId":"${{ secrets.SUBSCRIPTION_ID_STAGE }}","tenantId":"${{ secrets.TENANT_ID }}"}'

- name: azure deploy
run: |
az storage blob upload-batch \
--source "_site" \
--destination "\$web" \
--account-name stagedeveloperpossa1 \
--overwrite \
--validate-content
Binary file added assets/img/new-otp-challenge-form.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
37 changes: 6 additions & 31 deletions checkout-v3/resources/test-data.md
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ For merchants using 3-D Secure (3DS1), this is the ACS (Access Control Server)
you will encounter in our test environments. Use the Visa or MasterCard listed
under 3-D Secure Cards above when doing a card payment. After pressing the
purchase button you will then be taken to a menu where you can select
Authentication status.
authentication status.

![3D-Secure Emulator without dropdown menu][3ds-emulator-no-dropdown]{:width="805px" :height="685px"}

Expand All @@ -77,37 +77,12 @@ back to the payment like a normal 3-D Secure authentication.

### OTP (3DS2)

For m©erchants using 3DS2, OTP (One-Time Password) is the ACS (Access Control
For merchants using 3DS2, OTP (One-Time Password) is the ACS (Access Control
Server) you will encounter. Use the Visa or MasterCard listed under 3-D Secure
Cards above when doing a card payment. After pressing the purchase button you
will then be taken to a challenge form where you need to enter a code based
on the result you wish for. See the list of codes below the screenshot. After
pressing **Pay** you will be sent back to the payment like a normal 3-D Secure
authentication.
Cards above when doing a card payment. Click approved or cancel to select
authentication status.

![OTP challenge form][otp-challenge-form]

### OTP Codes

{:.table .table-striped}
| OTP Value | Transaction Status | Transaction Status Reason| ECI | Authentication Value|
| :--------- | :----------------- | :----------------------- | :-- | :------------------ |
| 1234 | Y | | 01 | JAmi21makAifmwqo2120cjq1AAA= |
| 1111 | N | 01 | 01 | |
| 2222 | R | 01 | 01 | |
| 3333 | U | 01 | 01 | |
| 4444 | A | 01 | 01 | Qm181okmdyqh6yQmYuq1890QAAA= |

### OTP Transaction Status

{:.table .table-striped}
| Transaction Status | Transaction Status Description |
| :----------------- | :----------------------------- |
| Y | Authentication / Account verification successful |
| N | Not authenticated / Account not verified; Transaction denied |
| R | Authentication / Account verification rejected. Issuer is rejecting authentication/verification and request that authorization not be attempted |
| U | Authentication / Account verification could not be performed; technical or other problem |
| A | Attempts processing performed; Not authenticated / verified, but a prood of attempt authentication / verification is provided |
![otp-challenge-form][otp-challenge-form]

### Visa

Expand Down Expand Up @@ -266,4 +241,4 @@ the following values:

[3ds-emulator-no-dropdown]: /assets/img/3DS-emulator-no-dropdown.png
[3ds-emulator-with-dropdown]: /assets/img/3DS-emulator-with-dropdown.png
[otp-challenge-form]: /assets/img/otp-challenge-form.png
[otp-challenge-form]: /assets/img/new-otp-challenge-form.png

0 comments on commit 635fc2d

Please sign in to comment.