Added receipt print out at end of payment processing BOD-93

This commit is contained in:
Patrick Fic
2020-07-14 08:49:48 -07:00
parent 26f84fd1e1
commit e91751e20c
12 changed files with 212 additions and 3 deletions

View File

@@ -1,5 +1,5 @@
import { CardElement } from "@stripe/react-stripe-js";
import { Checkbox, Form, Input } from "antd";
import { Checkbox, Form, Input, Radio } from "antd";
import React from "react";
import { useTranslation } from "react-i18next";
import { connect } from "react-redux";
@@ -76,6 +76,17 @@ export function PaymentFormComponent({
/>
</Form.Item>
<Form.Item
label={t("general.labels.sendby")}
name="sendby"
initialValue="email"
>
<Radio.Group>
<Radio.Button value="email">{t("general.labels.email")}</Radio.Button>
<Radio.Button value="print">{t("general.labels.print")}</Radio.Button>
</Radio.Group>
</Form.Item>
{!!!bodyshop.stripe_acct_id ? (
<div style={{ fontStyle: "italic" }}>{t("payments.labels.signup")}</div>
) : null}