Skip to content

Commit

Permalink
Merge pull request #2391 from SwedbankPay/feature/devp-494_metadata_G…
Browse files Browse the repository at this point in the history
…ET_request

DEVP-494: Fixed metadata GET request
  • Loading branch information
arebra authored Nov 29, 2024
2 parents d6c42aa + ca7c58b commit 5e70036
Showing 1 changed file with 13 additions and 2 deletions.
15 changes: 13 additions & 2 deletions _includes/metadata.md
Original file line number Diff line number Diff line change
Expand Up @@ -72,11 +72,22 @@ Content-Type: application/json{% endcapture %}

## GET Request

{% capture request_header %}GET /psp/{{ api_resource }}/{% unless api_resource == "paymentorders" %}payments/{% endunless %}{{ page.payment_id }}/ HTTP/1.1
Host: {{ page.api_host }}
{% if documentation_section contains "old-implementations/payment-instruments-v1" %}

{% capture request_header %}GET /psp/{{ api_resource }}/payments/7e6cdfc3-1276-44e9-9992-7cf4419750e1/ HTTP/1.1
Host: api.externalintegration.payex.com
Authorization: Bearer <AccessToken>
Content-Type: application/json{% endcapture %}

{% else %}

{% capture request_header %}GET /psp/paymentorders/7e6cdfc3-1276-44e9-9992-7cf4419750e1/ HTTP/1.1
Host: api.externalintegration.payex.com
Authorization: Bearer <AccessToken>
Content-Type: application/json{% endcapture %}

{% endif %}

{% include code-example.html
title='Request'
header=request_header
Expand Down

0 comments on commit 5e70036

Please sign in to comment.