GiniMerchant

public final class GiniMerchant

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
public class Companion
Link copied to clipboard
public class MerchantSDKEvents

Different events that can be emitted by the MerchantSDK.

Link copied to clipboard
public class PaymentState

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
public final SharedFlow<GiniMerchant.MerchantSDKEvents> getEventsFlow()
Link copied to clipboard

Loads payment provider apps - can be used before starting the payment flow for faster loading

Properties

Link copied to clipboard
private final SharedFlow<GiniMerchant.MerchantSDKEvents> eventsFlow