Dokumenta Addressee izmaiņas
Pēdējais mainījis Asbjørn Ulsberg 2018/07/05 12:48
From empty
Uz versiju 8.1
Mainījis Helge Dahl
2017/06/23 10:45
2017/06/23 10:45
Izmaiņu komentāri: Šai versijai nav komentāru
Apkopojums
-
Lapas īpašības (5 mainīti, 0 pievienoti, 0 dzēsti)
Detaļas
- Lapas īpašības
-
- Virsraksts
-
... ... @@ -1,0 +1,1 @@ 1 +Addressee - Vecāks
-
... ... @@ -1,0 +1,1 @@ 1 +Panels.PayExCheckoutNavigation - Autors
-
... ... @@ -1,1 +1,1 @@ 1 - XWiki.XWikiGuest1 +xwiki:XWiki.hde - Noklusētā valoda
-
... ... @@ -1,0 +1,1 @@ 1 +en - Saturs
-
... ... @@ -1,0 +1,40 @@ 1 +**Table of contents** 2 + 3 +{{toc/}} 4 + 5 +The Payer resource contains information about the person that performed the PayEx Checkout user flow and eventually paid for the goods or service. 6 + 7 += Retrieve Addressee resource = 8 + 9 +To retrieve the Addressee resource, you first have to have created a [[Payment Session resource>>ecommerce.PayEx Checkout.Payment-session]] and have the payer complete the PayEx Checkout user flow. Then, within the Payment Session resource, you will find a {{code}}Addressee{{/code}} property containing the URL of the Addressee resource. When you have discovered that URL, just perform an HTTP {{code}}GET{{/code}} request on it. 10 + 11 +== Example == 12 + 13 +=== Request === 14 + 15 +{{code language="JavaScript"}} 16 +GET https://api.payex.com/psp/checkout/payment-sessions/123-456-789/addressee HTTP/1.1 17 +Accept: application/json 18 +Authorization: Bearer merchantToken== 19 +{{/code}} 20 + 21 +=== Response === 22 + 23 +{{code language="JavaScript"}} 24 +HTTP/1.1 200 OK 25 +Content-Type: application/json 26 + 27 +{ 28 + "id": "https://api.payex.com/psp/checkout/payment-sessions/123-456-789/addressee", 29 + "email": "payer@example.com", 30 + "mobilePhoneNumber": "+4712345678", 31 + "fullName": "Bill Payson", 32 + "address": { 33 + "streetAddress": "Street 13", 34 + "zipCode": "93837", 35 + "city": "Billington", 36 + "coAddress": "Cash Payson, Some Avenue 13", 37 + "countryCode": "NO" 38 + } 39 +} 40 +{{/code}}