Skip to content
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

Implement Printify and Xero #61

Open
munozr1 opened this issue Feb 1, 2024 · 0 comments
Open

Implement Printify and Xero #61

munozr1 opened this issue Feb 1, 2024 · 0 comments

Comments

@munozr1
Copy link
Contributor

munozr1 commented Feb 1, 2024

Allow members to purchase T-Shirts through Mobi website.

This is dual purpose:

  1. Allows us to hold less T-Shirt Inventory
  2. Keeps track of inventory we do have and in what sizes (having inventory is always a good idea for those who want to purchase now
  3. Tax purposes, automated tracking of each sale through Xero api

Caveat : we are not yet a 501c so we can't launch this officially until probably next semster. This is not that bad though since I would like to give this project to junior developers and it will most likely take a semester to complete given they have to study and do homework.

I can take lead on this since I have experiance building ERP's from scratch.
2 people working on Printify (May go with a custom solution if Diego can get the Shirts cheaper ordering in bulk)
If we go the custome solution route this changes to implementing Stripe instead
2 people working on Xero
2 people working to revamp the design of the mobi website
2 people working on an admin dashboard (optional)

Printify API

  • Sign Up and Obtain API Key:

    • Create Printify account.
    • Generate API key in the Printify Developer Dashboard.
  • Include Printify API Script:

    • Add <script> tag for Printify API in HTML.
  • Initialize Printify API:

    • Create Printify instance with your API key.
  • Fetch Product Catalog:

    • Use API to get the product catalog.
    • Handle catalog data and errors.
  • Display Products on Your Website:

    • Render product catalog on website.
  • Handle Product Selection:

    • Enable user selection and customization.
  • Fetch Product Prices:

    • Use API to get prices for selected product/options.
    • Handle prices and errors.
  • Add to Cart:

    • Implement functionality to add selected product to cart.
    • Handle success and errors.
  • Handle Checkout:

    • Allow users to proceed to checkout.
  • Handle Order Placement:

    • Implement order placement functionality.
    • Handle successful placement and errors.
  • Handle Webhooks (Optional):

    • Set up and manage Printify webhooks for event updates.
  • Testing:

    • Thoroughly test the entire workflow. ESPECIALLY AUTHENTICATION

Xero API

  • Initialize Xero API:

    • Initialize the Xero API using your credentials.
  • Authentication:

    • Implement the authentication flow to obtain an access token.
  • Handle Authentication Callback:

    • Handle the callback after user grants consent and obtain the access token.
  • Transform Data:

    • Transform Printify sales data into a format suitable for Xero.
  • Push Sales Data to Xero:

    • Use Xero API to create invoices or sales records.
  • Handle Errors:

    • Implement error handling for API calls and data transformation.
  • Automate Sync (Optional):

    • Consider setting up a periodic job to automate the sync between Printify and Xero.
  • Testing:

    • Thoroughly test the integration to ensure accurate data transfer.
  • Documentation Review:

    • Refer to Xero API documentation for any additional features or options.
@mambov mambov changed the title Revamp Mobi Website Implement Printify and Xero Mar 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant