From empty
To version 11.1
edited by Helge Dahl
on 2017/02/07 17:10
Change comment: There is no comment for this version

Summary

Details

Page properties
Title
... ... @@ -1,0 +1,1 @@
1 +Callbacks
Parent
... ... @@ -1,0 +1,1 @@
1 +eCommerce Documentation.PayEx Checkout.Transaction.WebHome
Author
... ... @@ -1,1 +1,1 @@
1 -XWiki.XWikiGuest
1 +xwiki:XWiki.hde
Default language
... ... @@ -1,0 +1,1 @@
1 +en
Content
... ... @@ -1,0 +1,35 @@
1 +PayEx emits callbacks on all events happening to a payment asynchronously. These callbacks can be used to update the implementers backend systems, send receipts, or any other task related to a change in a payment's status.
2 +
3 +Events like
4 +
5 +* Cancel
6 +* Capture
7 +* Reversal
8 +* Authorize
9 +
10 += Implementation details =
11 +
12 +The implementer registers the callback-url when posting the payment session. The URL should be unique per payment. The resource contains 4 properties:
13 +
14 +|(% style="text-align:right" %)**Property** |= Description
15 +|(% style="text-align:right" %){{code}}payment{{/code}}|The URL of the affected Payment. Perform a GET request on it to retrieve the Payment status.
16 +|(% style="text-align:right" %){{code}}paymentNumber{{/code}}|The human identifiable number of the Payment, used when talking or writing about the Payment. Only the URL should be used to programmatically identify the Payment.
17 +|(% style="text-align:right" %){{code}}transactiond{{/code}}|The URL of the affected transaction. Perform a GET request on it to retrieve information about the Transaction.
18 +|(% style="text-align:right" %){{code}}transactionNumber{{/code}}|The human identifiable number of the Transaction, used when talking or writing about the Transaction. Only the URL should be used to programmatically identify the Transaction.
19 +
20 +A Credit Card Callback looks like this:
21 +
22 +{{code language="JavaScript"}}
23 +POST scheme://your.defined.host/and-path/for-recieving HTTP/1.1
24 +Content-Type: application/json
25 +
26 +{
27 + "payment": "/psp/creditcard/payments/<paymentId>",
28 + "paymentNumber": 123456,
29 + "transaction": "/psp/creditcard/payments/<paymentId>/transactions/<transactionId>",
30 + "transactionNumber": 12345678
31 +}
32 +
33 +{{/code}}
34 +
35 +>**Note!** It is highly probable that this part of the documentation will get changes in the near future.

Tips

Jump to any page in the wiki with Ctrl+G or Meta+G.
See more shortcuts.

Need help?

If you need help with XWiki you can contact: