Payments & Billing
Accept payments via Razorpay, configure gateways, and manage GST-compliant invoicing.
Workfile Store supports online payments through Razorpay and configurable payment gateways. Accept UPI, cards, wallets, and net banking — with automatic GST-compliant invoice generation.
Payment methods
All payments are processed through Razorpay with support for:
| Method | Examples |
|---|---|
| UPI | Google Pay, PhonePe, Paytm, BHIM |
| Cards | Visa, Mastercard, RuPay (credit & debit) |
| Wallets | Paytm, Mobikwik, Freecharge |
| Net banking | All major Indian banks |
| EMI | Credit card EMI options |
| COD | Cash on Delivery (configurable) |
All prices in Workfile Store are in INR. Prices are stored in paisa internally (₹499 = 49900 paisa) for precision, but always displayed as formatted rupee values to merchants and customers.
Setting up payments
Create a Razorpay account
Sign up at razorpay.com and complete KYC verification. You'll need your Key ID and Key Secret from the Razorpay dashboard.
Install the Razorpay app
Go to Settings → Apps and install the Razorpay Payments app. This provides the richest configuration experience.
Enter your credentials
| Field | Where to find it |
|---|---|
| Key ID | Razorpay Dashboard → Settings → API Keys |
| Key Secret | Shown once when generating the key |
Configure payment options
Set up COD rules, online payment discounts, and webhook URLs for real-time payment status updates.
You can also connect Razorpay directly from Settings → Payments using the BYOK (Bring Your Own Key) approach. The app provides additional features like COD configuration and online payment discounts.
Checkout flow
When a customer checks out:
- They enter shipping and billing details
- Choose a payment method (UPI, card, etc.)
- Complete payment through Razorpay's secure checkout
- Order is created with payment status automatically updated
Guest checkout
Customers can buy without creating an account. Their name, email, phone, and address are captured on the order.
One-page checkout
The checkout is a single streamlined page to reduce abandonment — address, payment method, and order summary all in one view.
COD (Cash on Delivery)
When configured through the Razorpay app:
| Setting | Description |
|---|---|
| Enable COD | Allow cash on delivery as a payment option |
| COD minimum | Minimum order value for COD |
| COD maximum | Maximum order value for COD |
| COD fee | Additional charge for COD orders |
GST invoicing
Workfile automatically generates GST-compliant invoices for every order:
| Invoice field | Source |
|---|---|
| Invoice number | Auto-generated sequential number |
| GSTIN | From your billing profile |
| HSN codes | From product HSN code field |
| Tax breakdown | Calculated based on product tax rates |
| Business details | From your store settings |
Update your GST details from Settings → Billing → Billing Profile. Your GSTIN and business name appear on all invoices.
Subscription billing
Your Workfile subscription (the plan that powers your store) is managed separately from customer payments:
- Customer payments — processed through your Razorpay account, money goes to you
- Subscription billing — your Workfile plan fee, managed from Settings → Billing
For details on managing your Workfile subscription, see Billing & Plans.
Webhooks
Razorpay webhooks provide real-time payment status updates. When configured, your store automatically receives notifications for:
- Payment authorized
- Payment captured
- Payment failed
- Refund processed
The webhook URL is shown in the Razorpay app settings. Add it to your Razorpay dashboard under Settings → Webhooks.
Always configure webhooks for reliable payment tracking. Without them, payment status updates depend on the customer's browser completing the redirect — which can fail if they close the tab early.