added the logic for aws secrets manager

This commit is contained in:
swtmply
2023-03-27 23:21:39 +08:00
parent 88ee4f13e1
commit a5e3985745
8 changed files with 224 additions and 12099 deletions

View File

@@ -20,7 +20,7 @@ const openNotificationWithIcon = (type, t) => {
});
};
const PaymentExpandedRowComponent = ({ record }) => {
const PaymentExpandedRowComponent = ({ record, bodyshop }) => {
const [refundAmount, setRefundAmount] = useState(0);
const [insertPayment] = useMutation(INSERT_NEW_PAYMENT);
const [insertPaymentResponse] = useMutation(INSERT_PAYMENT_RESPONSE);
@@ -96,6 +96,7 @@ const PaymentExpandedRowComponent = ({ record }) => {
"The payment will be refunded. Click OK to confirm and Cancel to dismiss.",
async onOk() {
const refundResponse = await axios.post("/intellipay/payment_refund", {
bodyshop,
amount: refundAmount,
paymentid: payment_response.ext_paymentid,
});