Package 

Class GooglePayHelper

  • All Implemented Interfaces:

    
    public final class GooglePayHelper
    
                        

    Осуществляет настройку и вызов Google Pay

    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      final Unit initGooglePay(Context context, Function1<Boolean, Unit> onGooglePayReady) Инициирует Google Pay API, определяет доступность совершения платежей на устройстве
      final Unit openGooglePay(Activity activity, Money price, Integer requestCode) Запускает экран Google Pay
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • initGooglePay

         final Unit initGooglePay(Context context, Function1<Boolean, Unit> onGooglePayReady)

        Инициирует Google Pay API, определяет доступность совершения платежей на устройстве

        Parameters:
        context - контекст для инициализации
        onGooglePayReady - коллбек, оповещающий о доступности Google Pay на устройстве
      • openGooglePay

         final Unit openGooglePay(Activity activity, Money price, Integer requestCode)

        Запускает экран Google Pay

        Parameters:
        activity - контекст для запуска экрана
        price - сумма для оплаты
        requestCode - код для получения результата, по завершению работы Google Pay