@seamlessdocs/payment-modals 1.0.63 → 1.0.65
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/index.html
CHANGED
|
@@ -167,6 +167,22 @@
|
|
|
167
167
|
}
|
|
168
168
|
},
|
|
169
169
|
transactionUrl: 'https://backend.dev.nonprod.seamlessdocs.com/payments/transactions/govOsPay/transaction.json',
|
|
170
|
+
getTransactionUrl: 'https://backend.dev.nonprod.seamlessdocs.com/payments/transactions/govOsPay/transactions',
|
|
171
|
+
updateTransactionUrl: 'https://backend.dev.nonprod.seamlessdocs.com/payments/transactions/govOsPay/transactions',
|
|
172
|
+
lineItems: [
|
|
173
|
+
{
|
|
174
|
+
title: "Document Fee",
|
|
175
|
+
description: "",
|
|
176
|
+
quantity: 1,
|
|
177
|
+
unitPrice: 100,
|
|
178
|
+
},
|
|
179
|
+
{
|
|
180
|
+
title: "Fee Test ACH",
|
|
181
|
+
description: "",
|
|
182
|
+
quantity: 1,
|
|
183
|
+
unitPrice: 200,
|
|
184
|
+
},
|
|
185
|
+
],
|
|
170
186
|
callbacks: {
|
|
171
187
|
onPay: function () {
|
|
172
188
|
setTimeout(function () {
|
|
@@ -215,6 +231,22 @@
|
|
|
215
231
|
}
|
|
216
232
|
},
|
|
217
233
|
transactionUrl: 'https://backend.dev.nonprod.seamlessdocs.com/payments/transactions/govOsPay/transaction.json',
|
|
234
|
+
getTransactionUrl: 'https://backend.dev.nonprod.seamlessdocs.com/payments/transactions/govOsPay/transactions/',
|
|
235
|
+
updateTransactionUrl: 'https://backend.dev.nonprod.seamlessdocs.com/payments/transactions/govOsPay/transactions/',
|
|
236
|
+
lineItems: [
|
|
237
|
+
{
|
|
238
|
+
title: "Document Fee",
|
|
239
|
+
description: "",
|
|
240
|
+
quantity: 1,
|
|
241
|
+
unitPrice: 100,
|
|
242
|
+
},
|
|
243
|
+
{
|
|
244
|
+
title: "Fee Test Credit Card",
|
|
245
|
+
description: "",
|
|
246
|
+
quantity: 1,
|
|
247
|
+
unitPrice: 2.0408163265306145,
|
|
248
|
+
},
|
|
249
|
+
],
|
|
218
250
|
callbacks: {
|
|
219
251
|
onPay: function () {
|
|
220
252
|
setTimeout(function () {
|
package/package.json
CHANGED
|
@@ -16,6 +16,9 @@ const GovOSPayACHPaymentModal = ({
|
|
|
16
16
|
paymentCorrelationId,
|
|
17
17
|
paymentConfig,
|
|
18
18
|
transactionUrl,
|
|
19
|
+
getTransactionUrl,
|
|
20
|
+
updateTransactionUrl,
|
|
21
|
+
lineItems,
|
|
19
22
|
}) => {
|
|
20
23
|
useEffect(() => {
|
|
21
24
|
// TODO: Remove use of shims when mootools is removed
|
|
@@ -36,13 +39,15 @@ const GovOSPayACHPaymentModal = ({
|
|
|
36
39
|
</div>
|
|
37
40
|
<div className={styles.modal}>
|
|
38
41
|
<ACHPayment
|
|
39
|
-
lineItems={
|
|
42
|
+
lineItems={lineItems}
|
|
40
43
|
providerConfig={paymentConfig}
|
|
41
44
|
applicationName={'GovOS Studio'}
|
|
42
45
|
transactionUrl={transactionUrl}
|
|
43
46
|
correlationId={paymentCorrelationId}
|
|
44
47
|
amount={amount}
|
|
45
48
|
onSuccess={onPay}
|
|
49
|
+
getTransactionUrl={getTransactionUrl}
|
|
50
|
+
updateTransactionUrl={updateTransactionUrl}
|
|
46
51
|
/>
|
|
47
52
|
</div>
|
|
48
53
|
</Modal>
|
|
@@ -56,6 +61,9 @@ GovOSPayACHPaymentModal.propTypes = {
|
|
|
56
61
|
paymentCorrelationId: PropTypes.string.isRequired,
|
|
57
62
|
paymentConfig: PropTypes.object.isRequired,
|
|
58
63
|
transactionUrl: PropTypes.string.isRequired,
|
|
64
|
+
getTransactionUrl: PropTypes.string,
|
|
65
|
+
updateTransactionUrl: PropTypes.string,
|
|
66
|
+
lineItems: PropTypes.array,
|
|
59
67
|
};
|
|
60
68
|
|
|
61
69
|
export default GovOSPayACHPaymentModal;
|
|
@@ -17,6 +17,9 @@ const GovOSPayCardPaymentModal = ({
|
|
|
17
17
|
paymentConfig,
|
|
18
18
|
transactionMode,
|
|
19
19
|
transactionUrl,
|
|
20
|
+
getTransactionUrl,
|
|
21
|
+
updateTransactionUrl,
|
|
22
|
+
lineItems,
|
|
20
23
|
}) => {
|
|
21
24
|
useEffect(() => {
|
|
22
25
|
// TODO: Remove use of shims when mootools is removed
|
|
@@ -37,10 +40,12 @@ const GovOSPayCardPaymentModal = ({
|
|
|
37
40
|
</div>
|
|
38
41
|
<div className={styles.modal}>
|
|
39
42
|
<CardPayment
|
|
40
|
-
lineItems={
|
|
43
|
+
lineItems={lineItems}
|
|
41
44
|
providerConfig={paymentConfig}
|
|
42
45
|
applicationName={'GovOS Studio'}
|
|
43
46
|
transactionUrl={transactionUrl}
|
|
47
|
+
getTransactionUrl={getTransactionUrl}
|
|
48
|
+
updateTransactionUrl={updateTransactionUrl}
|
|
44
49
|
correlationId={paymentCorrelationId}
|
|
45
50
|
amount={amount}
|
|
46
51
|
onSuccess={onPay}
|
|
@@ -59,6 +64,9 @@ GovOSPayCardPaymentModal.propTypes = {
|
|
|
59
64
|
paymentConfig: PropTypes.object.isRequired,
|
|
60
65
|
transactionMode: PropTypes.oneOf(['preauth' | 'transaction']),
|
|
61
66
|
transactionUrl: PropTypes.string.isRequired,
|
|
67
|
+
getTransactionUrl: PropTypes.string,
|
|
68
|
+
updateTransactionUrl: PropTypes.string,
|
|
69
|
+
lineItems: PropTypes.array,
|
|
62
70
|
};
|
|
63
71
|
|
|
64
72
|
GovOSPayCardPaymentModal.defaultProps = {
|
package/src/index.jsx
CHANGED
|
@@ -101,6 +101,9 @@ handlePaymentModal.govOSPayACHPaymentModal = settings => {
|
|
|
101
101
|
paymentCorrelationId={settings.paymentCorrelationId}
|
|
102
102
|
paymentConfig={settings.paymentConfig}
|
|
103
103
|
transactionUrl={settings.transactionUrl}
|
|
104
|
+
getTransactionUrl={settings.getTransactionUrl}
|
|
105
|
+
updateTransactionUrl={settings.updateTransactionUrl}
|
|
106
|
+
lineItems={settings.lineItems}
|
|
104
107
|
/>,
|
|
105
108
|
document.getElementById('payment-modal')
|
|
106
109
|
);
|
|
@@ -119,6 +122,9 @@ handlePaymentModal.govOSPayCardPaymentModal = settings => {
|
|
|
119
122
|
paymentConfig={settings.paymentConfig}
|
|
120
123
|
transactionMode={settings.transactionMode}
|
|
121
124
|
transactionUrl={settings.transactionUrl}
|
|
125
|
+
getTransactionUrl={settings.getTransactionUrl}
|
|
126
|
+
updateTransactionUrl={settings.updateTransactionUrl}
|
|
127
|
+
lineItems={settings.lineItems}
|
|
122
128
|
/>,
|
|
123
129
|
document.getElementById('payment-modal')
|
|
124
130
|
);
|