shopify

Problem in setting up Shopify RecurringApplicationCharge in Django App

Problem in setting up Shopify RecurringApplicationCharge in Django App Question: I am following app structure with reference to https://github.com/Shopify/shopify_django_app repository. I am trying to set up billing for my app using shopify.RecurringApplicationCharge. @shop_login_required def buy_plan(request, id): plan = PlanTable.objects.get(id=id) context = {‘plans’: plan} charge = shopify.RecurringApplicationCharge() charge.name = plan.name charge.price = plan.price charge.test = True …

Total answers: 1

Error After Uninstall in Shopify App Using Django

Error After Uninstall in Shopify App Using Django Question: I am taking reference from https://github.com/Shopify/shopify_django_app repository to make a shopify app. The problem is that the app installs properly and works fine but the problem is that if we access App URL after it is uninstalled from shopify store, it returns the following error. I …

Total answers: 1

Could not scrap some values from json file in python

Could not scrap some values from json file in python Question: I would like scrap the data from json file, however I could not scrap the availability ("available" in json file) of the json value. The other values are scrapped sucessfully. It shown blank on the column. varavailability= "" if i >= len(variants) else variants[i].get(‘available’, …

Total answers: 1

How to set shopify order to fulfilled?

How to set shopify order to fulfilled? Question: Set-up I have a Shopify store with an unfulfilled order and have access to the store’s REST API. The order has been shipped and I have its tracking_number, tracking_url and the transport_company. I want to use the REST API to set the order to fulfilled and send …

Total answers: 2

Shopify HMAC parameter verification failing in Python

Shopify HMAC parameter verification failing in Python Question: I’m having some trouble verifying the HMAC parameter coming from Shopify. The code I’m using per the Shopify documentation is returning an incorrect result. Here’s my annotated code: import urllib import hmac import hashlib qs = “hmac=96d0a58213b6aa5ca5ef6295023a90694cf21655cf301975978a9aa30e2d3e48&locale=en&protocol=https%3A%2F%2F&shop=myshopname.myshopify.com&timestamp=1520883022” Parse the querystring params = urllib.parse.parse_qs(qs) Extract the hmac value …

Total answers: 2

Shopify doesn't stop sending webhook to Flask app

Shopify doesn't stop sending webhook to Flask app Question: I have a Flask app that listens to incoming Shopify webhooks, does something, and responds with 200. However, Shopify keeps sending the webhook as if my app responded with something other than 200. When I simulate this with curl: curl -H “Content-Type: application/json” -D /tmp/dump.log -X …

Total answers: 2