From empty
To version 9.1
edited by Helge Dahl
on 2017/06/23 10:44
Change comment: There is no comment for this version

Summary

Details

Page properties
Title
... ... @@ -1,0 +1,1 @@
1 +Home Resource
Parent
... ... @@ -1,0 +1,1 @@
1 +Panels.PayExCheckoutNavigation
Author
... ... @@ -1,1 +1,1 @@
1 -XWiki.XWikiGuest
1 +xwiki:XWiki.hde
Default language
... ... @@ -1,0 +1,1 @@
1 +en
Content
... ... @@ -1,0 +1,30 @@
1 +**Table of contents**
2 +
3 +{{toc/}}
4 +
5 +The Home resource of PayEx Checkout contains the links to the [[Payment Session resource>>ecommerce.PayEx Checkout.Payment-session]] resource. It can be used to verify that the authentication works and to discover the resources that can be manipulated through the PayEx Checkout REST API.
6 +
7 += Retrieve Home resource =
8 +
9 +To retrieve the Home resource, just perform an HTTP {{code}}GET{{/code}} request towards the PayEx Checkout API base URL for the environment you want to communicate with. The different base URLs can be found in the [[Backend API Introduction>>doc:ecommerce.PayEx Checkout.Introduction.WebHome]].
10 +
11 +== Example ==
12 +
13 +=== Request ===
14 +
15 +{{code language="JavaScript"}}
16 +GET https://api.payex.com/psp/checkout/ 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 + "paymentSession": "<payment_session_url>"
29 +}
30 +{{/code}}

Tips

If you're starting with XWiki, check out the Getting Started Guide.

Need help?

If you need help with XWiki you can contact: