Payments class
Properties
-
api
→ API
-
final
-
hashCode
→ int
-
The hash code for this object.
no setterinherited
-
runtimeType
→ Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
all({RazorpayPaymentQuery? params, void callback(RazorpayApiException?, Response<RazorpayApiResponse<RazorpayPayment>>?)?})
→ Future<Response<RazorpayApiResponse<RazorpayPayment>>>
-
Get all payments
-
bankTransfer({required String paymentId, void callback(RazorpayApiException?, Response<RazorpayPaymentDetails>?)?})
→ Future<Response<RazorpayPaymentDetails>>
-
Fetch payment details using id for bank transfer method
-
capture({required String paymentId, required dynamic amount, required String currency, void callback(RazorpayApiException?, Response<RazorpayPayment>?)?})
→ Future<Response<RazorpayPayment>>
-
Capture payment
-
createPaymentJson({required dynamic params, void callback(RazorpayApiException?, Response<RazorpayPaymentS2SJson>?)?})
→ Future<Response<RazorpayPaymentS2SJson>>
-
Create payment json (S2S flow)
-
createRecurringPayment({required RazorpayRecurringPaymentCreateRequestBody params, void callback(RazorpayApiException?, Response<RazorpayOtpSubmitResponse>?)?})
→ Future<Response<RazorpayOtpSubmitResponse>>
-
Create a recurring payment
-
createUpi({required RazorpayPaymentUpiCreateRequestBody params, void callback(RazorpayApiException?, Response<RazorpayCreateUpiResponse>?)?})
→ Future<Response<RazorpayCreateUpiResponse>>
-
Create Payment UPI (TPV flows)
-
edit({required String paymentId, required RazorpayPaymentUpdateRequestBody params, void callback(RazorpayApiException?, Response<RazorpayPayment>?)?})
→ Future<Response<RazorpayPayment>>
-
Edit a payment given Payment ID (Update notes)
-
fetch({required String paymentId, List<String>? expand, void callback(RazorpayApiException?, Response<RazorpayPayment>?)?})
→ Future<Response<RazorpayPayment>>
-
Fetch a payment
-
fetchCardDetails({required String paymentId, void callback(RazorpayApiException?, Response<RazorpayCard>?)?})
→ Future<Response<RazorpayCard>>
-
Fetch card details with paymentId
-
fetchMultipleRefund({required String paymentId, RazorpayPaginationOptions? params, void callback(RazorpayApiException?, Response<RazorpayPaymentRefundsResponse>?)?})
→ Future<Response<RazorpayPaymentRefundsResponse>>
-
Fetch multiple refunds for a payment
-
fetchPaymentDowntime({void callback(RazorpayApiException?, Response<RazorpayPaymentDowntimeResponse>?)?})
→ Future<Response<RazorpayPaymentDowntimeResponse>>
-
Fetch Payment Downtime Details
-
fetchPaymentDowntimeById({required String downtimeId, void callback(RazorpayApiException?, Response<RazorpayPaymentDowntime>?)?})
→ Future<Response<RazorpayPaymentDowntime>>
-
Fetch Payment Downtime by ID
-
fetchPaymentMethods({void callback(RazorpayApiException?, Response<Map<String, dynamic>>?)?})
→ Future<Response<Map<String, dynamic>>>
-
Fetch available payment methods
-
fetchRefund({required String paymentId, required String refundId, void callback(RazorpayApiException?, Response<RazorpayRefund>?)?})
→ Future<Response<RazorpayRefund>>
-
Fetch a specific refund for a payment
-
fetchTransfer({required String paymentId, void callback(RazorpayApiException?, Response<RazorpayPaymentTransfersResponse>?)?})
→ Future<Response<RazorpayPaymentTransfersResponse>>
-
Fetch transfers for a payment
-
noSuchMethod(Invocation invocation)
→ dynamic
-
Invoked when a nonexistent method or property is accessed.
inherited
-
otpGenerate({required String paymentId, void callback(RazorpayApiException?, Response<RazorpayPaymentS2SJson>?)?})
→ Future<Response<RazorpayPaymentS2SJson>>
-
Generate OTP for S2S payments
-
otpResend({required String paymentId, void callback(RazorpayApiException?, Response<RazorpayOtpResendResponse>?)?})
→ Future<Response<RazorpayOtpResendResponse>>
-
Resend OTP for S2S payments
-
otpSubmit({required String paymentId, required String otp, void callback(RazorpayApiException?, Response<RazorpayOtpSubmitResponse>?)?})
→ Future<Response<RazorpayOtpSubmitResponse>>
-
Submit OTP for S2S payments
-
refund({required String paymentId, required dynamic params, void callback(RazorpayApiException?, Response<RazorpayRefund>?)?})
→ Future<Response<RazorpayRefund>>
-
Create a normal/instant refund or refund with transfer reversal.
-
toString()
→ String
-
A string representation of this object.
inherited
-
transfer({required String paymentId, required List<RazorpayPaymentCreateTransferRequestBody> transfers, void callback(RazorpayApiException?, Response<RazorpayCreateTransferResponse>?)?})
→ Future<Response<RazorpayCreateTransferResponse>>
-
Create transfers from payment
-
validateVpa({required String vpa, void callback(RazorpayApiException?, Response<RazorpayValidateVpaResponse>?)?})
→ Future<Response<RazorpayValidateVpaResponse>>
-
Validate VPA (TPV flow)