- Subscribe to RSS Feed
- Mark Thread as New
- Mark Thread as Read
- Float this Thread for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
Multiple sellers on one marketplace application
I'm looking at creating an online marketplace app that would allow sellers to connect their square accounts so that when users make a purchase on the app the transaction would go through the Square API and to the seller's account. Is there a better way to direct payments to the seller's account so that each seller doesn't need to generate an "Application ID" and "Access token" to use the API?
- Labels:
-
E-Commerce
-
E-Commerce API
-
Online Store
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report
- Subscribe to RSS Feed
- Mark Thread as New
- Mark Thread as Read
- Float this Thread for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
You wouldn't need to generate an application for each Seller, but you do need to generate and Oauth access token:
https://developer.squareup.com/docs/oauth-api/what-it-does
If you have specific additional questions - Please let us know!
Technical Program Manager: AI
Square Inc
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report
- Subscribe to RSS Feed
- Mark Thread as New
- Mark Thread as Read
- Float this Thread for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
Thanks @kellyj .
I saw that Oauth is the way to go. Once you get the access token I assume most applications store it on the server/DB to access it anytime there is a purchase?
Also is there a common implementation applications use to refresh the token before the 30-day expiration? Maybe a cron job or something simple?
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report
- Subscribe to RSS Feed
- Mark Thread as New
- Mark Thread as Read
- Float this Thread for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
We typically don't document a best practice for storing access tokens, but yes storing tokens securely in a database on a server sounds like it should work fine.
I would advise you to set up a cron job to happen every so often (before 30 days). That's ideal.
Technical Program Manager: AI
Square Inc
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report