Skip to content

Commit

Permalink
DX-2275: The progress so far. Checking in to do a hotfix.
Browse files Browse the repository at this point in the history
  • Loading branch information
arebra committed Nov 27, 2023
1 parent 59d8046 commit 5ea3722
Show file tree
Hide file tree
Showing 38 changed files with 96 additions and 100 deletions.
2 changes: 1 addition & 1 deletion _includes/autoclick.md
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,7 @@ Content-Type: application/json;version=3.1/3.0/2.0 // Version optional for
| {% icon check %} | {% f callbackUrl, 2 %} | `string` | {% include fields/callback-url.md %} |
| {% icon check %} | {% f termsOfServiceUrl, 2 %} | `string` | {% include fields/terms-of-service-url.md %} |{% if include.integration_mode=="redirect" %},
| {% icon check %} | {% f logoUrl, 2 %} | `string` | {% include fields/logo-url.md %} |{% endif %}
| {% icon check %} | {% f payeeInfo %} | `string` | {% include fields/payee-info.md %} |
| {% icon check %} | {% f payeeInfo %} | `object` | {% include fields/payee-info.md %} |
| {% icon check %} | {% f payeeId, 2 %} | `string` | The ID of the payee, usually the merchant ID. |
| {% icon check %} | {% f payeeReference, 2 %} | `string` | {% include fields/payee-reference.md describe_receipt=true %} |
| | {% f payeeName, 2 %} | `string` | The name of the payee, usually the name of the merchant. |
Expand Down
2 changes: 1 addition & 1 deletion _includes/checkout-v3-resource-models.md
Original file line number Diff line number Diff line change
Expand Up @@ -302,7 +302,7 @@ api-supported-versions: 3.0, 3.1
{
"paymentorder": "/psp/paymentorders/5adc265f-f87f-4313-577e-08d3dca1a26c",
"postpurchaseFailedAttempts": {
"postPurchaseFailedAttempts": {
"id": "/psp/paymentorders/5adc265f-f87f-4313-577e-08d3dca1a26c/postpurchasefailedattempts",
"postpurchaseFailedAttemptList": [
{
Expand Down
4 changes: 2 additions & 2 deletions _includes/checkoutv3-purchase.md
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ Content-Type: application/json;version=3.1/3.0/2.0 // Version optional for
| {% icon check %} | {% f callbackUrl, 2 %} | `string` | {% include fields/callback-url.md %} |
| {% icon check %} | {% f termsOfServiceUrl, 2 %} | `string` | {% include fields/terms-of-service-url.md %} |{% if include.integration_mode=="redirect" %},
| {% icon check %} | {% f logoUrl, 2 %} | `string` | {% include fields/logo-url.md %} |{% endif %}
| {% icon check %} | {% f payeeInfo %} | `string` | {% include fields/payee-info.md %} |
| {% icon check %} | {% f payeeInfo %} | `object` | {% include fields/payee-info.md %} |
| {% icon check %} | {% f payeeId, 2 %} | `string` | The ID of the payee, usually the merchant ID. |
| {% icon check %} | {% f payeeReference, 2 %} | `string` | {% include fields/payee-reference.md describe_receipt=true %} |
| | {% f payeeName, 2 %} | `string` | The name of the payee, usually the name of the merchant. |
Expand Down Expand Up @@ -331,7 +331,7 @@ api-supported-versions: 3.1/3.0/2.0
| {% f userAgent %} | `string` | {% include fields/user-agent.md %} |
| {% f language %} | `string` | {% include fields/language.md %} |
| {% f urls %} | `string` | The URL to the `urls` resource where all URLs related to the payment order can be retrieved. |
| {% f payeeInfo %} | `string` | {% include fields/payee-info.md %} |
| {% f payeeInfo %} | `object` | {% include fields/payee-info.md %} |
| {% f payers %} | `string` | The URL to the [`payer` resource]({{ features_url }}/technical-reference/resource-sub-models#payer) where information about the payer can be retrieved. |
| {% f orderItems %} | `string` | The URL to the `orderItems` resource where information about the order items can be retrieved. |
| {% f payments %} | `string` | The URL to the `payments` resource where information about all underlying payments can be retrieved. |
Expand Down
2 changes: 1 addition & 1 deletion _includes/corporate-limited-menu.md
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ Content-Type: application/json
| {% icon check %} | {% f callbackUrl, 2 %} | `string` | {% include fields/callback-url.md %} |
| {% icon check %} | {% f termsOfServiceUrl, 2 %} | `string` | {% include fields/terms-of-service-url.md %} |
| {% icon check %} | {% f logoUrl, 2 %} | `string` | {% include fields/logo-url.md %} |
| {% icon check %} | {% f payeeInfo %} | `string` | {% include fields/payee-info.md %} |
| {% icon check %} | {% f payeeInfo %} | `object` | {% include fields/payee-info.md %} |
| {% icon check %} | {% f payeeId, 2 %} | `string` | The ID of the payee, usually the merchant ID. |
| {% icon check %} | {% f payeeReference, 2 %} | `string` | {% include fields/payee-reference.md describe_receipt=true %} |
{% endcapture %}
Expand Down
44 changes: 25 additions & 19 deletions _includes/one-click-payments.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,10 @@ these details for every purchase." %}

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

For card and invoice payments, the payment flow and implementation varies from
your default only being the use of a `paymentToken`. The details in this section
describe explicitly the parameters that must be set to enable one-click
purchases.
For card, Trustly and invoice payments, the payment flow and implementation
varies from your default only being the use of a `paymentToken`. The details in
this section describe explicitly the parameters that must be set to enable
one-click purchases.

{% else %}

Expand Down Expand Up @@ -108,7 +108,9 @@ payment resource with the `payerReference` included.

```http
GET /psp/paymentorders/payerownedtokens/{{ page.payment_token }} HTTP/1.1
Host: {{ page.api_host }}
Authorization: Bearer <AccessToken>
Content-Type: application/json;version=3.1/3.0/2.0 // Version optional for 3.0 and 2.0
```

You can also perform a GET request towards the `id` of a Payment Order and find
Expand All @@ -119,7 +121,9 @@ the paymentToken in its linked [`paid` resource][paid-resource].

```http
GET /psp/paymentorders/{{ page.payment_id }}/paid HTTP/1.1
Host: {{ page.api_host }}
Authorization: Bearer <AccessToken>
Content-Type: application/json;version=3.1/3.0/2.0 // Version optional for 3.0 and 2.0
```

{% endif %}
Expand Down Expand Up @@ -197,12 +201,11 @@ generated by Swedbank Pay, but a reference set by you to identify your customer
and their returning payments. An example could be to use internal customer
numbers.

Using `payerReference` and `generatePaymentToken: true` will display all (max 3)
cards connected to the payerReference.

If you wish to display one specific card only, you can remove
`generatePaymentToken` and add the field `paymentToken` in it's place. This must
be the paymentToken generated in the initial purchase.
For card payments, using `payerReference` and `generatePaymentToken: true` will
display all (max 3) cards connected to the payerReference. If you wish to
display one specific card only, you can remove `generatePaymentToken` and add
the field `paymentToken` in it's place. This must be the paymentToken generated
in the initial purchase.

{% if documentation_section contains "payment-instruments" %}

Expand Down Expand Up @@ -272,7 +275,7 @@ Content-Type: application/json
POST {{ purchase_url }} HTTP/1.1
Host: {{ page.api_host }}
Authorization: Bearer <AccessToken>
Content-Type: application/json
Content-Type: application/json;version=3.1/3.0/2.0 // Version optional for 3.0 and 2.0
{
"paymentorder": {
Expand All @@ -294,7 +297,7 @@ Content-Type: application/json
POST {{ purchase_url }} HTTP/1.1
Host: {{ page.api_host }}
Authorization: Bearer <AccessToken>
Content-Type: application/json
Content-Type: application/json;version=3.1/3.0/2.0 // Version optional for 3.0 and 2.0
{
"paymentorder": {
Expand Down Expand Up @@ -382,7 +385,7 @@ should look like this:
PATCH /psp/paymentorders/payerownedtokens/<payerReference> HTTP/1.1
Host: {{ page.api_host }}
Authorization: Bearer <AccessToken>
Content-Type: application/json
Content-Type: application/json;version=3.1/3.0/2.0 // Version optional for 3.0 and 2.0
{
"state": "Deleted",
Expand All @@ -402,7 +405,8 @@ TODO: Remove pipes from the above code example and add a field table

```http
HTTP/1.1 200 OK
Content-Type: application/json
Content-Type: application/json; charset=utf-8; version=3.1/3.0/2.0
api-supported-versions: 2.0, 3.0, 3.1
{
"payerOwnedTokens": {
Expand Down Expand Up @@ -442,8 +446,9 @@ Content-Type: application/json
{% if documentation_section contains "checkout" %}

For single token deletions, the request and response should look like this. In
this example, the token is connected to a card. If it was a token connected to
an invoice, the `instrumentDisplayName` would be the payer's date of birth.
this example, the token is connected to a card. If the token is connected to
an invoice, the `instrumentDisplayName` will be the payer's date of birth. For
Trustly transactions, it will be a masked account number.

## Delete Single Token Request For Checkout Integrations

Expand All @@ -454,7 +459,7 @@ an invoice, the `instrumentDisplayName` would be the payer's date of birth.
PATCH /psp/paymentorders/paymenttokens/{{ page.payment_token }} HTTP/1.1
Host: {{ page.api_host }}
Authorization: Bearer <AccessToken>
Content-Type: application/json
Content-Type: application/json;version=3.1/3.0/2.0 // Version optional for 3.0 and 2.0
{
"state": "Deleted",
Expand All @@ -469,7 +474,8 @@ Content-Type: application/json

```http
HTTP/1.1 200 OK
Content-Type: application/json
Content-Type: application/json; charset=utf-8; version=3.1
api-supported-versions: 2.0, 3.0, 3.1
{
"paymentToken": "{{paymentToken}}",
Expand Down Expand Up @@ -543,4 +549,4 @@ Content-Type: application/json
[create-card-payment]: /old-implementations/payment-instruments-v1/card/features/technical-reference/create-payment
[create-invoice-payment]: /old-implementations/payment-instruments-v1/invoice/features/technical-reference/create-payment
[paid-resource]: /checkout-v3/features/technical-reference/status-models#paid
[verify]: /old-implementations/payment-instruments-v1/card/features/optional/verify
[verify]: /checkout-v3/features/optional/verify
2 changes: 1 addition & 1 deletion _includes/payer-aware-payment-menu.md
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,7 @@ CContent-Type: application/json;version=3.1/3.0/2.0 // Version optional for
| {% icon check %} | {% f callbackUrl, 2 %} | `string` | {% include fields/callback-url.md %} |
| {% icon check %} | {% f termsOfServiceUrl, 2 %} | `string` | {% include fields/terms-of-service-url.md %} |{% if include.integration_mode=="redirect" %},
| {% icon check %} | {% f logoUrl, 2 %} | `string` | {% include fields/logo-url.md %} |{% endif %}
| {% icon check %} | {% f payeeInfo %} | `string` | The `payeeInfo` object, containing information about the payee. |
| {% icon check %} | {% f payeeInfo %} | `object` | The `payeeInfo` object, containing information about the payee. |
| {% icon check %} | {% f payeeId, 2 %} | `string` | The ID of the payee, usually the merchant ID. |
| {% icon check %} | {% f payeeReference, 2 %} | `string` | {% include fields/payee-reference.md documentation_section=include.documentation_section describe_receipt=true %} |
| | {% f payeeName, 2 %} | `string` | The name of the payee, usually the name of the merchant. |
Expand Down
Loading

0 comments on commit 5ea3722

Please sign in to comment.