Wiki source code of Testing

Last modified by Asbjørn Ulsberg on 2018/07/05 12:48
Hide last authors
Asbjørn Ulsberg 16.1 1 == Testdata ==
2
Helge Dahl 7.1 3 In order to test the implementation before you go live, you need to use the following testdata.
4
Asbjørn Ulsberg 16.1 5 === Credit card ===
Helge Dahl 7.1 6
Håkon Mosvoll 15.1 7 (% border="1" %)
8 |=Card number|4925000000000004
9 |=Expiry date|12/18
10 |=CVC|123
Helge Dahl 7.1 11
Håkon Mosvoll 15.1 12 (% border="1" %)
13 |=Card number|4761739001010416
14 |=Expiry date|12/22
15 |=CVC|268
Helge Dahl 7.1 16
Asbjørn Ulsberg 16.1 17 === Invoice ===
Helge Dahl 7.1 18
Asbjørn Ulsberg 16.1 19 ==== Norway ====
Helge Dahl 7.1 20
Håkon Mosvoll 11.1 21 (% border="1" %)
Håkon Mosvoll 12.1 22 |=Social security number|26026708248
Håkon Mosvoll 13.1 23 |=Name|Olivia Nyhuus
24 |=Street address|Saltnestoppen 43
25 |=Zip|1642
26 |=City|Saltnes
Helge Dahl 7.1 27
Asbjørn Ulsberg 16.1 28 ==== Sweden ====
Helge Dahl 7.1 29
Håkon Mosvoll 15.1 30 (% border="1" %)
31 |=Social security number|600307-1161
32 |=Name|Azra Oliveira
33 |=Street address|Helgestavägen 9
34 |=Zip|19792
Asbjørn Ulsberg 16.1 35 |=City|(((
36 Bro
37 )))
38
39 == Troubleshooting ==
40
41 === Authentication ===
42
43 To authenticate with PayEx Checkout, you need an **Access Token** created in the PayEx Admin interface. Remember that the Access Token is a secret, so treat it like a password. Do do not check it in to source code or save it anywhere someone unauthorized might obtain it.
44
45 === Checkout Init ===
46
47 A successful request requires that the {{code}}Referer{{/code}} HTTP header matches the {{code}}host{{/code}} URL configured on your account. The validation is taken care of by the checkout-script.
48
49 == General ==
50
51 === Credentials ===
52
53 If you don't have a merchant account with PayEx, don't know your credentials or otherwise need credentials created to implement PayEx Checkout, please contact:
54
55 * For a Norwegian: [[salg@payex.com>>mailto:salg@payex.com]]
56 * For a Swedish: [[sales@payex.com>>mailto:sales@payex.com]]
57
58 === Useful URLs ===
59
60 ==== Test Environment ====
61
62 The URLs required for integration against PayEx' test environment (called "external integration") are:
63
64 |= Type|= Url
65 | Frontend JavaScript|[[https:~~/~~/checkout.externalintegration.payex.com/js/payex-checkout.min.js>>https://checkout.externalintegration.payex.com/js/payex-checkout.min.js]]
66 | Backend API |https://api.externalintegration.payex.com/psp/checkout
67
68 ==== Production Environment ====
69
70 The URLs required for integration against PayEx' production environment are:
71
72 |= Type|= Url
73 | Frontend JavaScript|https://checkout.payex.com/js/payex-checkout.min.js
74 | Backend API |https://api.payex.com/psp/checkout