Learn more about the subscription flutter sdk integration in your app
pubspec.yaml
and add the following under dependencies:
subscription_id
and subscription_session_id
CFSubscriptionSession
object.CFTheme
object (Optional).CFSubscriptionPayment
object.cashfree_subscription_flow_enable
flag, SDK won’t provide a payment callback.
It should be added inside application tag, not inside activity tag.
subscription_session_id
) and subscription ID (subscription_id
) obtained from creation step. It also specifies the environment (sandbox or production).
CFTheme
. This step is optional but can help maintain consistency with your app’s design.
You can set the NavigationBarBackgroundColor
which will set the color for status bar & cashfree loader
CFSubscriptionPaymentBuilder
to create the payment object. This object accepts a CFSubscriptionSession
, like the one created in the previous step.
doPayment
.