If the matter is as described, and you buy the product that the customer wants in a real sense, taking possession of it and then selling it for a price to be paid by installments, there is nothing wrong with that, even if the price by installment is higher than the cash price.
It does not matter if the one who buys it from you sells it to the first store, because there is no connection between him and this store.
The Standing Committee was asked:
I agreed with another man that I would buy a car for him. I told him that the showroom price is 50,000 riyals but if I bring it to you the price will be 60,000. Is that permissible?
There is nothing wrong with selling a car or any other product, if you are selling it after buying it and taking possession of it. It is permissible for you to sell it for a cash price or for a deferred payment that is higher than the cash price, whether the deferred payment is made in installments or otherwise. That is because Allaah says (interpretation of the meaning):
“Allaah has permitted trading”
“O you who believe! When you contract a debt for a fixed period, write it down”
This includes the price of goods sold for a deferred payment.
Selling a product to a person who has asked for it before you have bought it and taken possession of it is not permissible, because it is proven that Zayd ibn Thaabit (may Allaah be pleased with him) said: The Messenger of Allaah (peace and blessings of Allaah be upon him) forbade selling goods in the place where they had been bought, until the traders had taken them to their own locations. Narrated by Abu Dawood, 3499. Shaykh al-Albaani said: It is hasan because of corroborating evidence.
And the Prophet (peace and blessings of Allaah be upon him) said: “Whoever buys foodstuff should not sell it until he takes possession of it.” Narrated by Muslim, 1596.
And the Prophet (peace and blessings of Allaah be upon him) said: “Do not sell what you do not have with you.” Narrated by Ahmad and Abu Dawood, 3503; classed as saheeh by Shaykh al-Albaani in Saheeh al-Jaami’, 7206.
Ibn ‘Umar (may Allaah be pleased with him) said: We used to buy food willy-nilly, then the Messenger of Allaah (peace and blessings of Allaah be upon him) sent word to us forbidding us to sell it until we had moved it to our own locations. Narrated by al-Bukhaari and Muslim, 1527.
As for the ‘aynah transaction that is forbidden, this refers to buying a product for a deferred payment, then selling it back to the person who sold it to you for a lower price. This is not what is being done in this case. See question no. 36408.
And Allaah knows best.