If the customer wants to buy hardware that you do not own, then you can deal with him in the following manner:
- Acting as his proxy in return for a fee
That means telling him about the hardware and its specifications, and the real price for which it is sold, without adding any margin, then you can buy it for him in return for a percentage of the price or a defined fee.
In this case, the customer cannot change his mind so long as the hardware is as he requested. If he still insists on cancelling the deal, then you can act as his proxy and try to return it to the seller, if possible. You can stipulate that you are acting as his proxy in purchasing and in returning faulty goods, but not in returning it if the customer changes his mind, or cancelling the deal even though the item is in good condition.
The most correct scholarly view regarding the fee is that it is permissible for it to be a percentage of something known, such as the price of the product, whether a man is hired to buy or sell.
In Kashshaf al-Qina` (3/615), it says that what it is permissible on the basis of a comparison with musaqah (when trees are given to someone to tend and irrigate in return for a share of the harvest), or muzara`ah (where one person supplies land and another cultivates it) includes: selling someone else’s goods in return for a portion of the profit. End quote.
It says in Fatawa al-Lajnah ad-Da’imah (13/125): I own a business service, and my work involves acting as a proxy and middleman for some companies overseas which manufacture ready-made clothing and foods. These companies send samples of what they manufacture, with the prices of each type, and I show these items to traders in the market, and sell them to them for the price stated by the company, in return for permission from the manufacturers according to the percentage agreed upon. Is there any sin in that, or will I incur any kind of sin? I hope that you can advise me; thank you.
Answer: If the situation is as described, it is permissible for you to accept that commission, and there is no sin on you.
`Abdullah ibn Ghadyan, `Abd ar-Razzaq `Afifi, `Abd al-`Aziz ibn `Abdillah ibn Baz. End quote.
When acting as a proxy, it is not permissible to guarantee anything to the customer [in other words, you are not liable], because you are acting as a proxy, and the proxy is entrusted to do something; he cannot be liable unless he deliberately causes damage or is neglectful.
- Profit-sharing (murabahah)
In this scenario, you will buy the hardware that the customer wants, after making an agreement with him that you will sell it to him for a known profit, whether you sell it to him for payment by instalments or immediate payment.
But it is not permissible for you to take money from him before the agreed delivery date; rather you must buy the hardware with your money, for immediate or deferred payment, then when you take possession of the hardware, you can sell it to the customer.
See the answer to question no. 229091.
You should buy it with the option to cancel within a specific period, so that if the customer cancels his agreement after you buy the hardware for him, you will be able to return the hardware to the supplier, so long as you stipulate that you will have the option to cancel the deal, or you can sell it to other customers, if you like.
- Payment in advance for something to be delivered at a later date (salam transaction)
This refers to selling hardware which meets particular specifications, with an agreement to deliver it at a later, known date, on condition that the purchaser pay the price in full immediately after reaching an agreement.
Salam is selling an item with known specifications, to be paid in full in advance immediately after reaching an agreement.
It says in Hidayat ar-Raghib (p. 338): In Islamic law, salam is a contract to sell an item with known specifications to be delivered later, for a price to be paid in full immediately after reaching an agreement. End quote.
If the customer refuses to pay the price in full, then the salam transaction is not valid, and that fact that you will compensate the customer if the item is lost does not matter, because the condition of the salam transaction is what we have mentioned. Ash-Shafa`i derived this ruling from the Prophet’s words: “Whoever pays for dates in advance, let him pay in advance for a specified measure and a specified weight, to be delivered at a specified time.” Narrated by al-Bukhari, 2240; Muslim, 1604.
The words “let him pay in advance” mean: Let him pay in full immediately after reaching an agreement, so that it will not be selling a debt for a debt, because the item is not yet ready to be delivered.
Ibn al-Qattan said in Masa’il al-Ijma’ (2/239): The scholars were agreed that if the two parties to the salam transaction separate before the payment is made – whether this is stipulated in the sale contract or not – the salam transaction between them is rendered invalid, except for Malik, who said: If that was not stipulated in the contract, and the exchange takes place one or two days later, there is nothing wrong with that. End quote.
So if the customer wants something to be made or manufactured, such as a program or hardware and so on, then this is a contract to have something made or done (`aqd istisna`), in which it is not stipulated that the price should be paid in full immediately, whether you manufacture it yourselves or you make a deal with a manufacturer.
See the answer to question no. 2146.
There is a difference between manufactured hardware that is sold and that which needs to be manufactured.
And Allah knows best.