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

Release 5.0.0 (master) #2176

Merged
merged 76 commits into from
Mar 22, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
76 commits
Select commit Hold shift + click to select a range
edc3a5e
Bump rubocop from 1.60.2 to 1.61.0
dependabot[bot] Mar 1, 2024
c29e1cc
DX-2366: Revert "Merge pull request #2130 from SwedbankPay/feature/dx…
Feb 21, 2024
f264019
DX-2366: Testing if I still have access.
Mar 1, 2024
bbc98ad
DX-2366: Reverting the commit
Mar 1, 2024
4f5c4ed
Merge pull request #2146 from SwedbankPay/dependabot/bundler/rubocop-…
arebra Mar 5, 2024
55d680b
Finish
m-lilja Mar 5, 2024
e803163
updated and also a new card under Net
the-anders-jarold Mar 6, 2024
ede5862
fixed
the-anders-jarold Mar 6, 2024
7b681d3
updated
the-anders-jarold Mar 6, 2024
981f750
Comment on AcuirerData
the-anders-jarold Mar 6, 2024
3e0a464
Merge pull request #2148 from SwedbankPay/DEVP-305-Update-instruction…
the-anders-jarold Mar 6, 2024
9bad877
Merge pull request #2149 from SwedbankPay/DEVP-333-Correct-example-by…
the-anders-jarold Mar 6, 2024
41c72ef
Merge pull request #2150 from SwedbankPay/DEVP-335-Update-info-about-…
the-anders-jarold Mar 6, 2024
65df1fb
corrected permalink of acquirerdata
the-anders-jarold Mar 6, 2024
24495e3
fixed menu order, and sidebar for card avoid privilege
the-anders-jarold Mar 6, 2024
848eb49
permalink fix, but no effect
the-anders-jarold Mar 6, 2024
f61b9d3
Bump rubocop from 1.61.0 to 1.62.0
dependabot[bot] Mar 7, 2024
3f0d150
Bump remark-textr from 6.0.0 to 6.1.0
dependabot[bot] Mar 7, 2024
c18f9a3
fixed permalink for purchase order
the-anders-jarold Mar 7, 2024
45f0a71
DX-2366: Created new structure.
Mar 7, 2024
554923c
DX-2366: More changes
Mar 7, 2024
6b46fc5
Changed icon for cards about autconfiguration
the-anders-jarold Mar 7, 2024
8768449
Merge pull request #2153 from SwedbankPay/DEVP-339-Add-use-case-for-i…
the-anders-jarold Mar 7, 2024
10d2d44
Bump azure/CLI from 1.0.9 to 2.0.0
dependabot[bot] Mar 8, 2024
3b53667
Bump azure/login from 1.6.1 to 2.0.0
dependabot[bot] Mar 8, 2024
27105f7
DX-2366: Giving it a try.
Mar 11, 2024
1fe9310
Merge pull request #2151 from SwedbankPay/dependabot/bundler/rubocop-…
arebra Mar 11, 2024
c3937fe
Merge pull request #2152 from SwedbankPay/dependabot/npm_and_yarn/rem…
arebra Mar 11, 2024
6125645
Merge pull request #2155 from SwedbankPay/dependabot/github_actions/a…
arebra Mar 11, 2024
fb938c2
Merge pull request #2154 from SwedbankPay/dependabot/github_actions/a…
arebra Mar 11, 2024
016794d
Changed icon for auto configuration
the-anders-jarold Mar 11, 2024
9b06b64
Merge branch 'develop-pos' of github.com:SwedbankPay/developer.swedba…
the-anders-jarold Mar 11, 2024
4467d90
Bump rubocop from 1.62.0 to 1.62.1
dependabot[bot] Mar 12, 2024
95ba528
Merge pull request #2157 from SwedbankPay/dependabot/bundler/rubocop-…
arebra Mar 12, 2024
ae2bd47
DX-2366: Link fixes part 1
Mar 12, 2024
5274b3a
DX-2366: Another batch of link fixes
Mar 12, 2024
fff89c7
Merge pull request #2156 from SwedbankPay/feature/dx-2366_create_get_…
arebra Mar 12, 2024
a97ed49
DEVP-314: First draft of verify status.
Mar 13, 2024
9710f17
Merge pull request #2158 from SwedbankPay/feature/devp-314_create_val…
arebra Mar 13, 2024
fcd19c2
DEVP-341: Sort order of payment menu first draft
Mar 14, 2024
1a208ed
DEVP-341: Fixed some dead links
Mar 14, 2024
f8bbd80
Merge pull request #2159 from SwedbankPay/feature/devp-341_sort_order…
arebra Mar 14, 2024
68aea07
DX-343: Added fancy "Why Swedbank Pay?" and fixed some headers
Mar 14, 2024
02ac2b0
Merge pull request #2160 from SwedbankPay/feature/dx-343_get_started_…
arebra Mar 14, 2024
2b87d73
DEVP-313: Added screenshots in one-click use case
Mar 14, 2024
bd51fa8
Merge pull request #2161 from SwedbankPay/feature/devp-313_fix_migrat…
arebra Mar 14, 2024
5b56db3
DEVP-344: Small sort menu adjustments after feedback
Mar 18, 2024
2005b75
updated release notes under NET
the-anders-jarold Mar 18, 2024
b20fd6a
DEVP-342: First check
Mar 18, 2024
553ea8c
DEVP-345: Added padding to illustration
Mar 18, 2024
47e90f4
Merge pull request #2162 from SwedbankPay/feature/devp-344_sort_order…
arebra Mar 18, 2024
73837b7
Merge pull request #2164 from SwedbankPay/feature/devp-345_get_starte…
arebra Mar 18, 2024
5d01967
Merge pull request #2165 from SwedbankPay/feature/devp-342_validate_s…
arebra Mar 18, 2024
46d3bd3
Merge pull request #2163 from SwedbankPay/develop-pos
arebra Mar 18, 2024
3e7642e
DEVP-317: Added info about available implementations and how long the…
Mar 18, 2024
d5150e6
Bump nokogiri from 1.14.3 to 1.15.6
dependabot[bot] Mar 19, 2024
394eb98
Bump rouge from 4.2.0 to 4.2.1
dependabot[bot] Mar 19, 2024
c45ae7c
Merge pull request #2166 from SwedbankPay/feature/devp-317_add_shelfl…
arebra Mar 19, 2024
afa634e
Merge pull request #2167 from SwedbankPay/dependabot/bundler/nokogiri…
arebra Mar 19, 2024
877c87e
DEVP-346: Renamed consent checkbox, moved section a bit, added a usag…
Mar 19, 2024
ec11d55
Merge pull request #2168 from SwedbankPay/dependabot/bundler/rouge-4.2.1
arebra Mar 19, 2024
1c0efca
Merge pull request #2169 from SwedbankPay/feature/devp-346_move_conse…
arebra Mar 19, 2024
cad4391
DX-265: Added tables to migration guide and did other changes.
Mar 19, 2024
2611b59
DEVP-347: Added new checkbox text after feedback from William.
Mar 20, 2024
781c40e
Merge pull request #2170 from SwedbankPay/feature/devp-347_consent_ch…
arebra Mar 20, 2024
2b4d70c
Fixed
the-anders-jarold Mar 20, 2024
f1e7c43
Merge pull request #2171 from SwedbankPay/Fixed-commented-stuff-from-…
arebra Mar 21, 2024
b683a39
Merge pull request #2172 from SwedbankPay/feature/dx-265_put_fields_d…
arebra Mar 21, 2024
c0bd2d0
DEVP-349: Updated from 2.2.4 to 2.2.6
Mar 21, 2024
e6b5d18
Merge pull request #2173 from SwedbankPay/feature/devp-349_update_the…
arebra Mar 21, 2024
f2ccfb2
DEVP-347: Updating sort order and the optional features
Mar 21, 2024
98c6c95
DEVP-347: Reverted theme and fixed some links
Mar 22, 2024
1cef0d1
DEVP-347: Release notes link and screenshot filetypes.
Mar 22, 2024
f66d0c4
DEVP-347: Upgraded to 2.2.7
Mar 22, 2024
651d42c
Merge pull request #2175 from SwedbankPay/feature/devp-347_release_pr…
arebra Mar 22, 2024
ab066db
Release notes for 5.0.0
Mar 22, 2024
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 .github/workflows/azure-production-new.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,11 @@ jobs:
--site-url=https://developer.swedbankpay.com

- name: login
uses: azure/login@v1.6.1
uses: azure/login@v2.0.0
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/CLI@v1.0.9
uses: azure/CLI@v2.0.0
with:
inlineScript: az storage blob upload-batch -s _site -d "\$web" --account-name proddevelopersa1 --overwrite
4 changes: 2 additions & 2 deletions .github/workflows/azure-production.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,11 @@ jobs:
--site-url=https://developer.swedbankpay.com

- name: login
uses: azure/login@v1.6.1
uses: azure/login@v2.0.0
with:
creds: ${{ secrets.AZURE_CREDENTIALS_PROD }}

- name: deploy
uses: azure/CLI@v1.0.9
uses: azure/CLI@v2.0.0
with:
inlineScript: az storage blob upload-batch -s _site -d "\$web" --account-name blobdevportalprod --overwrite
2 changes: 1 addition & 1 deletion .github/workflows/azure-stage-new.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
--site-url=https://developer.stage.swedbankpay.com

- name: azure login
uses: azure/login@v1.6.1
uses: azure/login@v2.0.0
with:
creds: '{"clientId":"${{ secrets.SUBSCRIPTION_CLIENT_ID_STAGE }}","clientSecret":"${{ secrets.SUBSCRIPTION_CLIENT_SECRET_STAGE }}","subscriptionId":"${{ secrets.SUBSCRIPTION_ID_STAGE }}","tenantId":"${{ secrets.TENANT_ID }}"}'

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/azure-stage-pos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
--site-url=https://developer-pos.stage.swedbankpay.com

- name: azure login
uses: azure/login@v1.6.1
uses: azure/login@v2.0.0
with:
creds: '{"clientId":"${{ secrets.SUBSCRIPTION_CLIENT_ID_STAGE }}","clientSecret":"${{ secrets.SUBSCRIPTION_CLIENT_SECRET_STAGE }}","subscriptionId":"${{ secrets.SUBSCRIPTION_ID_STAGE }}","tenantId":"${{ secrets.TENANT_ID }}"}'

Expand Down
2 changes: 1 addition & 1 deletion Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ group :jekyll_plugins do
gem 'kramdown', '>= 2.3'
gem 'kramdown-plantuml', '>= 1.3'
gem 'rouge', '>= 4.0.1'
gem 'swedbank-pay-design-guide-jekyll-theme', '2.2.1'
gem 'swedbank-pay-design-guide-jekyll-theme', '2.2.7'
end

group :test do
Expand Down
20 changes: 10 additions & 10 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -97,11 +97,11 @@ GEM
rb-inotify (~> 0.9, >= 0.9.10)
mercenary (0.4.0)
minitest (5.19.0)
nokogiri (1.14.3-x64-mingw32)
nokogiri (1.15.6-x64-mingw32)
racc (~> 1.4)
nokogiri (1.14.3-x86_64-darwin)
nokogiri (1.15.6-x86_64-darwin)
racc (~> 1.4)
nokogiri (1.14.3-x86_64-linux)
nokogiri (1.15.6-x86_64-linux)
racc (~> 1.4)
open3 (0.1.2)
parallel (1.24.0)
Expand All @@ -119,7 +119,7 @@ GEM
ffi (~> 1.0)
regexp_parser (2.9.0)
rexml (3.2.6)
rouge (4.2.0)
rouge (4.2.1)
rspec (3.13.0)
rspec-core (~> 3.13.0)
rspec-expectations (~> 3.13.0)
Expand All @@ -133,19 +133,19 @@ GEM
diff-lcs (>= 1.2.0, < 2.0)
rspec-support (~> 3.13.0)
rspec-support (3.13.0)
rubocop (1.60.2)
rubocop (1.62.1)
json (~> 2.3)
language_server-protocol (>= 3.17.0)
parallel (~> 1.10)
parser (>= 3.3.0.2)
rainbow (>= 2.2.2, < 4.0)
regexp_parser (>= 1.8, < 3.0)
rexml (>= 3.2.5, < 4.0)
rubocop-ast (>= 1.30.0, < 2.0)
rubocop-ast (>= 1.31.1, < 2.0)
ruby-progressbar (~> 1.7)
unicode-display_width (>= 2.4.0, < 3.0)
rubocop-ast (1.30.0)
parser (>= 3.2.1.0)
rubocop-ast (1.31.2)
parser (>= 3.3.0.4)
rubocop-rake (0.6.0)
rubocop (~> 1.0)
ruby-progressbar (1.13.0)
Expand All @@ -162,7 +162,7 @@ GEM
sass-listen (4.0.0)
rb-fsevent (~> 0.9, >= 0.9.4)
rb-inotify (~> 0.9, >= 0.9.7)
swedbank-pay-design-guide-jekyll-theme (2.2.1)
swedbank-pay-design-guide-jekyll-theme (2.2.7)
awesome_print
faraday (>= 1.0.1, < 3)
jekyll (>= 3.7, < 5.0)
Expand Down Expand Up @@ -205,7 +205,7 @@ DEPENDENCIES
rspec (>= 3)
rubocop (>= 1)
rubocop-rake (>= 0.6)
swedbank-pay-design-guide-jekyll-theme (= 2.2.1)
swedbank-pay-design-guide-jekyll-theme (= 2.2.7)

RUBY VERSION
ruby 2.7.2p137
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,7 @@ agreement][cla].
[codacy-badge]: https://app.codacy.com/project/badge/Grade/2dcec08155e142e2935eb54605d933ce
[codacy]: https://www.codacy.com/gh/SwedbankPay/developer.swedbankpay.com/dashboard?utm_source=github.com&amp;utm_medium=referral&amp;utm_content=SwedbankPay/developer.swedbankpay.com&amp;utm_campaign=Badge_Grade
[config-yml]: _config.yml
[dev-guidelines]: https://developer.swedbankpay.com/checkout-v3/resources/development-guidelines
[dev-guidelines]: https://developer.swedbankpay.com/checkout-v3/modules-sdks/development-guidelines
[dev-portal]: https://developer.swedbankpay.com/
[docker-install]: https://www.docker.com/
[docker]: #docker
Expand Down
2 changes: 1 addition & 1 deletion _config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ opengraph:
image: /assets/img/swedbank-pay-developer-portal.png
design_guide:
base_url: https://design.swedbankpay.com
version: 10.9.1
version: 10.10.1
search:
enabled: true
url: /search
Expand Down
2 changes: 1 addition & 1 deletion _includes/callback.md
Original file line number Diff line number Diff line change
Expand Up @@ -174,4 +174,4 @@ sequenceDiagram
deactivate SwedbankPay
```

[url-usage]: /checkout-v3/resources/fundamental-principles#url-usage
[url-usage]: /checkout-v3/get-started/fundamental-principles#url-usage
10 changes: 5 additions & 5 deletions _includes/checkout-v3-events.md
Original file line number Diff line number Diff line change
Expand Up @@ -260,9 +260,9 @@ will be raised with the following event argument object:

{% include events/on-paid.md %}

Subscribe to this event if actions are needed on you side other than the default
handling of redirecting the payer to your `completeUrl`. Call GET on the
`paymentOrder` to receive the actual payment status, and take appropriate
Subscribe to this event if actions are needed on your side other than the
default handling of redirecting the payer to your `completeUrl`. Call `GET` on
the `paymentOrder` to receive the actual payment status, and take appropriate
actions according to it.

It will be raised with the following event argument object:
Expand All @@ -283,7 +283,7 @@ It will be raised with the following event argument object:
| :------------ | :------- | :------------------------------------------------------------- |
| `event` | `string` | The name of the event raised. |
| {% f paymentOrder.id, 0 %} | `string` | {% include fields/id.md resource="paymentOrder" %} |
| `redirectUrl` | `string` | The URL the user will be redirect to after completing the payment. |
| `redirectUrl` | `string` | The URL the user will be redirected to after completing the payment. |

## `onPaymentAttemptAborted`

Expand All @@ -307,7 +307,7 @@ event is raised with the following event argument object:
| :------------ | :------- | :------------------------------------------------------------- |
| `event` | `string` | The name of the event raised. |
| {% f paymentOrder.id, 0 %} | `string` | {% include fields/id.md resource="paymentOrder" %} |
| `redirectUrl` | `string` | The URL the user will be redirect to after a cancelled payment. |
| `redirectUrl` | `string` | The URL the user will be redirected to after a cancelled payment. |

## `onPaymentAttemptFailed`

Expand Down
4 changes: 2 additions & 2 deletions _includes/fee-discount.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@
match the total payment order amount.

Restricting the fee or discount to certain instruments is also possible. Simply
add the `restrictToInstruments` field and which instruments the fee or discount
applies to. This is currently available for invoice only.
add the `restrictedToInstruments` field and which instruments the fee or
discount applies to. This is currently available for invoice only.

The example below shows a fee which only applies to Swedish invoices. Other
options for some of the fields are in the table at the bottom.
Expand Down
2 changes: 1 addition & 1 deletion _includes/fields/id.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
{%- capture text -%}
The relative URL and unique identifier of the
`{{ resource }}` resource {{ sub_resource_text }}.
Please read about [URL Usage](/checkout-v3/resources/fundamental-principles#url-usage)
Please read about [URL Usage](/checkout-v3/get-started/fundamental-principles#url-usage)
to understand how this and other URLs should be used in your solution.
{%- endcapture -%}
{%- comment -%}
Expand Down
2 changes: 1 addition & 1 deletion _includes/fields/payee-reference.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
{% endif %}
{%- capture payee_reference_url -%}
{%- if documentation_section == nil or documentation_section == empty -%}
{%- assign payee_reference_url = "/checkout-v3/resources/fundamental-principles#payee-reference" -%}
{%- assign payee_reference_url = "/checkout-v3/get-started/fundamental-principles#payee-reference" -%}
{%- else -%}
{%- include utils/documentation-section-url.md href="/features/technical-reference/payee-reference" -%}
{%- endif -%}
Expand Down
2 changes: 1 addition & 1 deletion _includes/mobile-sdk-papm.md
Original file line number Diff line number Diff line change
Expand Up @@ -241,4 +241,4 @@ paymentOrder.disableStoredPaymentDetails = true

[add-stored-details]: /old-implementations/payment-menu-v2/features/optional/payer-aware-payment-menu#add-stored-payment-instrument-details
[enterprise-payer-ref]: https://developer.swedbankpay.com/old-implementations/enterprise/features/optional/enterprise-payer-reference
[expanding_properties]: https://developer.swedbankpay.com/checkout-v3/resources/fundamental-principles#expansion
[expanding_properties]: https://developer.swedbankpay.com/checkout-v3/get-started/fundamental-principles#expansion
2 changes: 1 addition & 1 deletion _includes/mobile-sdk-tokens.md
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,6 @@ More info on [unscheduled purchases][unscheduled].

More info on [recurring purchases][recur].

[expanding_properties]: https://developer.swedbankpay.com/checkout-v3/resources/fundamental-principles#expansion
[expanding_properties]: https://developer.swedbankpay.com/checkout-v3/get-started/fundamental-principles#expansion
[unscheduled]: https://developer.swedbankpay.com/checkout-v3/features/optional/unscheduled
[recur]: https://developer.swedbankpay.com/checkout-v3/features/optional/recur
2 changes: 1 addition & 1 deletion _includes/network-tokenization.md
Original file line number Diff line number Diff line change
Expand Up @@ -149,5 +149,5 @@ track of it. See the [Paid resource for cards][paid-resource-model].
[one-click]: https://developer.swedbankpay.com/checkout-v3/features/optional/one-click
[unscheduled]: https://developer.swedbankpay.com/checkout-v3/features/optional/unscheduled
[recur]: https://developer.swedbankpay.com/checkout-v3/features/optional/recur
[payment-order]: /checkout-v3/payment-request
[payment-order]: /checkout-v3/get-started/payment-request
[test-data]: https://developer.swedbankpay.com/checkout-v3/test-data/network-tokenization
100 changes: 61 additions & 39 deletions _includes/one-click-payments.md
Original file line number Diff line number Diff line change
Expand Up @@ -70,43 +70,6 @@
{% endcapture %}
{% include accordion-table.html content=table %}

{% if documentation_section contains "checkout-v3" %}

## Enable Payment Details Consent Checkbox

Use the same basic initial payment order request, and add the new field
`enablePaymentDetailsConsentCheckbox` in the `paymentOrder` node. Set it to
`true` to show the checkbox used to store payment details for card payments.
Remember to also set `disableStoredPaymentDetails` to `true`.

This option will not work with `Verify`, and will result in a validation error
if you try.

{:.code-view-header}
**Payment Details Consent Checkbox**

```json
{
"paymentorder": {
"enablePaymentDetailsConsentCheckbox": true,
"disableStoredPaymentDetails": true,
}
}
```

{% capture table %}
{:.table .table-striped .mb-5}
| Required | Field | Type | Description |
| :--------------: | :--------------------------------- | :----------- | :------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| {% icon check %} | {% f paymentOrder, 0 %} | `object` | The payment order object. |
| | {% f EnablePaymentDetailsConsentCheckbox %} | `bool` | Set to `true` or `false`. Used to determine if the checkbox used to save payment details is shown or not. Will only work if the parameter `disableStoredPaymentDetails` is set to `true`. |
| | {% f disableStoredPaymentDetails %} | `bool` | Set to `true` or `false`. Must be set to `true` for `enablePaymentDetailsConsentCheckbox` to work. |

{% endcapture %}
{% include accordion-table.html content=table %}

{% endif %}

## Finding The `paymentToken` Value

{% if documentation_section contains "payment-instruments" %}
Expand Down Expand Up @@ -298,7 +261,7 @@
}
```

## One-Click Request Displaying A Specific Card

Check warning on line 264 in _includes/one-click-payments.md

View workflow job for this annotation

GitHub Actions / remark-lint

[remark-lint] _includes/one-click-payments.md#L264

Do not use headings with similar content (214:1) no-duplicate-headings remark-lint
Raw output
    264:1-264:48  warning  Do not use headings with similar content (214:1)                        no-duplicate-headings       remark-lint

{:.code-view-header}
**Request**
Expand Down Expand Up @@ -354,12 +317,71 @@

{% endif %}

{% if documentation_section contains "checkout-v3" %}

## Disable Store Details and Toggle Consent Checkbox

This is a feature intended for instrument mode and or custom menus.

If you have built your own interface to display previously stored details and
generate transactions using them ("One-Click Request Displaying A Specific
Card"), you will also have the need to include an option for them to store new
details. This can be performed using either a `Purchase` or `Verify` operation.

For `Purchase` operations aiming to store new details simultaneously, you will
need to utilize the `disableStoredPaymentDetails` parameter. This is because the
payer has already made the decision not to use any stored details in your
interface. By including this parameter, you effectively eliminate the need for
confirmation in our UI, due to how the combination of `generatePaymentToken` and
`payerReference` works in our API.

By employing this parameter, you as the Merchant will assume the responsibility
of colllecting the payer's consent for purpose of storing their details. If you
do not want this responsibility and would like for us to help you out, you can
combine `disableStoredPaymentDetails` along with
`enablePaymentDetailsConsentCheckbox` and flag them both as `true`. That will
enable our handler for collecting consent from the payer for you inside our
Swedbank Pay UI. When the choice has been made and transaction is completed, we
will relay that information to you. We will do this by setting the flag
`paymentTokenGenerated` in the subsequent `GET` call towards the `PaymentOrder`
to either `true` or `false`.

`Verify` operations do not require the use of these additional parameters, as
they do not display any previously stored details based on your supplied
reference, thereby avoiding redundancy. Including them in a `Verify` will result
in a validation error.

{:.code-view-header}
**generatePaymentToken field**

```json
{
"paymentorder": {
"enablePaymentDetailsConsentCheckbox": true,
"disableStoredPaymentDetails": true,
}
}
```

{% capture table %}
{:.table .table-striped .mb-5}
| Required | Field | Type | Description |
| :--------------: | :--------------------------------- | :----------- | :------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| {% icon check %} | {% f paymentOrder, 0 %} | `object` | The payment order object. |
| | {% f EnablePaymentDetailsConsentCheckbox %} | `bool` | Set to `true` or `false`. Used to determine if the checkbox used to save payment details is shown or not. Will only work if the parameter `disableStoredPaymentDetails` is set to `true`. |
| | {% f disableStoredPaymentDetails %} | `bool` | Set to `true` or `false`. Must be set to `true` for `enablePaymentDetailsConsentCheckbox` to work. |

{% endcapture %}
{% include accordion-table.html content=table %}

{% endif %}

## How It Looks

{% include alert.html type="informative" icon="info" body="
When redirecting to Swedbank Pay the payment page will be
prefilled with the payer's card details. See example below." %}

## How It Looks

{:.text-center}
![One click payment page][one-click-image]

Expand Down
8 changes: 8 additions & 0 deletions _includes/pax-acquirerdata.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{:.code-view-header}
**Possible values in AcquirerData. Either any of them or both**

```json

{"purchaseOrderNumber":"<ordernumber>","loyaltyPan":"<pan>"}

```
6 changes: 6 additions & 0 deletions _includes/pax-netshaddurlacl.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{% include alert.html type="informative" icon="info" header="Heads up"
body="When running as a server the program needs elevated privileges. It may be avoided by entering the following command as administrator:" %}
{% include alert.html type="informative" body="
netsh http add urlacl url=http://*:11000/EPASSaleToPOI/3.1/ sddl=D:(A;;GX;;;WD)" %}
{% include alert.html type="informative" body="
where :11000 is the default port. If listening to another port the command must be changed." %}
Loading
Loading