newInstance

public final PaymentFragment newInstance(GiniHealth giniHealth, PaymentDetails paymentDetails, PaymentFlowConfiguration paymentFlowConfiguration, ViewModelProvider.Factory viewModelFactory)

Creates an instance of PaymentFragment for the case when payment is initiated with payment details

Parameters

giniHealth

The GiniHealth instance

paymentDetails

the PaymentDetails with which the payment will be initiated

paymentFlowConfiguration

public final PaymentFragment newInstance(GiniHealth giniHealth, String documentId, PaymentFlowConfiguration paymentFlowConfiguration, ViewModelProvider.Factory viewModelFactory)

Creates an instance of PaymentFragment for the case when payment is initiated with a documentId

Parameters

giniHealth

The GiniHealth instance

documentId

the id of the document to be paid

paymentFlowConfiguration