@riskdefy/chargebacks 1.0.3 → 1.0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/chargebacks.css +1 -0
- package/dist/index.js +1284 -1
- package/package.json +3 -1
- package/src/components/Chargebacks.vue +6 -25
- package/src/components/Details.vue +789 -0
- package/src/components/FluidPayDetails.vue +314 -0
- package/src/components/IncomingDetails.vue +620 -0
- package/src/components/InovioPayDetails.vue +316 -0
- package/src/components/NmiDetails.vue +162 -0
- package/src/components/NuveiDetails.vue +320 -0
- package/src/components/ReasonExplained.vue +121 -0
- package/src/components/SquareUp.vue +316 -0
- package/src/components/Summary.vue +218 -0
- package/src/components/USAEPayDetails.vue +181 -0
- package/src/service/api.js +23 -0
@@ -0,0 +1,181 @@
|
|
1
|
+
<template>
|
2
|
+
<div class="rounded border pt-0 mb-5">
|
3
|
+
<div class="accordion" id="kt_accordion_1">
|
4
|
+
<div class="accordion-item">
|
5
|
+
<h2 class="accordion-header" id="kt_accordion_1_header_1">
|
6
|
+
<button
|
7
|
+
class="accordion-button fs-6 fw-bold"
|
8
|
+
type="button"
|
9
|
+
data-bs-toggle="collapse"
|
10
|
+
data-bs-target="#kt_accordion_1_body_1"
|
11
|
+
aria-expanded="true"
|
12
|
+
aria-controls="kt_accordion_1_body_1"
|
13
|
+
>
|
14
|
+
Location Member Details
|
15
|
+
</button>
|
16
|
+
</h2>
|
17
|
+
<div
|
18
|
+
id="kt_accordion_1_body_1"
|
19
|
+
class="accordion-collapse collapse show"
|
20
|
+
aria-labelledby="kt_accordion_1_header_1"
|
21
|
+
data-bs-parent="#kt_accordion_1"
|
22
|
+
style=""
|
23
|
+
>
|
24
|
+
<div class="accordion-body">
|
25
|
+
<div class="mb-0">
|
26
|
+
<table class="table table-flush fw-bold gy-1">
|
27
|
+
<tbody>
|
28
|
+
<tr>
|
29
|
+
<td class="ps-5 text-muted min-w-125px w-125px">
|
30
|
+
Account Holder:
|
31
|
+
</td>
|
32
|
+
<td class="text-gray-800">
|
33
|
+
{{ incoming?.transaction.AccountHolder }}
|
34
|
+
</td>
|
35
|
+
<td class="text-muted min-w-125px w-125px">
|
36
|
+
Transaction Id:
|
37
|
+
</td>
|
38
|
+
<td class="text-gray-800">
|
39
|
+
{{ incoming?.transaction.Response.RefNum }}
|
40
|
+
</td>
|
41
|
+
</tr>
|
42
|
+
<tr>
|
43
|
+
<td></td>
|
44
|
+
<td></td>
|
45
|
+
</tr>
|
46
|
+
<tr>
|
47
|
+
<td class="ps-5 text-muted min-w-125px w-125px">
|
48
|
+
Batch Number:
|
49
|
+
</td>
|
50
|
+
<td class="text-gray-800">
|
51
|
+
{{ incoming?.transaction.Response.BatchNum }}
|
52
|
+
</td>
|
53
|
+
<td class="text-muted min-w-125px w-125px">
|
54
|
+
Batch RefNumber:
|
55
|
+
</td>
|
56
|
+
<td class="text-gray-800">
|
57
|
+
{{ incoming?.transaction.Response.BatchRefNum }}
|
58
|
+
</td>
|
59
|
+
</tr>
|
60
|
+
<tr>
|
61
|
+
<td></td>
|
62
|
+
<td></td>
|
63
|
+
</tr>
|
64
|
+
<tr>
|
65
|
+
<td class="ps-5 text-muted min-w-125px w-125px">Result:</td>
|
66
|
+
<td class="text-gray-800">
|
67
|
+
{{ incoming?.transaction.Response.Result }}
|
68
|
+
</td>
|
69
|
+
<td class="text-muted min-w-125px w-125px">Result Code:</td>
|
70
|
+
<td class="text-gray-800">
|
71
|
+
{{ incoming?.transaction.Response.ResultCode }}
|
72
|
+
</td>
|
73
|
+
</tr>
|
74
|
+
<tr>
|
75
|
+
<td></td>
|
76
|
+
<td></td>
|
77
|
+
</tr>
|
78
|
+
<tr>
|
79
|
+
<td class="ps-5 text-muted min-w-125px w-125px">Status:</td>
|
80
|
+
<td class="text-gray-800">
|
81
|
+
{{ incoming?.transaction.Response.Status }}
|
82
|
+
</td>
|
83
|
+
<td class="text-muted min-w-125px w-125px">Status Code:</td>
|
84
|
+
<td class="text-gray-800">
|
85
|
+
{{ incoming?.transaction.Response.StatusCode }}
|
86
|
+
</td>
|
87
|
+
</tr>
|
88
|
+
<tr>
|
89
|
+
<td></td>
|
90
|
+
<td></td>
|
91
|
+
</tr>
|
92
|
+
<tr>
|
93
|
+
<td class="ps-5 text-muted min-w-125px w-125px">
|
94
|
+
CardPresent:
|
95
|
+
</td>
|
96
|
+
<td class="text-gray-800">
|
97
|
+
{{ incoming?.transaction.CreditCardData.CardPresent }}
|
98
|
+
</td>
|
99
|
+
<td class="text-muted min-w-125px w-125px">Product:</td>
|
100
|
+
<td class="text-gray-800">
|
101
|
+
{{ incoming?.order_details.items[0].name }}
|
102
|
+
</td>
|
103
|
+
</tr>
|
104
|
+
</tbody>
|
105
|
+
</table>
|
106
|
+
</div>
|
107
|
+
</div>
|
108
|
+
</div>
|
109
|
+
</div>
|
110
|
+
<div class="accordion-item">
|
111
|
+
<h2 class="accordion-header" id="kt_accordion_1_header_2">
|
112
|
+
<button
|
113
|
+
class="accordion-button fs-6 fw-bold collapsed"
|
114
|
+
type="button"
|
115
|
+
data-bs-toggle="collapse"
|
116
|
+
data-bs-target="#kt_accordion_1_body_2"
|
117
|
+
aria-expanded="false"
|
118
|
+
aria-controls="kt_accordion_1_body_2"
|
119
|
+
>
|
120
|
+
Transaction Details
|
121
|
+
</button>
|
122
|
+
</h2>
|
123
|
+
<div
|
124
|
+
id="kt_accordion_1_body_2"
|
125
|
+
class="accordion-collapse collapse"
|
126
|
+
aria-labelledby="kt_accordion_1_header_2"
|
127
|
+
data-bs-parent="#kt_accordion_1"
|
128
|
+
style=""
|
129
|
+
>
|
130
|
+
<div class="accordion-body">
|
131
|
+
<div class="mb-0">
|
132
|
+
<h6>parsing relax to parse {{ incoming?.connection_id }}</h6>
|
133
|
+
</div>
|
134
|
+
</div>
|
135
|
+
</div>
|
136
|
+
</div>
|
137
|
+
<div class="accordion-item">
|
138
|
+
<h2 class="accordion-header" id="kt_accordion_1_header_3">
|
139
|
+
<button
|
140
|
+
class="accordion-button fs-6 fw-bold collapsed"
|
141
|
+
type="button"
|
142
|
+
data-bs-toggle="collapse"
|
143
|
+
data-bs-target="#kt_accordion_1_body_3"
|
144
|
+
aria-expanded="false"
|
145
|
+
aria-controls="kt_accordion_1_body_3"
|
146
|
+
>
|
147
|
+
Cardholder Details
|
148
|
+
</button>
|
149
|
+
</h2>
|
150
|
+
<div
|
151
|
+
id="kt_accordion_1_body_3"
|
152
|
+
class="accordion-collapse collapse"
|
153
|
+
aria-labelledby="kt_accordion_1_header_3"
|
154
|
+
data-bs-parent="#kt_accordion_1"
|
155
|
+
style=""
|
156
|
+
>
|
157
|
+
<div class="accordion-body">
|
158
|
+
<div class="mb-0">
|
159
|
+
<h6>parsing relax to parse {{ incoming?.connection_id }}</h6>
|
160
|
+
</div>
|
161
|
+
</div>
|
162
|
+
</div>
|
163
|
+
</div>
|
164
|
+
</div>
|
165
|
+
</div>
|
166
|
+
</template>
|
167
|
+
|
168
|
+
<script lang="ts">
|
169
|
+
import { defineComponent } from "vue";
|
170
|
+
|
171
|
+
export default defineComponent({
|
172
|
+
name: "usaepay-details",
|
173
|
+
props: {
|
174
|
+
incoming: Object,
|
175
|
+
},
|
176
|
+
setup() {
|
177
|
+
return {};
|
178
|
+
},
|
179
|
+
});
|
180
|
+
</script>
|
181
|
+
|
@@ -0,0 +1,23 @@
|
|
1
|
+
const ApiService = {
|
2
|
+
apiKey: "", // Default empty API key
|
3
|
+
|
4
|
+
setApiKey(key) {
|
5
|
+
this.apiKey = key;
|
6
|
+
},
|
7
|
+
|
8
|
+
async get(url) {
|
9
|
+
const response = await fetch(`https://api.riskdefy.io/v3/${url}`, {
|
10
|
+
method: "GET",
|
11
|
+
headers: {
|
12
|
+
Authorization: `Bearer ${this.apiKey}`,
|
13
|
+
"Content-Type": "application/json",
|
14
|
+
},
|
15
|
+
});
|
16
|
+
const data = await response.json();
|
17
|
+
|
18
|
+
return data;
|
19
|
+
},
|
20
|
+
};
|
21
|
+
|
22
|
+
export default ApiService;
|
23
|
+
|