ob-dj-store 0.0.18__py3-none-any.whl → 0.0.18.1__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- ob_dj_store/apis/stores/rest/serializers/serializers.py +6 -2
- ob_dj_store/core/stores/admin.py +2 -0
- {ob_dj_store-0.0.18.dist-info → ob_dj_store-0.0.18.1.dist-info}/METADATA +1 -1
- {ob_dj_store-0.0.18.dist-info → ob_dj_store-0.0.18.1.dist-info}/RECORD +6 -6
- {ob_dj_store-0.0.18.dist-info → ob_dj_store-0.0.18.1.dist-info}/WHEEL +0 -0
- {ob_dj_store-0.0.18.dist-info → ob_dj_store-0.0.18.1.dist-info}/top_level.txt +0 -0
@@ -480,9 +480,10 @@ class OrderSerializer(serializers.ModelSerializer):
|
|
480
480
|
def perform_payment(self, amount, payment_method, order_store, orders, currency):
|
481
481
|
from ob_dj_store.core.stores.gateway.tap.utils import TapException
|
482
482
|
|
483
|
+
user = self.context["request"].user
|
483
484
|
try:
|
484
485
|
payment = Payment.objects.create(
|
485
|
-
user=
|
486
|
+
user=user,
|
486
487
|
amount=amount,
|
487
488
|
method=payment_method,
|
488
489
|
currency=currency,
|
@@ -493,7 +494,10 @@ class OrderSerializer(serializers.ModelSerializer):
|
|
493
494
|
raise serializers.ValidationError(detail=err.messages)
|
494
495
|
except TapException as err:
|
495
496
|
raise serializers.ValidationError({"tap": _(str(err))})
|
496
|
-
except ObjectDoesNotExist:
|
497
|
+
except ObjectDoesNotExist as err:
|
498
|
+
logger.error(
|
499
|
+
f"Payment Object not created: user:{user}, method:{payment_method}, currency:{currency}, error:{err}"
|
500
|
+
)
|
497
501
|
tap_transaction = None
|
498
502
|
|
499
503
|
return {
|
ob_dj_store/core/stores/admin.py
CHANGED
@@ -3,14 +3,14 @@ ob_dj_store/apis/stores/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG
|
|
3
3
|
ob_dj_store/apis/stores/filters.py,sha256=zKBXPBoqIyFlSeZOECp97RTWvSLqNPnlPhEp7p8W5tE,9702
|
4
4
|
ob_dj_store/apis/stores/urls.py,sha256=7vwogfIGcKS0hHYK3iBXKQwi1kCA_vuHY1eZt8rAspg,2021
|
5
5
|
ob_dj_store/apis/stores/views.py,sha256=aE4LFPHzs_CtzZ8K5-vAbDn_51hyhi0KIsi7cV8dpkA,43372
|
6
|
-
ob_dj_store/apis/stores/rest/serializers/serializers.py,sha256=
|
6
|
+
ob_dj_store/apis/stores/rest/serializers/serializers.py,sha256=kgLC1H2hjfKDRgvdwCp7ok7em73FtaxoiSF8sacXAIY,62012
|
7
7
|
ob_dj_store/apis/tap/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
8
8
|
ob_dj_store/apis/tap/serializers.py,sha256=KPrBK4h2-fWvEVf6vOj2ww5-USV9WqpyYicIqoHIiXI,1065
|
9
9
|
ob_dj_store/apis/tap/urls.py,sha256=bnOTv6an11kxpo_FdqlhsizlGPLVpNxBjCyKcf3_C9M,367
|
10
10
|
ob_dj_store/apis/tap/views.py,sha256=VnVquybTHlJquxsC0RNTy20dtLXalchO0SlGjSDaBng,2666
|
11
11
|
ob_dj_store/core/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
12
12
|
ob_dj_store/core/stores/__init__.py,sha256=-izNGrxNn_nn3IQXd5pkuES9lSF-AHYb14yhNPozYCI,65
|
13
|
-
ob_dj_store/core/stores/admin.py,sha256=
|
13
|
+
ob_dj_store/core/stores/admin.py,sha256=_zg10EVLLOfL8CdSsG7mRpZmxrigBS6tx25XU55caJ8,13453
|
14
14
|
ob_dj_store/core/stores/admin_inlines.py,sha256=2K8iDmP4h0CLIOqy3x-ZXXpgYnT2jqL4cg5YFdiho8s,2976
|
15
15
|
ob_dj_store/core/stores/apps.py,sha256=ZadmEER_dNcQTH617b3fAsYZJSyRw0g46Kjp4eOAsOU,498
|
16
16
|
ob_dj_store/core/stores/managers.py,sha256=lz2CE4PJCI1ViO-CU61LqTr43O41aGRQkbWZUR5Fmfg,9909
|
@@ -153,7 +153,7 @@ ob_dj_store/utils/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU
|
|
153
153
|
ob_dj_store/utils/helpers.py,sha256=o7wgypM7mI2vZqZKkhxnTcnHJC8GMQDOuYMnRwXr6tY,2058
|
154
154
|
ob_dj_store/utils/model.py,sha256=DV7hOhTaZL3gh9sptts2jTUFlTArKG3i7oPioq9HLFE,303
|
155
155
|
ob_dj_store/utils/utils.py,sha256=8UVAFB56qUSjJJ5f9vnermtw638gdFy4CFRCuMbns_M,1342
|
156
|
-
ob_dj_store-0.0.18.dist-info/METADATA,sha256=
|
157
|
-
ob_dj_store-0.0.18.dist-info/WHEEL,sha256=oiQVh_5PnQM0E3gPdiz09WCNmwiHDMaGer_elqB3coM,92
|
158
|
-
ob_dj_store-0.0.18.dist-info/top_level.txt,sha256=CZG3G0ptTkzGnc0dFYN-ZD7YKdJBmm47bsmGwofD_lk,12
|
159
|
-
ob_dj_store-0.0.18.dist-info/RECORD,,
|
156
|
+
ob_dj_store-0.0.18.1.dist-info/METADATA,sha256=vvIqd9hwnFkSm7YxiXHZwFmwVC35vzpXTNJB7PCCFkI,2827
|
157
|
+
ob_dj_store-0.0.18.1.dist-info/WHEEL,sha256=oiQVh_5PnQM0E3gPdiz09WCNmwiHDMaGer_elqB3coM,92
|
158
|
+
ob_dj_store-0.0.18.1.dist-info/top_level.txt,sha256=CZG3G0ptTkzGnc0dFYN-ZD7YKdJBmm47bsmGwofD_lk,12
|
159
|
+
ob_dj_store-0.0.18.1.dist-info/RECORD,,
|
File without changes
|
File without changes
|