How to transfer commission to specific customer from our account on shopify store. Need details - e-commerce

I would like to transfer a commission to a specific customer from our account on shopify store, but I'm not sure how?
What code should I embed? Where and how?
My question is: How to send 30% of subtotal of order to a specific customer, with the tag "agent" after checkout. This means 30% of the subtotal amount will be automatically transfered from my N26 account to the user's paypal or bank account.

I made an App for this about 8 years ago. Called Transparent Kitty. You can assign whatever % you want to the vendor (A user with an email is then assigned this vendor)...
So whenever you sell anything, you can keep track of what % of the sale they get.

Related

React Native transfer money from one user bank account to another with Apple Pay

This is the use case below:
There are multiple users in a group -> Each user will need to transfer the money to the person organising the event -> The organiser will then use that money (either by having each user transferring the amount directly to the organisers actual bank account / the organiser collecting all the money and adding it to their actual bank account) -> Organiser will use the money in their account to pay for a venue external to the application.
I have looked at Stripe connect but it is too complicated. The customer will have to fill in details as if they are a business. I am looking for something that allows a customer to just fill in a few details such as address/name/bank account details.
And the transfer is either instant or takes upto 1/2 days.
Also bare in mind that apple pay has to also be used in order for Apple to accept my app
I have looked at Stripe connect but it is too complicated. The customer will have to fill in details as if they are a business. I am looking for something that allows a customer to just fill in a few details such as address/name/bank account details.

Post an order to Shopify for unknown user

Is there a way to post an order, including payment information and shipping information, to Shopify for a new user?
For example, user ABC wants to purchase a product through my website (that is not a shopify website), and I gather all of the information required to make the purchase, including shipping address, credit card, etc. User ABC is not known to Spotify. Is there a way for me to use the Shopify API to process this transaction, including payment processing and everything else?
Shopify has a sales channel called Buy Button. You can use that for your purpose.
Buy Button
Creating a Buy Botton
Adding a Buy Button

Save and Verify the Card, Charge Later - Shopify

I'm setting up my first Shopify store and would like to offer a free trial of a product. The basic idea is the customer is shipped the product at no charge and has so many days to try out and return the product. If the product is not returned within the time period they are charged the amount agreed upon up front.
Within Shopify there is only the option to capture payment immediately or to authorize and then manually capture payment later (7 day auth limitation).
What I would like to do is validate the credit card, but not pre-auth, then the ship the product to the customer for try out. If they decide to keep the product then I charge them 30 days later as agreed by the customer.
The method I want to use with Shopify is the same as detailed by Braintree here
https://support.braintreepayments.com/customer/portal/articles/1080637-collect-payment-at-a-later-date-aka-extend-authorization-
in the section "Save and Verify the Card, Charge Later".
You can use the option as you see it: authorize and then manually capture payment later
As an alternative, you could always capture the money, and if they actually do return it, refund them the money. That is how all TV sales work and they make bazillions doing that, so why not follow their lead?

Paypal express checkout payed more (issue)

Hy guys.
I just implemented the paypal checkout express into my website.
All went good until i had test it live.(without sandbox becouse they didn't send me the confirmation email and i cannot get the api credentials)
- i used my own paypal account.
My question is:
Step 1) call "SetExpressCheckout" with required data.
Step 2) get the tocken and redirect the user to pay 0.01 USD. (all good, user saw $0.01)
Step 3) get the buyer details ..."GetExpressCheckoutDetails" and save them (all good )
here is the big problem:
Step 4) call api: "DoExpressCheckoutPayment" with TOKEN, PAYER_ID ...etc also PAYMENT TOTAL AMOUNT
In this step i added the TOTAL AMOUNT by mistake as $500 - hardcoded , after finalizing the order the $500 were transfered to my account from buyers account instead of $0.01.
How this is possible ??? Why paypal doesn't check the total amount from setExpressCheckout with the total amount from DoExpressCheckoutPayment, becouse the tocken is the same one.
In my opinion this is a major security issue.
That is by design. SetExpressCheckout sets up the payment, but your application won't know (in best practice scenarios) the shipping address of the buyer until after you've called GetExpressCheckoutDetails. At that point you could calculate shipping and sales tax accordingly and add it to the order, display a final review page, and then call DoExpressCheckoutPayment with the final order amount to be charged.
So, yeah, whatever you pass in DECP is what's going to get charged, so you want to make sure that's correct.
As for testing, you just need to create an account at http://developer.paypal.com and then create sandbox accounts within that. You can get the API credentials for sandbox accounts by clicking on the profile of each sandbox account. No need to wait on any confirmation emails or anything. Not sure what you're referring to there, but I definitely recommend testing on the sandbox.

Paypal Express Checkout for Payflow Pro, Shipping and Tax update

In our scenario, we will use PayPal Express Checkout for Payflow Pro (important as it's different from PayPal Express Checkout).
Based on documentation, https://www.paypalobjects.com/webstatic/en_US/developer/docs/pdf/pfp_expresscheckout_pp.pdf, we have to provide shipping and tax values prior to knowing customer's Shipping Address.
I think it's not practical at all, so my question - Is it possible to Update (SetExpressCheckout with existing token) shipping/tax amount after address is chosen? Or somehow update (aka Instant Updates) shipping/tax values on PayPal pages?
Also if customer will go back to shopping cart page and add/remove products should customer go back to PayPal pages or we can only update Item Information and DoExpressCheckout with new amount?
The usual, most general-purpose recommended EC flow is:
Customer is on "View Cart" page and clicks the Checkout with PayPal button without having entered any address or other information into your site
SetEC with provisional shipping/tax amounts (could be 0)
Redirect customer to PayPal site
Customer chooses shipping address at PayPal and returns
GetEC to find out their selected address for the first time
Calculate any new shipping or tax and display summary on an "order review" type page (which could allow them to select from multiple shipping options, like air/ground, if applicable)
When the customer clicks a final "Place Order" sort of button, DoEC with the updated shipping and tax amounts.
Caveat: by default the total amount of the DoEC must be within 115% or $75 of the original SetEC amount, whichever is lesser. So if any of your pricing scenarios will exceed that threshold, the original SetEC should include some placeholder Shipping and Tax amounts, so that the final total is within 115%/$75.