Skip to main content

Success

This section describes the BfmChargeSuccessComponent component.

Usage

You need to import it in your module and use it in your template.

success.component.ts
import { BfmChargeSuccessComponent } from '@celerofinancas/ui-charges';

@Component({
standalone: true,
selector: 'success',
imports: [BfmChargeSuccessComponent],
templateUrl: './success.component.html',
})
export class SuccessComponent {}

Then, in your template, you can use the component like this:

success.component.html
<bfm-charge-success
[chargeType]="CHARGE_TYPE.none"
[emitInvoice]="true"
[successText]="{ primary: '', secondary: '' }"
/>

Inputs

The BfmChargeSuccessComponent component has the following inputs:

chargeType

Charge Type - Used to get a Success Text based on Type

Type
CHARGE_TYPE from @celerofinancas/core-ts

emitInvoice

Whether an invoice will be emitted

Type
boolean

successText

Custom Success Text

TypeDefault
{ primary: string; secondary: string; }{ primary: '', secondary: '' }

Events

The BfmChargeSuccessComponent component has no events.