From 110d834b92a088afef89eb42a22156de2ce491df Mon Sep 17 00:00:00 2001 From: jawad khan Date: Wed, 14 Jun 2023 13:50:32 +0500 Subject: [PATCH] feat: Added ios refund callback (#3967) --- .../extensions/iap/api/v1/AppleRootCA-G3.cer | Bin 0 -> 583 bytes ecommerce/extensions/iap/api/v1/constants.py | 3 + .../extensions/iap/api/v1/tests/test_views.py | 163 +++++++++++++++--- ecommerce/extensions/iap/api/v1/urls.py | 6 +- ecommerce/extensions/iap/api/v1/views.py | 50 +++++- requirements/base.in | 1 + requirements/base.txt | 7 + requirements/dev.txt | 7 + requirements/production.txt | 7 + requirements/test.txt | 7 + 10 files changed, 214 insertions(+), 37 deletions(-) create mode 100644 ecommerce/extensions/iap/api/v1/AppleRootCA-G3.cer diff --git a/ecommerce/extensions/iap/api/v1/AppleRootCA-G3.cer b/ecommerce/extensions/iap/api/v1/AppleRootCA-G3.cer new file mode 100644 index 0000000000000000000000000000000000000000..228bfa39cbd5acfe53fb9d196e3c1bbbd28649f8 GIT binary patch literal 583 zcmXqLVsbWUVm!HknTe5!i9`43pN>mMy{8&*v2kd%d7QIlVP-Z+HbQ8gAnH8xlJyL^4LCu9Y{E>T!3J{TyoM$QCdLMa7KWAvW>Mn2#+FE2`Z=V` zK!A-M?0+UkHdgIM76v8eBnFllFZFF5ik7^ctW?w}EOS?2>c^vt{R;1hh~4CSx{Ot; zJf%9`&*JiK8JDf~U*)$MCB>e6*%Iw<;4c`(@HZlYXX#gd9ba~L;nG{vr%%r}jCrd) zw_3sa#?FwNaWj`#1#%fKb~11^i`@ju(^Y`3K= md8u*U=1.17.80 coreapi diff --git a/requirements/base.txt b/requirements/base.txt index a8fce3e4441..0e8e7960499 100644 --- a/requirements/base.txt +++ b/requirements/base.txt @@ -12,6 +12,8 @@ amqp==2.6.1 # via kombu analytics-python==1.4.post1 # via -r requirements/base.in +app-store-notifications-v2-validator==0.0.7 + # via -r requirements/base.in asgiref==3.6.0 # via django asn1crypto==1.5.1 @@ -55,6 +57,7 @@ certifi==2023.5.7 # requests cffi==1.15.1 # via + # app-store-notifications-v2-validator # cryptography # cybersource-rest-client-python # pynacl @@ -84,6 +87,7 @@ crypto==1.4.1 # via cybersource-rest-client-python cryptography==40.0.2 # via + # app-store-notifications-v2-validator # cybersource-rest-client-python # paramiko # pyjwt @@ -412,6 +416,7 @@ pycountry==17.1.8 # via -r requirements/base.in pycparser==2.21 # via + # app-store-notifications-v2-validator # cffi # cybersource-rest-client-python pycryptodome==3.17 @@ -426,6 +431,7 @@ pyjwkest==1.4.2 # via edx-drf-extensions pyjwt[crypto]==2.7.0 # via + # app-store-notifications-v2-validator # cybersource-rest-client-python # drf-jwt # edx-auth-backends @@ -441,6 +447,7 @@ pynacl==1.5.0 # paramiko pyopenssl==23.1.1 # via + # app-store-notifications-v2-validator # cybersource-rest-client-python # ndg-httpsclient # paypalrestsdk diff --git a/requirements/dev.txt b/requirements/dev.txt index 763bf67ff7e..f8c3711ba2e 100644 --- a/requirements/dev.txt +++ b/requirements/dev.txt @@ -26,6 +26,8 @@ amqp==2.6.1 # kombu analytics-python==1.4.post1 # via -r requirements/test.txt +app-store-notifications-v2-validator==0.0.7 + # via -r requirements/test.txt asgiref==3.6.0 # via # -r requirements/test.txt @@ -104,6 +106,7 @@ certifi==2023.5.7 cffi==1.15.1 # via # -r requirements/test.txt + # app-store-notifications-v2-validator # cryptography # cybersource-rest-client-python # pynacl @@ -149,6 +152,7 @@ crypto==1.4.1 cryptography==40.0.2 # via # -r requirements/test.txt + # app-store-notifications-v2-validator # cybersource-rest-client-python # paramiko # pyjwt @@ -665,6 +669,7 @@ pycountry==17.1.8 pycparser==2.21 # via # -r requirements/test.txt + # app-store-notifications-v2-validator # cffi # cybersource-rest-client-python pycryptodome==3.17 @@ -695,6 +700,7 @@ pyjwkest==1.4.2 pyjwt[crypto]==2.7.0 # via # -r requirements/test.txt + # app-store-notifications-v2-validator # cybersource-rest-client-python # drf-jwt # edx-auth-backends @@ -716,6 +722,7 @@ pynacl==1.5.0 pyopenssl==23.1.1 # via # -r requirements/test.txt + # app-store-notifications-v2-validator # cybersource-rest-client-python # ndg-httpsclient # paypalrestsdk diff --git a/requirements/production.txt b/requirements/production.txt index d9937040aa5..39a23ca666a 100644 --- a/requirements/production.txt +++ b/requirements/production.txt @@ -12,6 +12,8 @@ amqp==2.6.1 # via kombu analytics-python==1.4.post1 # via -r requirements/base.in +app-store-notifications-v2-validator==0.0.7 + # via -r requirements/base.in asgiref==3.6.0 # via django asn1crypto==1.5.1 @@ -57,6 +59,7 @@ certifi==2023.5.7 # requests cffi==1.15.1 # via + # app-store-notifications-v2-validator # cryptography # cybersource-rest-client-python # pynacl @@ -86,6 +89,7 @@ crypto==1.4.1 # via cybersource-rest-client-python cryptography==40.0.2 # via + # app-store-notifications-v2-validator # cybersource-rest-client-python # paramiko # pyjwt @@ -422,6 +426,7 @@ pycountry==17.1.8 # via -r requirements/base.in pycparser==2.21 # via + # app-store-notifications-v2-validator # cffi # cybersource-rest-client-python pycryptodome==3.17 @@ -436,6 +441,7 @@ pyjwkest==1.4.2 # via edx-drf-extensions pyjwt[crypto]==2.7.0 # via + # app-store-notifications-v2-validator # cybersource-rest-client-python # drf-jwt # edx-auth-backends @@ -451,6 +457,7 @@ pynacl==1.5.0 # paramiko pyopenssl==23.1.1 # via + # app-store-notifications-v2-validator # cybersource-rest-client-python # ndg-httpsclient # paypalrestsdk diff --git a/requirements/test.txt b/requirements/test.txt index 35d4b4ec282..b79664a82f5 100644 --- a/requirements/test.txt +++ b/requirements/test.txt @@ -18,6 +18,8 @@ amqp==2.6.1 # kombu analytics-python==1.4.post1 # via -r requirements/base.txt +app-store-notifications-v2-validator==0.0.7 + # via -r requirements/base.txt asgiref==3.6.0 # via # -r requirements/base.txt @@ -91,6 +93,7 @@ cffi==1.15.1 # via # -r requirements/base.txt # -r requirements/e2e.txt + # app-store-notifications-v2-validator # cryptography # cybersource-rest-client-python # pynacl @@ -139,6 +142,7 @@ cryptography==40.0.2 # via # -r requirements/base.txt # -r requirements/e2e.txt + # app-store-notifications-v2-validator # cybersource-rest-client-python # paramiko # pyjwt @@ -644,6 +648,7 @@ pycparser==2.21 # via # -r requirements/base.txt # -r requirements/e2e.txt + # app-store-notifications-v2-validator # cffi # cybersource-rest-client-python pycryptodome==3.17 @@ -667,6 +672,7 @@ pyjwt[crypto]==2.7.0 # via # -r requirements/base.txt # -r requirements/e2e.txt + # app-store-notifications-v2-validator # cybersource-rest-client-python # drf-jwt # edx-auth-backends @@ -691,6 +697,7 @@ pynacl==1.5.0 pyopenssl==23.1.1 # via # -r requirements/base.txt + # app-store-notifications-v2-validator # cybersource-rest-client-python # ndg-httpsclient # paypalrestsdk