Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

Atef95's avatar

Submit Payouts directly to debit cards

Hey Guys I want to add payment functionnality to my website The strategy is User A pay User B and website get commission I'm facing an issue with payment gateways which are not accessible in my country to withdraw money so I'm only able to make payouts.. is there a script or something that allows me to pay directly to a debit card ?

0 likes
4 replies
intossh@gmail.com's avatar

As far as I know there is no way to send money to a credit/debit card directly. You always have to use an API of some gateway which actually communicates with the bank of the debit card. Have you checked all the gateways? I am sure some of them will be available, also for sending money the easiest option would be Paypal, but gateways are mostly used to receive money to your account from a debit card/paypal, sending money might be a bit tricky, not sure if even possible as the script would have to have access to your account to send money from. You said something about commission, as far as I know this is not possible directly, the money cant be split, you would have to either have two transactions one from User A to User B, second from User A to you, or have the whole amount sent to your account, and then with another transaction from your account to User B. I just quickly went through Paypal's API and it seems you could be able to send money from your account to some other.

Atef95's avatar

Thank you for your answer Yes I can take in charge that with my own logic but the issue is with paypal and other payment services that are not allowed in my country to withdraw money.. I can only send payouts ( shopping..etc) ... So Im looking for a trick to get through this...

intossh@gmail.com's avatar

I think you mean you can only receive payments (from customers to your account), but cannot send them out right? There is no direct way to "send money to debit card". Debit card is only like a key/certificate with the identification, bound to your account, so simple script cannot send money to it, you would have to either communicate with the bank directly (which is unlikely I would say), or with a gateway. You said payouts are not allowed, does that mean that even Paypal won't allow you to send money? Do they have this in their terms? This should not depend on a bank, since Paypal has its own account where you can have money, so these transactions would only go through your Paypal account, then when you want to take your portion of the money out of your Paypal you would send them to your bank account.

Otherwise this has to be done via "refund" option in a gateway, but most of the gateways require some positive transaction from the debit card to your gateway to allow a refund. You need to look for 'stand alone credit' or 'stand alone refund'.

Anyway, however you decide to do it, just a friendly tip, never store any creditcard details on your server, let the gateway handle this, otherwise you should be pretty damn sure what you are doing. I think it even requires some security audits.

Please or to participate in this conversation.