From fa67241def7e9c07c7578f97b078f52120e9f45b Mon Sep 17 00:00:00 2001 From: Antoine Nguyen Date: Fri, 17 Jun 2016 09:57:11 +0200 Subject: [PATCH 3/5] Paybox: parameter to choose HTTP method for callback. --- eopayment/paybox.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/eopayment/paybox.py b/eopayment/paybox.py index f305621..dce2a20 100644 --- a/eopayment/paybox.py +++ b/eopayment/paybox.py @@ -203,6 +203,11 @@ class Payment(PaymentCommon): 'caption': _('Callback URL'), 'deprecated': True, }, + { + 'name': 'callback_method', + 'caption': _('Method used for callback URL'), + 'default': 'GET', + }, ] } @@ -240,6 +245,7 @@ class Payment(PaymentCommon): automatic_return_url = self.callback if automatic_return_url: d['PBX_REPONDRE_A'] = unicode(automatic_return_url) + d['PBX_RUF1'] = unicode(self.callback_method) d = d.items() d = sign(d, self.shared_secret.decode('hex')) url = URLS[self.platform] -- 2.1.4