Automatic transaction fee charge based on sales amount from app referral - javascript

I'm building a react native app that allows companies (clean beauty brands) to showcase their products within the app (a beauty community). App users can visit the brands' website in a nested browser in our app and buy products from the brands website. I'm looking for a way to automatically get a transaction fee from the brands for sales initiated from our app (so transactions on the brand’s site where our app acts as the referrer, so our app is affiliate marketer). The majority of the brands we work with are small companies with websites on Shopify and SquareSpace, a lot of them use Stripe. Any advice appreciated!

You would need to use Stripe Connect. The idea is that you will act as a platform and each brand will have their own Stripe account that they connect to your platform. Then in your application, you will be able to offer their products on their behalf. When a customer wants to order some products, you can charge their card, have the funds go to the Stripe account for the brand and take your own fee out of the transaction (which is called an Application Fee).
I'd recommend looking at Stripe's detailed documentation for this:
https://stripe.com/docs/connect
https://stripe.com/docs/connect/enable-payment-acceptance-guide

Related

How to auto sync Amazon seller orders with SP-API?

Developing an app that should allow customers to connect their Amazon seller account, which would export all of their unshipped orders. Once tracking numbers are provided for their unshipped orders on my dashboard, it would send the tracking numbers back to their Amazon seller account and mark that specific order(s) as shipped.
I have been stuck on the concept of doing this. I have it setup to where the customer has to manually enter keys, but that would be too difficult for customers. I want a simpler setup that will request the user to signin to their Amazon account like the below example:
I've been through the docs but I am not quite seeing how other businesses are achieving this. Could someone please outline the flow to have a similar setup?

Is there any website that shows steps for different stacks to make a certain app (eCommerce)

Is there any website that shows steps for different stacks to make a certain app (eCommerce)?
For example for making an eCommerce in MERN Stack we have to follow these steps:
A. Front End:
Design components
Validate user input before sending it to the backend
B. Backend:
Handle the routing
Creating MongoDB Models
validate user data that send to backend
x. ...
For example for making an eCommerce in MERN Stack we have to follow these steps:
Get design files in Figma/Sketch/PSD slice them into HTML
You will need at least those pages designed
Main Page
Product Collection page/Category page (grid of products with filters)
Product Details page
Blogpost page
Landing page (you going to promote the store so if not linking to a blogpost then you will need a landing page)
Choose a headless eCommerce platform that will handle checkout and order processing as well as deliver customer dashboard and all other necessary features, it can be self-hosted or SaaS
Self-hosted
Magento
WooCommerce
Sylius
Saleor
SaaS
Shopify
BigCommerce
Swell
Choose engine that you will power your build through, it will be responsible for hosting and compilation of Storefront
Gatsby Cloud
Netlify
Vercel
Choose framework to implement the Storefront, React is popular because it's used by major players and ecommerce platforms like Shopify or BigCommerce but Next.js is also good choice.
GatsbyJS/React
NextJS
Explore boilerplates, there are Gatsby connectors to popular platforms like Shopify or WooCommerce, there are middleware like B2storefront that offers cross-platform eCommerce boilerplate.
Put HTML markup into the boilerplate and setup build pipeline
Connect webhooks
Launch
Full disclosure I'm a founder of B2storefront

How do I get my flutter firebase user to also create their stripe account

I am creating a mobile marketplace however, I don't know how to allow my user who has created an account with firebase also create a stripe account and having that connect to my app so that when they create a listing for a product, they can receive money in their stripe accounts after someone buys their specific product.
My question is, does anyone know how I can do that? I tried following the stripe instructions but realized that they are only making an account and after they sell an item, they arn't getting payed. How would I program that? How would they get payed? For firebase functions, I am using Js. My mobile app is made using flutter and my backend is firebase.
You can make a payout system "add to each user a field which holds the total gained money and when this user collect a specific amount you can send money from stripe to his bank account" because it's not right to connect each user with Stripe as it or any other payment gateways allow to connect the app with one account and it requires some information to be able to receive money .. etc , you see that you put private key and other key to connect with stripe and those keys and you should hide'em with env properties so no one can see'em
I hope you got what i want to say
Stripe Connect has a 3 different charge types to select from : https://stripe.com/docs/connect/charges
In general, you would either create the charge on your platform then transfer the funds to the connected account, or create a charge on the connected account. You would want to follow one of the two guides below depending on which charge type [0] you choose :
https://stripe.com/docs/connect/collect-then-transfer-guide
https://stripe.com/docs/connect/enable-payment-acceptance-guide
Following the flows mentioned above, funds will accumulate in the connected account's balance and will be available to be paid out. You can read about connected account payouts in more detail here : https://stripe.com/docs/connect/bank-debit-card-payouts
You would probably want to write in to Stripe support if you need further guidance on how Stripe Connect works as a product.
This documentation provides detailed steps on how you can
process payments with Firebase using a stripe account.
It walks you through customizing and deploying your own version of
the open-source cloud-functions-stripe-sample.web.app example
app using stripe payments whose source code is available at this
GitHub link.
Also have a look at this stackoverflow thread where a
stackoverflow user has shown how he has integrated Firebase with his
stripe account using Firebase functions.
For a detailed description on how you can create a stripe account for
Firebase Flutter, go through this article.

React Native: How do payments among users in mobile marketplace app work?

I would like to have users within a React Native mobile app where users can post up items and other users can purchase them.
My question is, what would be the best approach to this? More specifically, how can I get a user to send a payment directly to another user? Or does the platform become the middle-man, where it receives the payment from the buyer and the platform sends the payment to the seller?
I have looked into Stripe but I am only seeing how to charge a user directly and the user would make the payment out to me (the platform), but I would like where the user would make a payment directly to another user, preferably through Stripe or any other better methods out there.
Thank you in advance. I will accept and upvote the answer.
Stripe recently launched Stripe Connect to facilitate marketplace payment: https://stripe.com/connect

Options for In-Game Lodgement & Withdrawal Services from Payments Processors?

I've seen a few questions on here about choosing between payment processors like PayPal and Stripe so I hope it's okay to post a non-code related question.
I'm developing an app and I'm wondering if there exists a payments processor that allows players to lodge/transfer money into their game account (so that they'll have a real-money in-game balance), and allows them to withdraw/cash-out/transfer money out from their balance back to their bank or PayPal account instantly at any time.
I've seen such a thing happen on gambling/betting websites, but I haven't been able to find any clear information on this in PayPal and Stripe's product documents.
I'm wondering if there's a standard lodgement/withdrawal service, or would I need to approach each transaction as purchase transfer (player "purchases" in game curency from me when they lodge money, and I "purchase" their in game currency back from them when they choose to withdraw their money).
I've searched through PayPal and Stripe's documents but I can't seem to find an answer to my question. I'm planning to use Javascript and PHP to integrate the payments processor. Any advice on this would be really appreciated.
Thanks in advance!
Given various gambling and money transmission laws this is an area you'll want to be pretty careful in.
It would be against the terms of service for Stripe: "Virtual currency that can be monetized, resold, or converted to physical or digital products and services or otherwise exit the virtual world."
With Paypal it would depend a bit on what your game is, from their acceptable use policy: "Activities involving gambling, gaming and/or any other activity with an entry fee and a prize, including, but not limited to casino games, sports betting, horse or greyhound racing, fantasy sports, lottery tickets, other ventures that facilitate gambling, games of skill (whether or not legally defined as gambling) and sweepstakes, if the operator and customers are located exclusively in jurisdictions where such activities are permitted by law."

Categories