Updates to SMS payments.

This commit is contained in:
Patrick Fic
2023-08-16 16:14:34 -07:00
parent a879e99e77
commit eb48b56f47
7 changed files with 277 additions and 124 deletions

View File

@@ -178,43 +178,13 @@ const CardPaymentModalComponent = ({
return (
<Card title="Card Payment">
<Button
onClick={() => {
const data = {
operation: "approval",
response: {
messagetype: "paymentresponse",
status: 5,
custid: 39117514,
paymentid: 64430260,
response: "A",
authcode: "169753",
declinereason: "Approved",
avsresult: "Y",
fee: 0,
invoice: "",
account: "QBD272",
paymenttype: "C",
methodhint: "AX ***1002",
cardbrand: "American Express",
cardnumdisplay: "379859..1002",
amount: 0.01,
total: 0.01,
},
};
form.setFieldValue("paymentResponse", data);
form.submit();
}}
>
Test
</Button>
<Spin spinning={loading}>
<Form
onFinish={handleFinish}
form={form}
initialValues={{ jobid: context?.jobid }}
>
<LayoutFormRow grow>
<LayoutFormRow grow noDivider>
<Form.Item
name="jobid"
label={t("bills.fields.ro_number")}