diff --git a/src/services/paymentService.ts b/src/services/paymentService.ts index 3e84185..e01580f 100644 --- a/src/services/paymentService.ts +++ b/src/services/paymentService.ts @@ -43,7 +43,7 @@ export const paymentService = { removeCardAlt: (id: number): Promise> => api.delete(`/payment/cards/remove/${id}`), - updatePaymentProfile: (id: number, data: { profile_id: string }): Promise> => + updatePaymentProfile: (id: number, data: { auth_net_payment_profile_id: string }): Promise> => api.put(`/payment/card/update_payment_profile/${id}`, data), // Authorization & capture (Main API) @@ -94,7 +94,7 @@ export const paymentService = { authorizeApi.post(`/api/charge/${customerId}`, data), capture: (data: CaptureRequest): Promise> => - authorizeApi.post('/api/capture/', data), + authorizeApi.post('/api/payments/capture', data), // Auto transaction endpoints getAutoTransaction: (deliveryId: number): Promise> =>