Flutter Razorpay Totalx Module
Package for razorpay totalxsoftware team
Usage
Sample code to integrate
Import package
import 'package:razorpay_totalxsoftware/razorpay_totalxsoftware.dart';
RazorpayTotalxsoftware.pay(
context,
amount: 100,
saveInFirebase: true,
rzpKey: 'rzp_test_8mYCq4efvCCyu0',
razorpayKeySecret: 'gVTrlrkzbMn0SGWZYLLoKyeW',
appName: 'razorpay_web_totalxsoftware',
// itemName: , // optional
userProfile: RzpUserProfile(
uid: 'unique_user_id',
name: 'John Doe',
email: 'qYqgK@example.com',
phoneNumber: '1234567890',
),
success: (response) {
log(response.toString());
log('payment success');
},
failure: (response) {
log(response.toString());
},
error: (response) {
log(response.toString());
},
);