CFSessionBuilder class

Builder for creating a CFSession with the required payment session parameters.

Example:

final session = CFSessionBuilder()
  .setEnvironment(CFEnvironment.SANDBOX)
  .setOrderId("order_123")
  .setPaymentSessionId("session_abc")
  .build();

Constructors

CFSessionBuilder()

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

build() CFSession
Validates all required fields and returns a CFSession.
getEnvironment() CFEnvironment
getOrderId() String
getOrderToken() String
getPaymentSessionId() String
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
setEnvironment(CFEnvironment environment) CFSessionBuilder
Sets the environment (CFEnvironment.SANDBOX or CFEnvironment.PRODUCTION).
setOrderId(String orderId) CFSessionBuilder
Sets the order ID for the payment session.
setOrderToken(String orderToken) CFSessionBuilder
setPaymentSessionId(String paymentSessionId) CFSessionBuilder
Sets the payment session ID obtained from the Cashfree Orders API.
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited