-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathchargeTransaction.json
202 lines (202 loc) · 4.48 KB
/
chargeTransaction.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
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"name": "chargeTransaction",
"type": "object",
"properties": {
"chargeUuid": {
"type": "string",
"description": "Unique ID for the charge that has been transacted"
},
"billingProfileId": {
"type": "string",
"description": "Billing Profile ID of the charge"
},
"transactionId": {
"type": "string",
"description": "Unique transaction ID for this transaction"
},
"paymentMethodType": {
"enum": [
"CARD",
"DIGITALWALLET",
"DIRECTDEBIT",
"CRYPTOCURRENCY"
]
},
"paymentMethodProvider": {
"enum": [
"FORM",
"PAYPAL",
"APPLEPAY",
"GOOGLEPAY",
"AMAZONPAY"
]
},
"paymentMethodInputType": {
"enum": [
"PHYSICAL",
"VIRTUAL",
"PROXY"
]
},
"paymentMethodIssuer": {
"type": "string",
"description": "Payment Method Issuer, e.g. HSBC"
},
"paymentMethodId": {
"type": "string",
"description": "ID for the payment method token used"
},
"paymentScheme": {
"type": "string",
"description": "Payment Scheme, e.g. Visa, MasterCard, PayPal Business"
},
"transactionType": {
"enum": [
"AUTHORIZE",
"CAPTURE",
"REFUND",
"CANCEL",
"DISPUTE",
"VERIFY",
"EXPIRED",
"INTERNAL"
]
},
"transactionSubType": {
"enum": [
"IDENTIFY",
"CHALLENGE",
"CAPTURE_AUTH"
]
},
"responseCode": {
"type": "string",
"description": "ChargeHive Response Code"
},
"consumerMessage": {
"type": "string",
"description": "Response message designed to display to the consumer"
},
"transactionResult": {
"enum": [
"SUCCESS",
"DECLINED",
"VERIFY",
"PENDING",
"PENDING_SUCCESS",
"RETRY",
"EXPIRED"
]
},
"requestedAmount": {
"$ref": "money.json"
},
"transactedAmount": {
"$ref": "money.json"
},
"contractType": {
"enum": [
"NONE",
"PAYMENT",
"SUBSCRIPTION_INITIAL",
"SUBSCRIPTION_RENEWAL",
"ONECLICK"
]
},
"statementDescriptor": {},
"failureType": {
"enum": [
"NONE",
"SOFT",
"HARD",
"RETRY",
"INTERNAL"
]
},
"verificationType": {
"enum": [
"INVALID",
"IDENTIFY",
"CHALLENGE"
]
},
"verificationStatus": {
"enum": [
"NOT_CHECKED",
"PASSED",
"FAILED",
"CONTINUE"
]
},
"liability": {
"enum": [
"UNKNOWN",
"MERCHANT",
"ISSUER"
]
},
"details": {
"type": "array",
"items": {
"$ref": "transactionDetail.json"
}
},
"attemptDetail": {
"$ref": "attemptDetail.json"
},
"renewalNumber": {
"type": "number",
"description": "Renewal number for the subscription"
},
"references": {
"type": "object",
"description": "References for this transaction"
},
"transactionTime": {
"type": "number",
"description": "Transaction time, measured in seconds since the Unix epoch"
},
"sourceTransactionId": {
"type": "string",
"description": "Transaction ID for the source transaction e.g. Original Transaction for a refund, or captureAuth"
},
"connectorId": {
"type": "string",
"description": "Your ID for the connector used"
},
"connectorLibrary": {
"type": "string",
"description": "connector library ID used to process this transaction"
},
"addressVerificationResult": {
"type": "string",
"description": "Address Verification result"
},
"cvvVerificationResult": {
"type": "string",
"description": "Card Verification result"
},
"merchantReference": {
"type": "string",
"description": "Unique reference for this charge, as defined by the merchant"
},
"responseDetail": {
"$ref": "responseDetail.json"
},
"authCode": {
"type": "string",
"description": "This is the authorization code returned by the issuing bank."
},
"arn": {
"type": "string",
"description": "Acquirer Reference Number"
},
"fraudScanResults": {
"type": "array",
"items": {
"$ref": "fraudScan.json"
}
}
}
}