mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-18 22:00:31 +00:00
WIP: billing /style
This commit is contained in:
18
client/src/store/billing/Billing.action.js
Normal file
18
client/src/store/billing/Billing.action.js
Normal file
@@ -0,0 +1,18 @@
|
||||
import ApiService from 'services/ApiService';
|
||||
import t from 'store/types';
|
||||
|
||||
export const submitBilling = ({ form }) => {
|
||||
return (dispatch) =>
|
||||
new Promise((resolve, reject) => {
|
||||
ApiService.post('payment', form)
|
||||
.then((response) => {
|
||||
resolve(response);
|
||||
})
|
||||
.catch((error) => {
|
||||
const { response } = error;
|
||||
const { data } = response;
|
||||
|
||||
reject(data?.errors);
|
||||
});
|
||||
});
|
||||
};
|
||||
0
client/src/store/billing/Billing.type.js
Normal file
0
client/src/store/billing/Billing.type.js
Normal file
Reference in New Issue
Block a user