paymentChannel top-level constant

MethodChannel const paymentChannel

A constant MethodChannel for invoking payment methods.

This channel is used to invoke payment methods from the Yandex Pay SDK. The methods are used to start payment with a specific payment method.

The methods are called with the following format:

  • "startPayment": starts a payment with a specific payment method.
    • Parameters:
      • url: the payment method specific URL.
    • Returns: nothing, but sends a payment result event through the paymentEventChannel if the payment is finished.

Implementation

const MethodChannel paymentChannel = MethodChannel('com.yandex.pay.flutter_channel/payment_methods');