ob-dj-store 0.0.21.6__py3-none-any.whl → 0.0.21.7__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/core/stores/managers.py +6 -0
- {ob_dj_store-0.0.21.6.dist-info → ob_dj_store-0.0.21.7.dist-info}/METADATA +1 -1
- {ob_dj_store-0.0.21.6.dist-info → ob_dj_store-0.0.21.7.dist-info}/RECORD +5 -5
- {ob_dj_store-0.0.21.6.dist-info → ob_dj_store-0.0.21.7.dist-info}/WHEEL +0 -0
- {ob_dj_store-0.0.21.6.dist-info → ob_dj_store-0.0.21.7.dist-info}/top_level.txt +0 -0
@@ -55,6 +55,7 @@ class PaymentMethodManager(ActiveMixin, models.Manager):
|
|
55
55
|
|
56
56
|
class PaymentManager(models.Manager):
|
57
57
|
def create(self, currency: str, *args: typing.Any, **kwargs: typing.Any):
|
58
|
+
from ob_dj_store.core.stores.gateway.stripe.models import StripePayment
|
58
59
|
from ob_dj_store.core.stores.gateway.tap.models import TapPayment
|
59
60
|
from ob_dj_store.core.stores.models import Tax, WalletTransaction
|
60
61
|
|
@@ -90,6 +91,11 @@ class PaymentManager(models.Manager):
|
|
90
91
|
source=source, payment=instance, user=kwargs.get("user"),
|
91
92
|
)
|
92
93
|
return instance
|
94
|
+
elif gateway == settings.STRIPE:
|
95
|
+
StripePayment.objects.create(
|
96
|
+
payment=instance, user=kwargs.get("user"),
|
97
|
+
)
|
98
|
+
return instance
|
93
99
|
elif gateway == settings.WALLET:
|
94
100
|
try:
|
95
101
|
wallet = kwargs["user"].wallets.get(currency=currency)
|
@@ -17,7 +17,7 @@ ob_dj_store/core/stores/__init__.py,sha256=-izNGrxNn_nn3IQXd5pkuES9lSF-AHYb14yhN
|
|
17
17
|
ob_dj_store/core/stores/admin.py,sha256=aI1t3nIeOw_Vcy2E2LNaAxMRX2GjvVrVeBaH-n4IHco,14362
|
18
18
|
ob_dj_store/core/stores/admin_inlines.py,sha256=9_35VwwRh5w8YU2CRTJ7sENUjF-D-J-o9jXhLEPpS3w,2900
|
19
19
|
ob_dj_store/core/stores/apps.py,sha256=ZadmEER_dNcQTH617b3fAsYZJSyRw0g46Kjp4eOAsOU,498
|
20
|
-
ob_dj_store/core/stores/managers.py,sha256=
|
20
|
+
ob_dj_store/core/stores/managers.py,sha256=Q0PUB_LSz0bufJ0OfgHuvSC-5uAGSsDDlhitisFJqw4,10141
|
21
21
|
ob_dj_store/core/stores/receivers.py,sha256=vduxOB9M6IgQ8E7dYrbC4T0PjOqLCgAVi2PwElTzNhM,3676
|
22
22
|
ob_dj_store/core/stores/settings_validation.py,sha256=eTkRaI6CG5OEJQyI5CF-cNAcvjzXf3GwX5sR97O3v98,3977
|
23
23
|
ob_dj_store/core/stores/utils.py,sha256=r6YdjQu5gsrZmO_qgXb21xcB50tbAI9vffN4Yp6n6iA,3427
|
@@ -172,7 +172,7 @@ ob_dj_store/utils/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU
|
|
172
172
|
ob_dj_store/utils/helpers.py,sha256=o7wgypM7mI2vZqZKkhxnTcnHJC8GMQDOuYMnRwXr6tY,2058
|
173
173
|
ob_dj_store/utils/model.py,sha256=DV7hOhTaZL3gh9sptts2jTUFlTArKG3i7oPioq9HLFE,303
|
174
174
|
ob_dj_store/utils/utils.py,sha256=8UVAFB56qUSjJJ5f9vnermtw638gdFy4CFRCuMbns_M,1342
|
175
|
-
ob_dj_store-0.0.21.
|
176
|
-
ob_dj_store-0.0.21.
|
177
|
-
ob_dj_store-0.0.21.
|
178
|
-
ob_dj_store-0.0.21.
|
175
|
+
ob_dj_store-0.0.21.7.dist-info/METADATA,sha256=QMfg1fsG96GHUqU8Iq5USZ7hxoX6G75tb1NKmUvmcjw,2850
|
176
|
+
ob_dj_store-0.0.21.7.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
177
|
+
ob_dj_store-0.0.21.7.dist-info/top_level.txt,sha256=CZG3G0ptTkzGnc0dFYN-ZD7YKdJBmm47bsmGwofD_lk,12
|
178
|
+
ob_dj_store-0.0.21.7.dist-info/RECORD,,
|
File without changes
|
File without changes
|