Projet

Général

Profil

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

Antoine Nguyen, 17 juin 2016 10:03

Télécharger (1,13 ko)

Voir les différences:

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

 eopayment/paybox.py | 6 ++++++
 1 file changed, 6 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
            },
206 211
        ]
207 212
    }
208 213

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