Minor updates to intellipay processing.
This commit is contained in:
@@ -136,10 +136,10 @@ const CardPaymentModalComponent = ({
|
|||||||
},
|
},
|
||||||
update(cache, { data }) {
|
update(cache, { data }) {
|
||||||
cache.modify({
|
cache.modify({
|
||||||
id: cache.identify({ id: jobid, __typename: "jobs" }),
|
id: cache.identify({ id: values.jobid, __typename: "jobs" }),
|
||||||
fields: {
|
fields: {
|
||||||
payments(payments) {
|
payments(cachedPayments) {
|
||||||
return [...data.insert_payments.returning, ...payments];
|
return [...data.insert_payments.returning, ...cachedPayments];
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -209,6 +209,7 @@ export function JobPayments({
|
|||||||
>
|
>
|
||||||
{t("menus.header.enterpayment")}
|
{t("menus.header.enterpayment")}
|
||||||
</Button>
|
</Button>
|
||||||
|
|
||||||
<Button
|
<Button
|
||||||
onClick={() =>
|
onClick={() =>
|
||||||
setCardPaymentContext({
|
setCardPaymentContext({
|
||||||
|
|||||||
@@ -747,7 +747,6 @@ export const GET_JOB_BY_PK = gql`
|
|||||||
amount
|
amount
|
||||||
payer
|
payer
|
||||||
created_at
|
created_at
|
||||||
stripeid
|
|
||||||
transactionid
|
transactionid
|
||||||
memo
|
memo
|
||||||
date
|
date
|
||||||
|
|||||||
@@ -5,6 +5,15 @@ export const INSERT_NEW_PAYMENT = gql`
|
|||||||
insert_payments(objects: $paymentInput) {
|
insert_payments(objects: $paymentInput) {
|
||||||
returning {
|
returning {
|
||||||
id
|
id
|
||||||
|
jobid
|
||||||
|
amount
|
||||||
|
payer
|
||||||
|
created_at
|
||||||
|
transactionid
|
||||||
|
memo
|
||||||
|
date
|
||||||
|
type
|
||||||
|
exportedat
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -64,7 +64,6 @@
|
|||||||
"severalerrorsfound": "Several jobs have issues which may prevent accurate smart scheduling. Click to expand.",
|
"severalerrorsfound": "Several jobs have issues which may prevent accurate smart scheduling. Click to expand.",
|
||||||
"smartscheduling": "Smart Scheduling",
|
"smartscheduling": "Smart Scheduling",
|
||||||
"smspaymentreminder": "This is {{shopname}} reminding you about your remaining balance of {{amount}}. To pay for the said balance click the link {{payment_link}}. Thank you very much.",
|
"smspaymentreminder": "This is {{shopname}} reminding you about your remaining balance of {{amount}}. To pay for the said balance click the link {{payment_link}}. Thank you very much.",
|
||||||
"smspaymentreminder": "",
|
|
||||||
"suggesteddates": "Suggested Dates"
|
"suggesteddates": "Suggested Dates"
|
||||||
},
|
},
|
||||||
"successes": {
|
"successes": {
|
||||||
@@ -107,7 +106,6 @@
|
|||||||
"billposted": "Bill with invoice number {{invoice_number}} posted.",
|
"billposted": "Bill with invoice number {{invoice_number}} posted.",
|
||||||
"billupdated": "Bill with invoice number {{invoice_number}} updated.",
|
"billupdated": "Bill with invoice number {{invoice_number}} updated.",
|
||||||
"failedpayment": "Failed payment",
|
"failedpayment": "Failed payment",
|
||||||
"failedpayment": "",
|
|
||||||
"jobassignmentchange": "Employee {{name}} assigned to {{operation}}",
|
"jobassignmentchange": "Employee {{name}} assigned to {{operation}}",
|
||||||
"jobassignmentremoved": "Employee assignment removed for {{operation}}",
|
"jobassignmentremoved": "Employee assignment removed for {{operation}}",
|
||||||
"jobchecklist": "Checklist type \"{{type}}\" completed. In production set to {{inproduction}}. Status set to {{status}}.",
|
"jobchecklist": "Checklist type \"{{type}}\" completed. In production set to {{inproduction}}. Status set to {{status}}.",
|
||||||
@@ -1215,30 +1213,6 @@
|
|||||||
"transactionid": "Transaction ID"
|
"transactionid": "Transaction ID"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"job_payments": {
|
|
||||||
"buttons": {
|
|
||||||
"goback": "",
|
|
||||||
"proceedtopayment": "",
|
|
||||||
"refundpayment": ""
|
|
||||||
},
|
|
||||||
"notifications": {
|
|
||||||
"error": {
|
|
||||||
"description": "",
|
|
||||||
"title": ""
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"titles": {
|
|
||||||
"amount": "",
|
|
||||||
"dateOfPayment": "",
|
|
||||||
"descriptions": "",
|
|
||||||
"payer": "",
|
|
||||||
"payername": "",
|
|
||||||
"paymentid": "",
|
|
||||||
"paymenttype": "",
|
|
||||||
"refundamount": "",
|
|
||||||
"transactionid": ""
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"joblines": {
|
"joblines": {
|
||||||
"actions": {
|
"actions": {
|
||||||
"converttolabor": "Convert amount to Labor.",
|
"converttolabor": "Convert amount to Labor.",
|
||||||
@@ -1953,7 +1927,6 @@
|
|||||||
"dashboard": "Dashboard",
|
"dashboard": "Dashboard",
|
||||||
"enterbills": "Enter Bills",
|
"enterbills": "Enter Bills",
|
||||||
"entercardpayment": "Enter Card Payments",
|
"entercardpayment": "Enter Card Payments",
|
||||||
"entercardpayment": "",
|
|
||||||
"enterpayment": "Enter Payments",
|
"enterpayment": "Enter Payments",
|
||||||
"entertimeticket": "Enter Time Tickets",
|
"entertimeticket": "Enter Time Tickets",
|
||||||
"export": "Export",
|
"export": "Export",
|
||||||
@@ -1966,7 +1939,6 @@
|
|||||||
"owners": "Owners",
|
"owners": "Owners",
|
||||||
"parts-queue": "Parts Queue",
|
"parts-queue": "Parts Queue",
|
||||||
"paymentremindersms": "Send Payment Reminder via SMS",
|
"paymentremindersms": "Send Payment Reminder via SMS",
|
||||||
"paymentremindersms": "",
|
|
||||||
"phonebook": "Phonebook",
|
"phonebook": "Phonebook",
|
||||||
"productionboard": "Production Board - Visual",
|
"productionboard": "Production Board - Visual",
|
||||||
"productionlist": "Production Board - List",
|
"productionlist": "Production Board - List",
|
||||||
|
|||||||
@@ -20,8 +20,8 @@ const getShopCredentials = async (bodyshop) => {
|
|||||||
// Development only
|
// Development only
|
||||||
if (process.env.NODE_ENV === undefined) {
|
if (process.env.NODE_ENV === undefined) {
|
||||||
return {
|
return {
|
||||||
merchantkey: process.env.DEV_INTELLIPAY_MERCHANTKEY,
|
merchantkey: process.env.INTELLIPAY_MERCHANTKEY,
|
||||||
apikey: process.env.DEV_INTELLIPAY_APIKEY,
|
apikey: process.env.INTELLIPAY_APIKEY,
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -47,9 +47,10 @@ exports.lightbox_credentials = async (req, res) => {
|
|||||||
data: qs.stringify({
|
data: qs.stringify({
|
||||||
...shopCredentials,
|
...shopCredentials,
|
||||||
operatingenv:
|
operatingenv:
|
||||||
process.env.NODE_ENV === undefined
|
// process.env.NODE_ENV === undefined
|
||||||
? process.env.NODE_ENV
|
// ? process.env.NODE_ENV
|
||||||
: "businessattended",
|
// :
|
||||||
|
"businessattended",
|
||||||
}),
|
}),
|
||||||
url: `https://${domain}.cpteller.com/api/custapi.cfc?method=autoterminal`,
|
url: `https://${domain}.cpteller.com/api/custapi.cfc?method=autoterminal`,
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user