STripe Paymen and PK payemtns and many othe rbacekd and froentened issues
This commit is contained in:
@@ -519,6 +519,30 @@ class PaymentMethodConfigAdmin(Igny8ModelAdmin):
|
||||
search_fields = ['country_code', 'display_name', 'payment_method']
|
||||
list_editable = ['is_enabled', 'sort_order']
|
||||
readonly_fields = ['created_at', 'updated_at']
|
||||
|
||||
fieldsets = (
|
||||
('Payment Method', {
|
||||
'fields': ('country_code', 'payment_method', 'display_name', 'is_enabled', 'sort_order')
|
||||
}),
|
||||
('Instructions', {
|
||||
'fields': ('instructions',),
|
||||
'description': 'Instructions shown to users for this payment method'
|
||||
}),
|
||||
('Bank Transfer Details', {
|
||||
'fields': ('bank_name', 'account_title', 'account_number', 'routing_number', 'swift_code', 'iban'),
|
||||
'classes': ('collapse',),
|
||||
'description': 'Only for bank_transfer payment method'
|
||||
}),
|
||||
('Local Wallet Details', {
|
||||
'fields': ('wallet_type', 'wallet_id'),
|
||||
'classes': ('collapse',),
|
||||
'description': 'Only for local_wallet payment method (JazzCash, EasyPaisa, etc.)'
|
||||
}),
|
||||
('Timestamps', {
|
||||
'fields': ('created_at', 'updated_at'),
|
||||
'classes': ('collapse',)
|
||||
}),
|
||||
)
|
||||
|
||||
|
||||
@admin.register(AccountPaymentMethod)
|
||||
|
||||
Reference in New Issue
Block a user