Card Processing (Direct Core)
Accept credit card payments directly via the CashPay sovereign network. Funds are automatically credited to your Fleet Account in real-time.
Architecture & Sovereignty
- Total White-labeling: The third-party technical infrastructure is completely invisible. Your clients and systems only see the CashPay identity.
- Instant Settlement: As soon as the bank authorizes the transaction, your fleet account is credited (net of fees).
Transaction Authentication
Every transaction must be authenticated with your secret API Key. This key must be sent in the Authorization header of your HTTP request.
Mandatory Auth Header
cURL
Authorization: Bearer <YOUR_API_KEY>1. Process a Card Payment
This endpoint allows you to debit a bank card and receive the funds directly on your CashPay wallet.
POST
/api/v1/b2b/payments/card/chargeDebits a credit or debit card and credits the partner's fleet account.
JavaScript
const apiKey = process.env.CASHPAY_API_KEY;
const response = await fetch('https://api.cashpay-all.com/api/v1/b2b/payments/card/charge', {
method: 'POST',
headers: {
'Authorization': `Bearer ${apiKey}`,
'Content-Type': 'application/json'
},
body: JSON.stringify({
amount: 100.00,
currency: "USD",
reference: "ORDER-2024-001",
card: {
number: "4242424242424242",
expiryMonth: "12",
expiryYear: "25",
cvv: "123"
}
})
});Data Security
PCI-DSS Requirement
Card data transmitted via this API must be handled in accordance with your application's PCI-DSS standards. CashPay ensures secure transmission to the payment core without storing full card numbers.