From 610921b6cf97a19f458ef7a2c856bef106695bcf Mon Sep 17 00:00:00 2001 From: tehsunnliu Date: Fri, 15 Oct 2021 16:36:36 +0530 Subject: [PATCH] Added razorpay_subscription_id to PaymentSuccessResponse --- lib/razorpay_flutter.dart | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/lib/razorpay_flutter.dart b/lib/razorpay_flutter.dart index 63a333b..55961e1 100644 --- a/lib/razorpay_flutter.dart +++ b/lib/razorpay_flutter.dart @@ -119,16 +119,20 @@ class Razorpay { class PaymentSuccessResponse { String? paymentId; String? orderId; + String? subscriptionId; String? signature; - PaymentSuccessResponse(this.paymentId, this.orderId, this.signature); + PaymentSuccessResponse( + this.paymentId, this.orderId, this.subscriptionId, this.signature); static PaymentSuccessResponse fromMap(Map map) { String? paymentId = map["razorpay_payment_id"]; String? signature = map["razorpay_signature"]; String? orderId = map["razorpay_order_id"]; + String? subscriptionId = map["razorpay_subscription_id"]; - return new PaymentSuccessResponse(paymentId, orderId, signature); + return new PaymentSuccessResponse( + paymentId, orderId, subscriptionId, signature); } }