[paypal] new cert + fix conversion warning
This commit is contained in:
parent
935fa16c19
commit
ebb829061f
2 changed files with 2 additions and 2 deletions
|
|
@ -32,7 +32,7 @@ __all__ = ['Paypal']
|
||||||
class Paypal(Browser):
|
class Paypal(Browser):
|
||||||
DOMAIN = 'www.paypal.com'
|
DOMAIN = 'www.paypal.com'
|
||||||
PROTOCOL = 'https'
|
PROTOCOL = 'https'
|
||||||
CERTHASH = ['b8f6c76050ed3035aab08474b1da0ff783f20d114b1740e8db275fe433ff69af', '96753399cf183334cef00a72719ea8e13cfe68d1e953006348f41f884180de15']
|
CERTHASH = ['b8f6c76050ed3035aab08474b1da0ff783f20d114b1740e8db275fe433ff69af', '96753399cf183334cef00a72719ea8e13cfe68d1e953006348f41f884180de15','9d3039499e97f7a081244ee01c5d25d82441e5b1f43bd45d6b78dccf1f36652e']
|
||||||
ENCODING = 'UTF-8'
|
ENCODING = 'UTF-8'
|
||||||
PAGES = {
|
PAGES = {
|
||||||
'/cgi-bin/webscr\?cmd=_login-run$': LoginPage,
|
'/cgi-bin/webscr\?cmd=_login-run$': LoginPage,
|
||||||
|
|
|
||||||
|
|
@ -129,7 +129,7 @@ class PartHistoryPage(Page):
|
||||||
if transaction['currencyCode'] != account.currency:
|
if transaction['currencyCode'] != account.currency:
|
||||||
transaction = self.browser.convert_amount(account, transaction)
|
transaction = self.browser.convert_amount(account, transaction)
|
||||||
t.original_amount = self.format_amount(transaction['originalAmount'], transaction["isCredit"])
|
t.original_amount = self.format_amount(transaction['originalAmount'], transaction["isCredit"])
|
||||||
t.original_currency = transaction["currencyCode"]
|
t.original_currency = u'' + transaction["currencyCode"]
|
||||||
t.amount = self.format_amount(transaction['netAmount'], transaction["isCredit"])
|
t.amount = self.format_amount(transaction['netAmount'], transaction["isCredit"])
|
||||||
except KeyError:
|
except KeyError:
|
||||||
return
|
return
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue