Skip to content

Commit

Permalink
Merge pull request #2256 from SwedbankPay/release/5.1.1
Browse files Browse the repository at this point in the history
Release 5.1.1 (master)
  • Loading branch information
arebra authored Apr 23, 2024
2 parents e352700 + 02603f1 commit 5e5a4ee
Show file tree
Hide file tree
Showing 7 changed files with 43 additions and 47 deletions.
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.3.0'
gem 'swedbank-pay-design-guide-jekyll-theme', '2.3.1'
end

group :test do
Expand Down
6 changes: 3 additions & 3 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ GEM
diff-lcs (>= 1.2.0, < 2.0)
rspec-support (~> 3.13.0)
rspec-support (3.13.0)
rubocop (1.63.2)
rubocop (1.63.3)
json (~> 2.3)
language_server-protocol (>= 3.17.0)
parallel (~> 1.10)
Expand Down Expand Up @@ -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.3.0)
swedbank-pay-design-guide-jekyll-theme (2.3.1)
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.3.0)
swedbank-pay-design-guide-jekyll-theme (= 2.3.1)

RUBY VERSION
ruby 2.7.2p137
Expand Down
21 changes: 10 additions & 11 deletions _includes/problems/checkout.md
Original file line number Diff line number Diff line change
Expand Up @@ -450,23 +450,22 @@ Caused By:

* The payer's BankID is already in use

{% capture response_header %}HTTP/1.1 409 Conflict
Content-Type: application/json{% endcapture %}
{% capture response_header %}HTTP/1.1 409 Conflict Content-Type: application/json{% endcapture %}

{% capture response_content %}{
"sessionId": "570ad610-3bd5-43d2-a270-ca1510562972",
"type": "https://api.payex.com/psp/errordetail/bankidalreadyinuse",
"title": "BankID Already in Use",
"status": 409,
"instance": "https://api.payex.com/psp/swish/payments/0cf55e0f-9931-476b-249d-08d7a3ee4e14/sales",
"detail": "The payer's BankID is already in use."
"detail": "The payer´s BankID is already in use."
}{% endcapture %}

{% include code-example.html
title='Example response bankidalreadyinuse'
header=response_header
json= response_content
%}
title='Example response bankidalreadyinuse'
header=response_header
json= response_content
%}

### `bankidcancelled`

Expand Down Expand Up @@ -507,7 +506,7 @@ Content-Type: application/json{% endcapture %}
"title": "BankID error",
"status": 502,
"instance": "https://api.payex.com/psp/swish/payments/0cf55e0f-9931-476b-249d-08d7a3ee4e14/sales",
"detail": "Something went wrong with the payer's BankID authorization."
"detail": "Something went wrong with the payer´s BankID authorization."
}{% endcapture %}

{% include code-example.html
Expand Down Expand Up @@ -589,7 +588,7 @@ Content-Type: application/json{% endcapture %}
"title": "Payment Age Limit Not Met",
"status": 403,
"instance": "https://api.payex.com/psp/swish/payments/0cf55e0f-9931-476b-249d-08d7a3ee4e14/sales",
"detail": "The payer does not meet the payment's age limit."
"detail": "The payer does not meet the payment´s age limit."
}{% endcapture %}

{% include code-example.html
Expand All @@ -613,7 +612,7 @@ Content-Type: application/json{% endcapture %}
"title": "Social Security Number Mismatch",
"status": 403,
"instance": "https://api.payex.com/psp/swish/payments/0cf55e0f-9931-476b-249d-08d7a3ee4e14/sales",
"detail": "The payer's social security number does not match with the one required by this payment."
"detail": "The social security number of the payer does not match with the one required by this payment."
}{% endcapture %}

{% include code-example.html
Expand All @@ -637,7 +636,7 @@ Content-Type: application/json{% endcapture %}
"title": "Error in Swish",
"status": 403,
"instance": "https://api.payex.com/psp/swish/payments/0cf55e0f-9931-476b-249d-08d7a3ee4e14/sales",
"detail": "The payer's Swish is already in use."
"detail": "The Swish account of the payer is already in use."
}{% endcapture %}

{% include code-example.html
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -450,23 +450,22 @@ Caused By:

* The payer's BankID is already in use

{% capture response_header %}HTTP/1.1 409 Conflict
Content-Type: application/json{% endcapture %}
{% capture response_header %}HTTP/1.1 409 Conflict Content-Type: application/json{% endcapture %}

{% capture response_content %}{
"sessionId": "570ad610-3bd5-43d2-a270-ca1510562972",
"type": "https://api.payex.com/psp/errordetail/bankidalreadyinuse",
"title": "BankID Already in Use",
"status": 409,
"instance": "https://api.payex.com/psp/swish/payments/0cf55e0f-9931-476b-249d-08d7a3ee4e14/sales",
"detail": "The payer's BankID is already in use."
"detail": "The payer´s BankID is already in use."
}{% endcapture %}

{% include code-example.html
title='Example response bankidalreadyinuse'
header=response_header
json= response_content
%}
title='Example response bankidalreadyinuse'
header=response_header
json= response_content
%}

### `bankidcancelled`

Expand Down Expand Up @@ -507,7 +506,7 @@ Content-Type: application/json{% endcapture %}
"title": "BankID error",
"status": 502,
"instance": "https://api.payex.com/psp/swish/payments/0cf55e0f-9931-476b-249d-08d7a3ee4e14/sales",
"detail": "Something went wrong with the payer's BankID authorization."
"detail": "Something went wrong with the payer´s BankID authorization."
}{% endcapture %}

{% include code-example.html
Expand Down Expand Up @@ -589,7 +588,7 @@ Content-Type: application/json{% endcapture %}
"title": "Payment Age Limit Not Met",
"status": 403,
"instance": "https://api.payex.com/psp/swish/payments/0cf55e0f-9931-476b-249d-08d7a3ee4e14/sales",
"detail": "The payer does not meet the payment's age limit."
"detail": "The payer does not meet the payment´s age limit."
}{% endcapture %}

{% include code-example.html
Expand All @@ -613,7 +612,7 @@ Content-Type: application/json{% endcapture %}
"title": "Social Security Number Mismatch",
"status": 403,
"instance": "https://api.payex.com/psp/swish/payments/0cf55e0f-9931-476b-249d-08d7a3ee4e14/sales",
"detail": "The payer's social security number does not match with the one required by this payment."
"detail": "The payer´s social security number does not match with the one required by this payment."
}{% endcapture %}

{% include code-example.html
Expand All @@ -637,7 +636,7 @@ Content-Type: application/json{% endcapture %}
"title": "Error in Swish",
"status": 403,
"instance": "https://api.payex.com/psp/swish/payments/0cf55e0f-9931-476b-249d-08d7a3ee4e14/sales",
"detail": "The payer's Swish is already in use."
"detail": "The payer´s Swish is already in use."
}{% endcapture %}

{% include code-example.html
Expand Down
13 changes: 6 additions & 7 deletions _includes/problems/swish.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,16 +12,15 @@ Caused By:

* The payer's BankID is already in use

{% capture response_header %}HTTP/1.1 409 Conflict
Content-Type: application/json{% endcapture %}
{% capture response_header %}HTTP/1.1 409 Conflict Content-Type: application/json{% endcapture %}

{% capture response_content %}{
"sessionId": "570ad610-3bd5-43d2-a270-ca1510562972",
"type": "https://api.payex.com/psp/errordetail/bankidalreadyinuse",
"title": "BankID Already in Use",
"status": 409,
"instance": "https://api.payex.com/psp/swish/payments/0cf55e0f-9931-476b-249d-08d7a3ee4e14/sales",
"detail": "The payer's BankID is already in use."
"detail": "The payer´s BankID is already in use."
}{% endcapture %}

{% include code-example.html
Expand Down Expand Up @@ -69,7 +68,7 @@ Content-Type: application/json{% endcapture %}
"title": "BankID error",
"status": 502,
"instance": "https://api.payex.com/psp/swish/payments/0cf55e0f-9931-476b-249d-08d7a3ee4e14/sales",
"detail": "Something went wrong with the payer's BankID authorization."
"detail": "Something went wrong with the payer´s BankID authorization."
}{% endcapture %}

{% include code-example.html
Expand Down Expand Up @@ -151,7 +150,7 @@ Content-Type: application/json{% endcapture %}
"title": "Payment Age Limit Not Met",
"status": 403,
"instance": "https://api.payex.com/psp/swish/payments/0cf55e0f-9931-476b-249d-08d7a3ee4e14/sales",
"detail": "The payer does not meet the payment's age limit."
"detail": "The payer does not meet the payment´s age limit."
}{% endcapture %}

{% include code-example.html
Expand All @@ -175,7 +174,7 @@ Content-Type: application/json{% endcapture %}
"title": "Social Security Number Mismatch",
"status": 403,
"instance": "https://api.payex.com/psp/swish/payments/0cf55e0f-9931-476b-249d-08d7a3ee4e14/sales",
"detail": "The payer's social security number does not match with the one required by this payment."
"detail": "The payer´s social security number does not match with the one required by this payment."
}{% endcapture %}

{% include code-example.html
Expand All @@ -199,7 +198,7 @@ Content-Type: application/json{% endcapture %}
"title": "Error in Swish",
"status": 403,
"instance": "https://api.payex.com/psp/swish/payments/0cf55e0f-9931-476b-249d-08d7a3ee4e14/sales",
"detail": "The payer's Swish is already in use."
"detail": "The payers Swish is already in use."
}{% endcapture %}

{% include code-example.html
Expand Down
Loading

0 comments on commit 5e5a4ee

Please sign in to comment.