Commit 20162342 by Arjun Jhukal

updated the new changes for fortpay

parent 3535764f
{ {
"permissions": { "permissions": {
"allow": [
"WebFetch(domain:secure.fppgateway.com)",
"WebFetch(domain:secure.networkmerchants.com)"
],
"additionalDirectories": [ "additionalDirectories": [
"d:\\Makura\\getFirekirin\\src\\app\\api\\dfl-proxy" "d:\\Makura\\getFirekirin\\src\\app\\api\\dfl-proxy"
] ]
......
...@@ -72,10 +72,10 @@ export const transactionApi = createApi({ ...@@ -72,10 +72,10 @@ export const transactionApi = createApi({
}), }),
deposit: builder.mutation<DepositResponseProps, DepositProps>({ deposit: builder.mutation<DepositResponseProps, DepositProps>({
query: ({ id, amount, type, payment_token, number, hash, exp, bin, status }) => ({ query: ({ id, amount, type, payment_token, number, hash, exp, bin, status, first_name, last_name, address, city, state, zip }) => ({
url: `/api/payment/${id}`, url: `/api/payment/${id}`,
method: "POST", method: "POST",
body: { amount: amount, type: type, payment_token, number, hash, exp, bin ,status} body: { amount, type, payment_token, number, hash, exp, bin, status, first_name, last_name, address, city, state, zip }
}), }),
invalidatesTags: ["Deposit"] invalidatesTags: ["Deposit"]
}), }),
......
...@@ -12,7 +12,12 @@ export interface DepositProps { ...@@ -12,7 +12,12 @@ export interface DepositProps {
number?: string; number?: string;
hash?: string; hash?: string;
status?: "success" | "failed"; status?: "success" | "failed";
// type: response.card.type first_name?: string;
last_name?: string;
address?: string;
city?: string;
state?: string;
zip?: string;
} }
export interface DepositUrlProps { export interface DepositUrlProps {
......
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