Wiki source code of Testing
Last modified by Asbjørn Ulsberg on 2018/07/05 12:48
| 1 | == Testdata == |
| 2 | |
| 3 | In order to test the implementation before you go live, you need to use the following testdata. |
| 4 | |
| 5 | === Credit card === |
| 6 | |
| 7 | (% border="1" %) |
| 8 | |=Card number|4925000000000004 |
| 9 | |=Expiry date|12/18 |
| 10 | |=CVC|123 |
| 11 | |
| 12 | (% border="1" %) |
| 13 | |=Card number|4761739001010416 |
| 14 | |=Expiry date|12/22 |
| 15 | |=CVC|268 |
| 16 | |
| 17 | === Invoice === |
| 18 | |
| 19 | ==== Norway ==== |
| 20 | |
| 21 | (% border="1" %) |
| 22 | |=Social security number|26026708248 |
| 23 | |=Name|Olivia Nyhuus |
| 24 | |=Street address|Saltnestoppen 43 |
| 25 | |=Zip|1642 |
| 26 | |=City|Saltnes |
| 27 | |
| 28 | ==== Sweden ==== |
| 29 | |
| 30 | (% border="1" %) |
| 31 | |=Social security number|600307-1161 |
| 32 | |=Name|Azra Oliveira |
| 33 | |=Street address|Helgestavägen 9 |
| 34 | |=Zip|19792 |
| 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 |