💳 Payments
Accept payments via Gammal Tech Wallet (EGP) or international cards (USD/EUR). One-line integration with built-in security.
Payment features require pre-approval from Gammal Tech. After approval, we manually configure your payment callback page. This is a security and compliance requirement — payment endpoints cannot be self-configured. Contact us at dev@gammal.tech to get started.
Payment Methods
Choose the right payment method for your audience:
Quick Comparison
| Feature | Wallet (EGP) | Card (USD/EUR) |
|---|---|---|
| SDK Method | GammalTech.pay() |
GammalTech.payCard() |
| Best For | Egyptian market | International market |
| User Experience | 1-click if logged in | Card form in popup |
| Settlement | Instant | 2-3 business days |
| Chargebacks | Not possible | Possible (standard card rules) |
| Minimum Amount | 1 EGP | $1 USD |
Quick Start
Once approved, accepting payments is just one line of code:
// Charge 100 EGP from user's wallet
GammalTech.pay(100, 'Premium Subscription', function(payment) {
// Payment successful! Deliver the product
console.log('Payment ID:', payment.id);
deliverProduct(payment);
});
// Charge $29.99 USD via card
GammalTech.payCard(29.99, 'USD', 'Pro Plan - Monthly', function(payment) {
// Payment successful! Deliver the product
console.log('Payment ID:', payment.id);
deliverProduct(payment);
});
Payment Flow
Both payment methods follow a secure delivery-confirmation pattern:
After delivering the product/service, call GammalTech.payment.confirmDelivery() to mark the transaction complete. This protects both you and your customers.
Method Reference
Core Payment Methods
| Method | Description |
|---|---|
GammalTech.pay(amount, description, onDeliver) |
Wallet payment in EGP. Calls onDeliver on success. |
GammalTech.payCard(amount, currency, description, onDeliver) |
Card payment in specified currency. Calls onDeliver on success. |
Verification & Recovery Methods
| Method | Description |
|---|---|
GammalTech.payment.verifyPayment(paymentId) |
Verify a payment's status with the server. |
GammalTech.payment.confirmDelivery(paymentId) |
Mark a payment as delivered/fulfilled. |
GammalTech.payment.settlePending() |
Recover and settle any pending payments from interrupted sessions. |
Security Features
All payments are processed through Gammal Tech's secure infrastructure. Card details never touch your servers. PCI-DSS Level 1 compliant.
Built-in Protections
Getting Approved
To enable payments for your application:
1. Contact Us: Email dev@gammal.tech with your app details.
2. Review: We review your application for compliance.
3. Configure: We set up your payment callback and limits.
4. Go Live: Start accepting payments!
Related Documentation
AI Prompt for Vibe Coding
PaymentsCopy this prompt for help with payment integration: