Projet

Général

Profil

0004-Paybox-choose-card-type.patch

Antoine Nguyen, 17 juin 2016 10:03

Télécharger (1,28 ko)

Voir les différences:

Subject: [PATCH 4/5] Paybox: choose card type.

 eopayment/paybox.py | 11 +++++++++++
 1 file changed, 11 insertions(+)
eopayment/paybox.py
208 208
                'caption': _('Method used for callback URL'),
209 209
                'default': 'GET',
210 210
            },
211
            {
212
                'name': 'payment_type',
213
                'caption': _('Payment type')
214
            },
215
            {
216
                'name': 'card_type',
217
                'caption': 'Card type'
218
            }
211 219
        ]
212 220
    }
213 221

  
......
246 254
        if automatic_return_url:
247 255
            d['PBX_REPONDRE_A'] = unicode(automatic_return_url)
248 256
            d['PBX_RUF1'] = unicode(self.callback_method)
257
        if self.payment_type and self.card_type:
258
            d['PBX_TYPEPAIEMENT'] = self.payment_type
259
            d['PBX_TYPECARTE'] = self.card_type
249 260
        d = d.items()
250 261
        d = sign(d, self.shared_secret.decode('hex'))
251 262
        url = URLS[self.platform]
252
-