Gini Merchant
GiniMerchant is one of the main classes for interacting with the Gini Merchant SDK. It provides a way to create the PaymentFragment, which is the entrypoint to the Merchant SDK.
eventsFlow is used by the PaymentFragment to observe its state, but it is public so that it can be observed anywhere, the main purpose for this is to observe screen changes and finish events.
Constructors
Link copied to clipboard
public GiniMerchant GiniMerchant(Context context, String clientId, String clientSecret, String emailDomain, SessionManager sessionManager, String merchantApiBaseUrl, String userCenterApiBaseUrl, Boolean debuggingEnabled)
Types
Link copied to clipboard
Different events that can be emitted by the MerchantSDK.
Link copied to clipboard
State of the payment request
Functions
Link copied to clipboard
public final PaymentFragment createFragment(String iban, String recipient, String amount, String purpose, PaymentFlowConfiguration flowConfiguration)
Creates and returns the PaymentFragment. Checks if iban, recipient, amount and purpose are empty and throws IllegalStateException if any of them are.
Link copied to clipboard
Link copied to clipboard
Loads payment provider apps - can be used before starting the payment flow for faster loading