RazorpayPaymentS2SCreateRequestBody constructor
- @JsonSerializable(includeIfNull: false)
const
RazorpayPaymentS2SCreateRequestBody(
{ - required dynamic amount,
- required String currency,
- required String order_id,
- required String email,
- required dynamic contact,
- required String customer_id,
- required dynamic save,
- required RazorpayCardS2SMethod card,
- Map<String, String?>? notes,
- String? description,
- String? subscription_id,
- String? token,
- String? account_id,
- String? referer,
- String? user_agent,
- String? provider_name,
- BrowserInfo? browser,
})
Implementation
@JsonSerializable(includeIfNull: false)
const factory RazorpayPaymentS2SCreateRequestBody({
// Base fields
required dynamic amount, // number | string
required String currency,
required String order_id,
required String email,
required dynamic contact,
required String customer_id,
// PaymentAuthentication? authentication, // Handled inside card?
// S2S specific
required dynamic save, // boolean | number (0 or 1)
required RazorpayCardS2SMethod card, // Reverted to required
Map<String, String?>? notes, // Kept type change
String? description,
String? subscription_id,
String? token,
String? account_id, // Sub-merchant ID
String? referer,
String? user_agent,
String? provider_name, // Not in d.ts, check if needed
BrowserInfo? browser,
}) = _RazorpayPaymentS2SCreateRequestBody;