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:
@@ -49,13 +49,15 @@ class Constants {
|
||||
static const String PAYMENT_METHOD_CODE_OTT_ALIPAY = 'ALIPAY';
|
||||
static const String PAYMENT_METHOD_CODE_OTT_WECHATPAY = 'WECHATPAY';
|
||||
static const String PAYMENT_METHOD_CODE_PAYPAL = 'paypal';
|
||||
static const String PAYMENT_METHOD_CODE_STRIPE = 'stripe';
|
||||
static const String PAYMENT_METHOD_CODE_STRIPE = 'stripe'; // API still returns 'stripe' code; now routed to e-Transfer
|
||||
static const String PAYMENT_METHOD_CODE_POD = 'payondeliverypickup';
|
||||
static const String PAYMENT_METHOD_NATIVE_PAY = 'native_pay';
|
||||
|
||||
static const String STRIPE_STATUS_REQUIRES_CONFIRMATION = 'requires_confirmation';
|
||||
static const String STRIPE_CLIENT_SECRET = 'client_secret';
|
||||
static const String STRIPE_STATUS_SUCCEDED = 'succeeded';
|
||||
// e-Transfer (replaces Stripe)
|
||||
static const String ETRANSFER_EMAIL = 'payment@wisetronic.com';
|
||||
static const String ETRANSFER_QA = 'wisetronic'; // security question answer placeholder, if needed
|
||||
// Remark template for auto-processing: R#<receipt id> (= order id)
|
||||
static const String ETRANSFER_REMARK_PREFIX = 'R#';
|
||||
|
||||
static const int STATUS_PENDING = 0;
|
||||
static const int STATUS_ACCEPT = 1;
|
||||
|
||||
Reference in New Issue
Block a user