Commit 5362842e by G

query to get transactions informations and its corresponding types

parent 2d4ee23f
import axiosRequest from "../axios-request";
export interface IorangePaymentStarter {
type_paiement : number,
marchand : "1",
service : "1",
montant : number,
commentaire : string,
numero : string
}
export interface IOrangeResponse {
status : number,
message : string,
pay_token : string,
payment_url : string,
notif_token : string
}
export const getTransactionsData = async (payload : IorangePaymentStarter) => {
// const basictoken = base64.encode("admin:admin");
return await axiosRequest<IOrangeResponse>({
url: "/transactions/",
method: "POST",
data: payload
});
};
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment