How to integrate Stripe Connect with Drupal 8? - drupal

I need help to create a module that uses Stripe Connect with Drupal 8.7, Drupal Commerce 2.14 and Commerce Stripe RC3 :
https://www.drupal.org/project/commerce
https://www.drupal.org/project/commerce_stripe
Currently there is no module with Drupal 8 to use Stripe Connect, it's a shame because Drupal Commerce makes it easy to set up a marketplace (a site with several merchants).
I set up my Stripe account to use Stripe Connect on the page :
https://dashboard.stripe.com/account/applications/settings
I want to use Standard Stripe accounts and charge a 10% commission on each transaction :
https://stripe.com/docs/connect/standard-accounts
https://stripe.com/docs/connect/direct-charges
Here is a diagram of what I want to do :
https://stripe.com/img/docs/connect/direct_charges.png
I found some documentation to integrate Stripe Connect :
https://stripe.com/docs/building-extensions
There is a patch for Commerce Stripe but it does not work :
https://www.drupal.org/project/commerce_stripe/issues/3032908
How can I charge 10% commission on each sale ?
I created a role in Drupal "premium merchant" :
When a merchant connects his Stripe account, the "premium merchant" role must be added.
When a merchant disconnects his Stripe account, the "premium merchant" role must be removed.

Related

selling a whole website with its subscribers who pay through stripe

I use “WooCommerce Stripe Payment Gateway” plugin. Now I decided to sell the website.
How can I connect the new owner’s Stripe account (instead of mine)?
The new owner must have the data of subscribers.
Thanks in advance.
I've seen Stripe doc but I'm not sure about the solution.
I found this solution on WooCommerce Subscriptions FAQ
Can I change the account used for a payment gateway?
Yes, if you want to keep the same payment gateway but you have changed
account, for example, due to a change of ownership, then it is
possible to still use the same payment gateway on your site but please
contact the gateway themselves and ask about transferring/migrating
the customer information to your new account, then update any API keys
or credentials in your WooCommerce payment gateway settings.

How to build a payment system as Airbnb with Stripe and Woocommerce

I need your help. I'm building a website similar to Airbnb containing the following tool:
Hivepress template
Woocommerce
Stripe plugin for payments called "Payment Plugins for Stripe
WooCommerce" (Payments works with Stripe Connect express) Hotel has
to register on "connect" before creating a listing.
Stripe plugin customization to collect FEES
I'm using Stripe Connect express but I think I missed something due I paid the final user (hotel) straight away.
I want to achieve that result:
The user book a hotel (paying total + commission 15%)
My site receives the booking confirmation
24h after the booking I pay the hotel (money has to get directly from
the user who pays and not from my balance)
Thanks!
When creating separate charges and transfers, you need to specify the source_transaction parameter to tie a transfer to an existing charge. You can read more about this here.

How to add 'Pay with stripe ' payment method on website

I have multi vendor websites and my vendors get there sale amount into their stripe account. Now i want to take fees from them for website wallet. They can recharge wallet with cc and charge them . but I NEED TO OPTION to use their stripe balance to pay. LIKE we use paytm,paypal instead CC each time. How we can provide pay with stripe option to vendors so they can pay from their stripe account balance instead CC.
We are using the word-press Doken for the multivendor website and all other functionalities are working fine. Vendor have been provided a Website wallet which they can recharge with the credit card . but we need to option to pay with stripe option. So amount will come from there stripe account to admins stripe account.
I have tried to connect with support and forums but could not find any API for this to charge their stripe account .
You are in the right the direction to try to use connect.
Basically yourself created a Platform Account, and connect all your vendors account as connected accounts [0]
Depends on your locations of your business and vendors, Stripe provide a way for you (the platform account) to debit from the connected account [1]
Another way is instead of let your vendor to charge the customer directly, you charge the customer and pass down the balance down to your vendor and collect your fees using Direct Charges [2]
Hope the above helps and point you to the right direction
[0] https://stripe.com/docs/connect/accounts
[1] https://stripe.com/docs/connect/account-debits
[2] https://stripe.com/docs/connect/direct-charges

Authorize.Net woocommerce plugin payment issues for sandbox

I am using Authorize.net payment gateway in my wordpress woocommerce site.
I want to have feature like ARB , CIM and subscription, so i got a plugin named Authorize Net CIM i have installed it.
I have used sample credit card number but still it giving error Payment declined . I have already enabled TEST mode.
So i have 2 question:-
Is Authorize Net plugin for subscription is not free ? coz internet has so many plugins free, not able to take out which one to use for ARB,CIM amnd subscriptions.
Why i am getting the payment declied issue.

Guest Checkout for Paypal Subscriptions

We are using Simple Membership Plugin on WP to have subscription levels for our users. When people go to checkout on Paypal if they don't have a PayPal account it makes it so they need to set up a Paypal account to continue.
Our Business account has PayPal Account Optional turned on and we are wondering if there is a way to have guest checkout for subscription buttons for Paypal?
With subscriptions guest checkout is not available. The user would have to create a PayPal account.
If you don't want this you'll need to upgrade to Payments Pro w/ Recurring Billing.
Guest checkout now appears to be available for PayPal subscriptions in the US and Canada.
https://developer.paypal.com/docs/subscriptions/#guest-user-flow-using-a-debit-or-credit-card

Resources