How do I create a user wallet in Stripe? - laravel

I’m trying to create a wallet for a user in Stripe. Other uses can donate into another user’s wallet and that user can withdraw the funds into their account. This account should remain untouched by the account owner and controlled by the software.
This will need to be seperate from the primary account which holds funds for subscriptions from users which the Stripe account owner can withdraw (income).
Is this possible with Stripe/Stripe Connect and can anyone point me in the right direction?

You'd indeed need to use Stripe Connect for this.
This isn't really a programming question so you likely won't find much help here. You should reach out Stripe's support directly at https://support.stripe.com/email and explain your business model with as much details as you can (who you are, who your users will be, where are you and they located, what would a sample transaction look like, etc.). They will be able to guide you and help you design your payment flow using Stripe's API.

You can create a wallet by using charge feature of stripe i.e. for nodeJs it is stripe.charges.create({}) function.
It may vary depending upon your language of choice. You can prompt the user to recharge his wallet and create a charge through which you can transfer the amount to the admin account use a parameter in your db to store the user's current wallet balance for each payment deduct the required amount from the said user's account and add it to the other user's account.
Click here for more details !
Cheers!

Related

Laravel - Paypal user to user money transfer

i have a donation website where users post their cases and any other user can donate to them, i want to implement paypal integration but my question is what do i write in the paypal clientid and secret key if the receipient is different for each case? every tutorial i see, it has a fixed receipient so they just write the clientid of their merchant account, but in my website there is no fixed receipient as each user that posts a case can receive donations.
sorry if my question is too basic but this is my first time working with paypal. any help is really appreciated!
For payments directly to another account, there are two different integration options:
Checkout flow :: specify the payee.email_address of the recipient's PayPal account when creating the order. See the documentation.
Donation flow :: specify the recipient account as the business parameter. See the documentation. Do not specify a hosted_button_id. Specifying a fixed amt is optional.

Referral program in Metaplex storefront

What is the best way to create "Referral program" in Metaplex storefront?
A referral program works by inviting customers to become brand ambassadors. They join the referral marketing program and get a unique code or link to share with their network. so the referral program tracks the activity of a customers’ code or link. If someone purchases using it, the referrer will earn a reward.
Most likely you'll have to implement this yourself in a traditional web2 way with a database and backend with a login system.
When a user makes a purchase via web3 you could modify the purchase function to then also store a referer in your database upon purchase confirmation.
Then when a user logs in you could then refer to the database to see how many referals the user has generated for you and show them on a form of dashboard for them to see.
Unfortuantely do the to broad question in general I can't really give you much more of an elaborate answer than that currently.

How to use a single Play Store account to purchase same subscription in different in-app accounts?

I have implemented a login feature in my app where a user can pay for subscription and have that subscription tied to their in-app login account by using the setObfuscatedAccoundId() method. However, in a scenario where the current user(user_A) makes a purchase, logs out of the app and a different user_B logs in, user_B is unable to purchase the same subscription as it has already been bought by user_A (as they share the same underlying Google Play account) even though I DON'T want these in-app accounts to be related at all. Currently, what happens is user_B gets a responses that states "You already own this item". So that makes me wonder:
Can we actually possibly use a single/the same underlying Play Store account to purchase the same subscription while logging in to an app with different user accounts?
Also, what would be an ideal design approach for a problem like this considering the limitation?
I am still a beginner at this and would really appreciate your inputs!
I'm beginner at this like you and may I was wrong but I think you can not do that because the subscriptions are saved in your google account and you can not buy same subscription you owned already.

Does Plaid transactions call bring back transactions for all connected accounts? or just 1 account?

Im setting up a Finance app and need to know if the plaid API brings back all transactions for all connected accounts or just the one I am looking at with the access token?
I have tried to loop through to connect the accounts but all of them return the same data
Plaid access tokens work institution wise, unless you enabled the option of account selection in linking process. If you had done so, for example, if the user selected Bank A , and then selected saving account while also having a checking account, you will get only saving account information. Otherwise, you should be able to load all accounts information from the same bank. Some limitations apply as for example credit accounts from a specific bank may not be available to Plaid , then you will have no access to such accounts in both cases.

How to add user funds using Stripe?

It's my first time using Stripe, and I read this documentation about it.
I was able to find information about subscriptions and plans, but I need something else, something like "user credits". Each user will be able to "add funds" to their account, and buy products on my website using this money.
In addition, I need to be able to automatically add funds for the user once it gets empty ( with their permissions, of course ).
Can it be done using Stripe? Does the API support such thing?

Resources