Projet

Général

Profil

0003-Paybox-parameter-to-choose-HTTP-method-for-callback.patch

Antoine Nguyen, 17 juin 2016 15:58

Télécharger (1,17 ko)

Voir les différences:

Subject: [PATCH 3/6] Paybox: parameter to choose HTTP method for callback.

 eopayment/paybox.py | 7 +++++++
 1 file changed, 7 insertions(+)
eopayment/paybox.py
203 203
                'caption': _('Callback URL'),
204 204
                'deprecated': True,
205 205
            },
206
            {
207
                'name': 'callback_method',
208
                'caption': _('Method used for callback URL'),
209
                'default': 'GET',
210
                'choices': ('GET', 'POST'),
211
            },
206 212
        ]
207 213
    }
208 214

  
......
240 246
            automatic_return_url = self.callback
241 247
        if automatic_return_url:
242 248
            d['PBX_REPONDRE_A'] = unicode(automatic_return_url)
249
            d['PBX_RUF1'] = unicode(self.callback_method)
243 250
        d = d.items()
244 251
        d = sign(d, self.shared_secret.decode('hex'))
245 252
        url = URLS[self.platform]
246
-