Different Different charges on each payment transaction - shopify

I am developing one shopify app and I want to integrate the stripe payment and In future paypal also.
I want to set the different different charges on each payment transaction given example below
Whenever any customer pay for the order then below deduction generate from the total amount:
Shopify Transaction fees(x% amount)
Stripe charges(x% amount)
App Platform charges(x% amount)
Shipping company charges(x% amount)
Any other charges(x% amount)
Remaining amount to store owner account
So is it possible in shopify? Please guide me about this.
Also, is it possible with shopify default payment gateway or custom payment gateway? If yes then please provide the details
In advance thanks to everyone for help in this!

When you use Stripe as your payment gateway, it takes a percentage off every transaction. As of this writing, the integrated price plan takes 3.4% + $0.50 per successful card charge. Refer to https://stripe.com/en-sg/pricing#pricing-details for the latest price plan.
The process you described likely isn't supported on Stripe and Shopify, or at least not to my knowledge. Your best option is to do a payout to your business bank account, then do further deduction based using your internal tools.

Related

Can PayPal REST API payments calculate shipping and taxes?

I have successfully used the PayPal REST API's to create and execute a payment in the sandbox, but even though I have shipping options and tax rates configured, they do not show up for the user. I expected the shipping options and calculated tax to appear before the user "approves" the payment. Is this feature supported via the REST API's, and if so what do I need to pass to make it happen?
The tax and shipping profiles are only for PayPal Standard transactions (the "Buy Now" buttons). API integrations like the Classic API and REST API are for more advanced integrations and are designed where PayPal returns the shipping address selected to you and your system chooses the tax rate and shipping rates before the customer confirms payment.
The PayPal shipping calculator only applies to Website Payments Standard transactions.
Express Checkout transactions will not use the shipping calculator.
https://www.paypal-community.com/t5/Merchant-services-Archive/Using-PayPal-s-shipping-calculator-with-Express-Checkout/td-p/328404
This is related but doesn't answer the question fully I'm afraid.
I've just started looking into applying different state taxes using the PayPal REST API. The override_charge_models option when creating a new BillingAgreement looks hopeful. It allows you to apply a custom tax amount when creating an agreement.

Current PayPal Fees in web API?

Does anyone know if there is a publicly available PayPal resource that would allow me to calculate transaction fees in my Magento code?
For example, if someone buys something for $1.00, I'd like to know if $0.15 of that is a PayPal fee.
If there were a resource, like paypal.com/currentfees.xml or something that I could readout in my PHP code, I could that. Does it exist? I know there are different fees for different payment methods (e.g., AMEX) and fees could change at any time -> So it'd be good to have a dynamic way to calculate how much of Magento's order totals are really PayPal fees.
EDIT: To clarify, I'm not interested in charging customers more, just in knowing how much of my price is going to fees. For bookkeeping.
Thanks!
PayPal fees are not the same across accounts or even by transaction; there are different fees for cross-border transactions, PayPal Here transactions, large-merchant discounts, et cetera.
Have a look at https://www.paypal.com/webapps/mpp/paypal-fees for more detail.
So no, unfortunately you can't pull a resource to find the current fee.
However, PayPal does return the fees paid for each transaction in the API response.
For example, if you're integrated with PayPal Express Checkout, the DoExpressCheckoutPayment API (doc) is used to finalize a transaction. This API call returns a 'PAYMENTINFO_0_FEEAMT' parameter which contains the total fee amount paid for the transaction.
Should you wish to retrieve this information after the transaction has been completed; PayPal also offers the GetTransactionDetails API call (doc). This API call also returns 'FEEAMT' as a parameter.
Simply submit the TRANSACTIONID and read out the FEEAMT.
Note: Fees are only calculated on completed transactions. You won't get a FEEAMT back for any order or authorization-ID's (e.g. those starting with O-xxxxxxxx).

Authorize net ARB increase subscription amount

I am using authorize net ARB subscription api in my application to charge some monthly amount from my users based on the product they select. If a user decides to upgrade his product, the subscription amount will also increase. I want to implement this without having to ask the user for his credit card details again. Can I increase the amount of the ARB subscription? If yes, is there any limit on the increased amount ?(I know that in PayPal, you can increase the subscription amount with an upper limit of 25%)
If you do not have the user's card information you cannot change the amount in ARB. If not asking the user for their card information again is important to you then you should use the CIM API which allows you to store credit card information through Authorize.Net and then make payments using that stored information. The only catch is you would need to build your own recurring billing engine as CIM does not handle that.

Parallel credit card payments (akin to Paypal Adaptive payments)

I'm not sure this is the right place to ask but anyway:
I have an e-commerce platform that I want to monetize based on a percentage of revenue made (eg. a store that uses my platform has an order for $100, so I get 1% or $1, while they get $99).
Currently I offer paypal and credit card payments (via my merchant bank) to all stores on the platform (ie. all payments made, regardless of the store, are through the same paypal and merchant account). I then pay these stores per month which is ok for the moment because there are only a few stores using the platform.
Moving forward I want to automate this process and ideally have it operate in real time.
Paypal have an "Adaptive Payments" API that allows chained or parallel payments on a single transaction processed in real time. This means I can skim my 1% and pass the rest of the money along my customer in real time.
I was wondering if there is a similar real-time service for Credit Card processing*? If not, is there a bank/merchant that allow API payment access so I can automate payments per day or week? OR should I just transfer all money from my bank to paypal and use this to pay my customers?
*I realise you can process credit card payments through Paypal without having to sign up, but this is less than ideal. I want the credit card processing to happen on my page as at the moment I'm seeing about 70% of orders using this over paypal.
I was wondering if there is a similar real-time service for Credit Card processing?
No there isn't. True merchant accounts do not allow for split payments. Only one entity can receive a payment and it must be the business the merchant account has been set up for. Receiving the payment for someone else is called factoring and is against all of the major credit card issuers' rules. If a merchant account is found to be factoring it will be closed and the merchant who owns the account will be blacklist. This will prevent them from ever having a true merchant account again. Additionally, there is no way to send money with a merchant account other then issuing a refund for prior purchases.
If not, is there a bank/merchant that allow API payment access so I can automate payments per day or week? OR should I just transfer all money from my bank to paypal and use this to pay my customers?
Other then using adaptive payments, this is definitely the easiest and most straight forward way to accomplish this.

Workflow for taking a percentage of a payment (PayPal)

I'm implementing a business model where the service takes 10% of a fee. For example, the user lists a product for $100. The buyer purchases it. $90 goes to the seller, $10 is collected by the site.
Does anyone know offhand if this is feasible with Paypal. In theory all the money could go into our PayPal account and then a $90 payment could be made behind the scenes to the seller's account. Is it possible to programatically schedule a depsoit?
We also have the option of using a merchant gateway like Authorize.
Ideas appreciated. Thanks
look into paypal adoptive payments (beta) www.x.com , they allow you to distribute payments into multiple receiver.
if you want to schedule payments i think you can use the mass pay API to programmatically send payments from the PP account. But using the beta adoptive payments is much much easier.
Yes you can programmatically do a deposit to the seller's account. Paypal calls it Mass Pay.
You pay 2% for the deposit, with a cap. So it might make sense to pool the funds before you deposit them.