-
Notifications
You must be signed in to change notification settings - Fork 0
/
PaymentGatewayAPI.postman_collection.json
85 lines (85 loc) · 1.93 KB
/
PaymentGatewayAPI.postman_collection.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
{
"info": {
"_postman_id": "aa08e6c0-2341-471c-9137-23fc4bd72b05",
"name": "PaymentGatewayAPI",
"schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
},
"item": [
{
"name": "Process payment",
"request": {
"method": "POST",
"header": [],
"body": {
"mode": "raw",
"raw": "{\r\n \"paymentCardDetails\": {\r\n \"cardNumber\": \"4689387567825\",\r\n \"expiryYear\": 2021,\r\n \"expiryMonth\": 6,\r\n \"cvv\": \"123\"\r\n },\r\n \"currency\": \"GBP\",\r\n \"amount\": 42\r\n}",
"options": {
"raw": {
"language": "json"
}
}
},
"url": {
"raw": "http://localhost:5000/payments",
"protocol": "http",
"host": [
"localhost"
],
"port": "5000",
"path": [
"payments"
]
}
},
"response": []
},
{
"name": "Process payment (Failure)",
"request": {
"method": "POST",
"header": [],
"body": {
"mode": "raw",
"raw": "{\r\n \"paymentCardDetails\": {\r\n \"cardNumber\": \"5201294442453002\",\r\n \"expiryYear\": 2021,\r\n \"expiryMonth\": 6,\r\n \"cvv\": \"123\"\r\n },\r\n \"currency\": \"GBP\",\r\n \"amount\": 2000\r\n}",
"options": {
"raw": {
"language": "json"
}
}
},
"url": {
"raw": "http://localhost:5000/payments",
"protocol": "http",
"host": [
"localhost"
],
"port": "5000",
"path": [
"payments"
]
}
},
"response": []
},
{
"name": "Get payment details",
"request": {
"method": "GET",
"header": [],
"url": {
"raw": "http://localhost:5000/payments/c3582071-fe93-42d6-a7d0-bead75b43044",
"protocol": "http",
"host": [
"localhost"
],
"port": "5000",
"path": [
"payments",
"c3582071-fe93-42d6-a7d0-bead75b43044"
]
}
},
"response": []
}
]
}