Changes for page Addressee
Last modified by Asbjørn Ulsberg on 2018/07/05 12:48
From empty
To version 8.1
edited by Helge Dahl
on 2017/06/23 10:45
on 2017/06/23 10:45
Change comment: There is no comment for this version
Summary
-
Page properties (5 modified, 0 added, 0 removed)
Details
- Page properties
-
- Title
-
... ... @@ -1,0 +1,1 @@ 1 +Addressee - Parent
-
... ... @@ -1,0 +1,1 @@ 1 +Panels.PayExCheckoutNavigation - Author
-
... ... @@ -1,1 +1,1 @@ 1 - XWiki.XWikiGuest1 +xwiki:XWiki.hde - Default language
-
... ... @@ -1,0 +1,1 @@ 1 +en - Content
-
... ... @@ -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}}