RazorpayPaymentUpiCreateRequestBody constructor
- @JsonSerializable(includeIfNull: false)
const
RazorpayPaymentUpiCreateRequestBody(
{ - required dynamic amount,
- required String currency,
- required String order_id,
- required String email,
- required dynamic contact,
- required String method,
- IMap<String>? notes,
- String? description,
- String? customer_id,
- String? subscription_id,
- PaymentAuthentication? authentication,
- @JsonKey(toJson: _boolToInt, fromJson: _intToBool) bool? save,
- String? callback_url,
- PaymentUpiDetails? upi,
- String? token,
})
Implementation
@JsonSerializable(includeIfNull: false)
const factory RazorpayPaymentUpiCreateRequestBody({
// Base fields (customer_id is optional)
required dynamic amount, // number | string
required String currency,
required String order_id,
required String email,
required dynamic contact, // UPI specific
required String
method, // Should be 'upi', required String ip, required String referer, required String user_agent, // string | number
IMap<String>? notes,
String? description,
String? customer_id, // Optional
String? subscription_id,
PaymentAuthentication? authentication,
@JsonKey(toJson: _boolToInt, fromJson: _intToBool) bool? save, // 1 | 0
String? callback_url,
PaymentUpiDetails? upi,
String? token, // Token of saved VPA
}) = _RazorpayPaymentUpiCreateRequestBody;