log 관련
This commit is contained in:
@@ -10,10 +10,20 @@ import {
|
||||
useMutation,
|
||||
UseMutationOptions
|
||||
} from '@tanstack/react-query';
|
||||
import { getHeaderUserAgent } from '@/shared/constants/url';
|
||||
|
||||
export const billingCharge = (params: BillingChargeParams) => {
|
||||
let headerOptions = {
|
||||
menuId: 34,
|
||||
apiType: 'INSERT'
|
||||
};
|
||||
let options = {
|
||||
headers: {
|
||||
'X-User-Agent': getHeaderUserAgent(headerOptions)
|
||||
}
|
||||
};
|
||||
return resultify(
|
||||
axios.post<BillingChargeResponse>(API_URL_TRANSACTION.billingCharge(), params),
|
||||
axios.post<BillingChargeResponse>(API_URL_TRANSACTION.billingCharge(), params, options),
|
||||
);
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user