added the logic for aws secrets manager
This commit is contained in:
@@ -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,
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user