From 777f9de69b5c185b5b5d9124b3ae1c19e7f35b06 Mon Sep 17 00:00:00 2001 From: Tim Gates Date: Wed, 21 Jul 2021 23:08:04 +1000 Subject: [PATCH] docs: Fix a few typos There are small typos in: - paython/gateways/core.py - paython/gateways/firstdata.py - paython/gateways/firstdata_legacy.py - paython/gateways/plugnpay.py Fixes: - Should read `weird` rather than `wierd`. - Should read `response` rather than `repsonse`. - Should read `notification` rather than `notifiation`. - Should read `happened` rather than `happend`. --- paython/gateways/core.py | 2 +- paython/gateways/firstdata.py | 2 +- paython/gateways/firstdata_legacy.py | 2 +- paython/gateways/plugnpay.py | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/paython/gateways/core.py b/paython/gateways/core.py index 4978973..d42658a 100644 --- a/paython/gateways/core.py +++ b/paython/gateways/core.py @@ -102,7 +102,7 @@ def set_shipping_info(self, ship_first_name, ship_last_name, ship_address, ship_ def standardize(self, spec_response, field_mapping, response_time, approved): """ Translates gateway specific response into Paython generic response. - Expects list or dictionary for spec_repsonse & dictionary for field_mapping. + Expects list or dictionary for spec_response & dictionary for field_mapping. """ # manual settings self.RESPONSE_FIELDS['response_time'] = response_time diff --git a/paython/gateways/firstdata.py b/paython/gateways/firstdata.py index b3c887d..6157e7b 100644 --- a/paython/gateways/firstdata.py +++ b/paython/gateways/firstdata.py @@ -235,7 +235,7 @@ def parse(self, response): logger.debug(response) if type(self._retry_on_bmc) is int and 0 < self._retry_on_bmc < 4 and response == "Unauthorized Request. Bad or missing credentials.": """When FDs servers return "Unauthorized Request. Bad or missing credentials." - which happend quite often for ABSOLUTLY no reason. We will try the request again. + which happened quite often for ABSOLUTLY no reason. We will try the request again. 3 attempts will be made if this error occurs. I have contacted their support about this issue...sometime ago. """ diff --git a/paython/gateways/firstdata_legacy.py b/paython/gateways/firstdata_legacy.py index db271ec..2bcaec4 100644 --- a/paython/gateways/firstdata_legacy.py +++ b/paython/gateways/firstdata_legacy.py @@ -221,7 +221,7 @@ def capture(self, amount, credit_card=None, billing_info=None, shipping_info=Non def void(self, trans_id): """ Send a SALE (only works for sales) transaction to be voided (in full) that was initially sent for capture the same day - This is so wierd! + This is so weird! """ #set up transaction self.charge_setup() # considering turning this into a decorator? diff --git a/paython/gateways/plugnpay.py b/paython/gateways/plugnpay.py index f45dfc4..c093166 100644 --- a/paython/gateways/plugnpay.py +++ b/paython/gateways/plugnpay.py @@ -363,7 +363,7 @@ def __init__(self, username='pnpdemo', password='', email='', dontsndmail=True, if password: # optional gateway password super(PlugnPay, self).set('publisher-password', password) - if email: # publisher email to send alerts/notifiation to + if email: # publisher email to send alerts/notification to super(PlugnPay, self).set('publisher-email', email) # don't send transaction confirmation email to customer