new Instance
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
gini Health
The GiniHealth instance
payment Details
the PaymentDetails with which the payment will be initiated
payment Flow Configuration
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
gini Health
The GiniHealth instance
document Id
the id of the document to be paid
payment Flow Configuration