create method
Future<Response<RazorpayCustomer> >
create({
- required RazorpayCustomerCreateRequestBody params,
- void callback(
- RazorpayApiException?,
- Response<
RazorpayCustomer> ?
Creates a customer
@param params - Check doc for required params
Implementation
Future<Response<RazorpayCustomer>> create({
required RazorpayCustomerCreateRequestBody params,
void Function(RazorpayApiException?, Response<RazorpayCustomer>?)? callback,
}) async {
return api.post<RazorpayCustomer>(
{
'url': '/customers',
'data': params.toJson(),
},
fromJsonFactory: RazorpayCustomer.fromJson,
callback: callback,
);
}