Skip to main content
Version: 3.14.0

InvoicePaymentContainer

Handles the case where the user want to get invoice details.

Usage#

import React from "react";
import {
InvoicePaymentContainer,
InvoicePaymentSubmitButton,
Alert,
} from "@pelcro/react-pelcro-js";
import "@pelcro/react-pelcro-js/dist/pelcro.css";
export const CustomInvoicePaymentView = () => {
return (
<InvoicePaymentContainer
onSuccess={(userObject) => {
console.log(userObject);
}}
onFailure={(err) => {
console.error(err.message);
}}
>
<Alert />
<InvoicePaymentSubmitButton />
</InvoicePaymentContainer>
);
};

Reference#

InvoicePaymentContainer#

Props#

onSuccess#

(userObject) โ‡’ void

Callback function called when the password reset request is sent succesfully.

onFailure#

(errorObject) โ‡’ void

Callback function called when the password reset request fails.

Children components#

Alert#

Displays the relevant errors or success messages.


InvoicePaymentSubmitButton Required#

Instance of Button

A button component that submits the invoice.

Props#

name#

string?

The title displayed inside the button