@@ -102,28 +102,43 @@ def get_payment_args(self):
102
102
103
103
104
104
class CardRussianPayment (BasePayment ):
105
- __slots__ = ['card_number' , 'amount' , 'currency' , 'internal_id' , 'destination' ]
105
+ __slots__ = ['card_number' , 'amount' , 'currency' , 'internal_id' , 'destination' , 'first_name' , 'last_name' ]
106
106
107
- def __init__ (self , card_number , amount , currency , internal_id , destination ):
107
+ def __init__ (self , card_number , amount , currency , internal_id , destination , first_name , last_name ):
108
108
self .card_number = card_number
109
109
self .amount = amount
110
110
self .currency = currency
111
111
self .internal_id = internal_id
112
112
self .destination = destination
113
+ self .first_name = first_name
114
+ self .last_name = last_name
113
115
114
116
def get_codename (self ):
115
117
return 'RUCARD'
116
118
117
119
def get_payment_args (self ):
118
- args = [self .card_number , self .amount , self .currency , self .internal_id , self .destination ]
120
+ args = [self .card_number , self .amount , self .currency , self .internal_id , self .destination , self .first_name ,
121
+ self .last_name ]
119
122
return [arg for arg in args if arg is not None ]
120
123
121
124
122
- # Deprecated
123
- class CardUkrainianPayment (CardRussianPayment ):
125
+ class CardUkrainianPayment (BasePayment ):
126
+ __slots__ = ['card_number' , 'amount' , 'currency' , 'internal_id' , 'destination' ]
127
+
128
+ def __init__ (self , card_number , amount , currency , internal_id , destination ):
129
+ self .card_number = card_number
130
+ self .amount = amount
131
+ self .currency = currency
132
+ self .internal_id = internal_id
133
+ self .destination = destination
134
+
124
135
def get_codename (self ):
125
136
return 'UKRCARD'
126
137
138
+ def get_payment_args (self ):
139
+ args = [self .card_number , self .amount , self .currency , self .internal_id , self .destination ]
140
+ return [arg for arg in args if arg is not None ]
141
+
127
142
128
143
class CardWorldwidePayment (BasePayment ):
129
144
__slots__ = [
0 commit comments