feat: Phase 1 — remove Stripe, switch to e-Transfer
- Drop stripe_payment + stripe_sdk deps; delete stripe pay pages/widgets - New ETransferPay widget: shows payment@wisetronic.com + R#<orderId> remark - goPayment stripe/native branches now route to e-Transfer - pay_now widgets: strip saved-cards section & dead nativePay logic - my_cards pages rewritten as e-Transfer info (route kept) - models/utils/constants cleaned of stripe; env constraint -> Dart 3 See UPGRADE_NOTES.md. (Null-safety migration is Phase 3; deps upgrade Phase 2.)
This commit is contained in:
@@ -1,46 +0,0 @@
|
||||
|
||||
import 'dart:convert';
|
||||
|
||||
class StripePaymentMethod {
|
||||
int id;
|
||||
String customerId;
|
||||
String paymentMethodId;
|
||||
String paymentMethodType;
|
||||
String cardBrand;
|
||||
String cardCountry;
|
||||
int cardExpMonth;
|
||||
int cardExpYear;
|
||||
String cardFunding;
|
||||
String cardLast4;
|
||||
|
||||
StripePaymentMethod.fromJson(Map<String, dynamic> json) :
|
||||
id = json['id'],
|
||||
customerId = json['customer_id'],
|
||||
paymentMethodId = json['payment_method_id'],
|
||||
paymentMethodType = json['payment_method_type'],
|
||||
cardBrand = json['card_brand'],
|
||||
cardCountry = json['card_country'],
|
||||
cardExpMonth = json['card_exp_month'],
|
||||
cardExpYear = json['card_exp_year'],
|
||||
cardFunding = json['card_funding'],
|
||||
cardLast4 = json['card_last4'];
|
||||
|
||||
Map<String, dynamic> toJson() => {
|
||||
'id': id,
|
||||
'customer_id': customerId,
|
||||
'payment_method_id': paymentMethodId,
|
||||
'payment_method_type': paymentMethodType,
|
||||
'card_brand': cardBrand,
|
||||
'card_country': cardCountry,
|
||||
'card_exp_month': cardExpMonth,
|
||||
'card_exp_year': cardExpYear,
|
||||
'card_funding': cardFunding,
|
||||
'card_last4': cardLast4,
|
||||
};
|
||||
|
||||
@override
|
||||
String toString() {
|
||||
return json.encode(this);
|
||||
}
|
||||
|
||||
}
|
||||
@@ -1,8 +1,6 @@
|
||||
|
||||
import 'dart:convert';
|
||||
|
||||
import 'stripe_payment_method.dart';
|
||||
|
||||
class User {
|
||||
int id;
|
||||
String username;
|
||||
@@ -20,7 +18,6 @@ class User {
|
||||
double pointsToCreditsConversionRate;
|
||||
String contactNumber;
|
||||
String flutterMiniStoreToken;
|
||||
List<StripePaymentMethod> stripePaymentMethods;
|
||||
|
||||
User.fromJson(Map<String, dynamic> json)
|
||||
: id = json['id'],
|
||||
@@ -38,8 +35,7 @@ class User {
|
||||
orderNum = json['order_num'],
|
||||
pointsToCreditsConversionRate = double.parse(json['points_to_credits_conversion_rate'].toString()),
|
||||
contactNumber = json['contact_number'],
|
||||
flutterMiniStoreToken = json['flutter_ministore_token'],
|
||||
stripePaymentMethods = (json['stripe_payment_methods'] as List).map((e) => StripePaymentMethod.fromJson(e)).toList();
|
||||
flutterMiniStoreToken = json['flutter_ministore_token'];
|
||||
|
||||
Map<String, dynamic> toJson() => {
|
||||
'id': id,
|
||||
@@ -58,7 +54,6 @@ class User {
|
||||
'points_to_credits_conversion_rate': pointsToCreditsConversionRate,
|
||||
'contact_number': contactNumber,
|
||||
'flutter_ministore_token': flutterMiniStoreToken,
|
||||
'stripe_payment_methods': stripePaymentMethods,
|
||||
};
|
||||
|
||||
@override
|
||||
|
||||
Reference in New Issue
Block a user