-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Shopify integration #173
base: master
Are you sure you want to change the base?
Shopify integration #173
Conversation
…latfort.php Co-authored-by: Alexander Makarov <[email protected]>
…hookProcessingJob, initial Jobs for Shopify webhooks processing
console/jobs/platforms/shopify/RegisterShopifyWebhookListenersJob.php
Outdated
Show resolved
Hide resolved
@samdark Applied all the requests. |
/** | ||
* Class m230221_134343_add_shopify_mock_ecommerce_platfort | ||
*/ | ||
class m230221_134343_add_shopify_mock_ecommerce_platform extends Migration |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
file name should match the class name m230221_134343_add_shopify_mock_ecommerce_platform
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@cgsmith done
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pending tests.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks OK. I'd add explicit interfaces for further integrations but that likely could be done later.
Might have been related because i was requesting from |
@cgsmith For the moment, please try to use my app credentials:
|
Yes, probably this is the reason. Anyway my app state: |
Ok I have that as well. Questions/Changes
Can you explain why we are using a cron for creating the queued items? Is it better just to queue once a webhook is received? It also looks like Shopify has some built in notifications for if webhooks are failing. This is good because not all ecommerce platforms have this. Do you think it is better to just handle webhooks received from Shopify synchronously? If we fail at processing Shopify will provide some insights into failing webhooks. @samdark or @cebe curious on your thoughts on this specifically. Here is an example of the Shopify app dashboard: Testing so far and things that need to be tested/completed before a launch
Feel free to add others! I'll keep this list updated. |
@cgsmith Thanks for your response
Ok, I will change it.
Sorry I didn't understand this request) Did you mean to display the data on the page
I will recheck it.
I added the logic for pulling the first initial orders from a store. Let's say we have connected a store and the store has 10 orders - these 10 orders will be pulled from Shopify in this case. Later, when a webhook is triggered (let's say I can remove this logic and we can use only webhooks without initial orders pulling. Or just remove it from CRON but leave the logic itself for potential use in future. Let me know. BTW, if yes ^, a question: Let's imagine I've removed this initial pulling and there is an order in Shopify store. The webhook (For myself: don't forget to update the docs) A great list. I will go through it and maybe will add something. What shall I do with these webhooks (see the list below)? Change the status or...? If change the status, then what accordance? Or just mark them as success and do nothing?
At the moment I just set them as |
What's the reason for pulling data in advance?
Pulling on demand seems to be enough. |
What's an alterantive? Shopify expects an answer syncronously. If we'll record request and process it later via queue then in Shopify it will be marked as OK regardless of actual result on our side. I'd avoid that unless processing is heavy. |
@samdark In fact, there is no reason. It can be a way to get N last already existing orders on the Shopify side if we don't know anything about them via webhooks. I will remove it from cron. |
Done. But I remove the
Yes, it has BYW, as I was testing the refunds, there can be two situations:
Pay attention. To make the webhook
It's needed to update the webhook listeners list on Shopify side for your shop. |
This branch is extended from #155
I tried to explain everything in the file ->
intro-docs/ecommerce-platfroms.md