Integration is more than an API call
A workable integration plan covers the payment surface, the payment provider path, transaction states, notifications to your systems, finance records, support tooling and failure handling. If any of these is left to chance, it tends to show up later as a refund that cannot be traced or a status that support cannot explain.
Compare approaches
A deployment can combine more than one pattern. Which approaches are available for your arrangement is confirmed during scoping.
| Approach | Who controls the experience | Considerations |
|---|---|---|
| Hosted payment page | You create the payment session from your backend and send the customer to a hosted page | Confirm which brand elements and payment methods are available. |
| Server-to-server | You initiate the payment from your backend and display the instructions for the enabled method | More control, with a larger security and testing scope. |
States to test
Verify signed callbacks in your backend and apply repeated notifications only once. Match confirmed events to your order references and check them against settlement reports. Every payment state needs an owner in each system. Before go-live, agree how each case below should behave and test it:
- Successful payment, with the confirmation arriving late
- Declined or failed payment, and what the customer sees next
- Timeout with no response from the payment provider
- Duplicate requests or duplicate callbacks
- Reversals, and full or partial refunds
- Reconciliation records that do not match on the first attempt
For each test, record what the customer sees, which system updates the order and who investigates a mismatch.
India context
An approved INR setup can include UPI, PhonePe, Paytm and IMPS. The available methods, transaction directions and amount limits depend on the project. Confirm which methods and limits apply to your proposed arrangement before planning the integration.
What to send your engineers
Before you discuss integration scope, gather the following:
- Your preferred approach and the reasons for it
- Your current systems for orders, finance and support
- The payment providers involved or under consideration
- The states and failure cases listed above, and who owns each one
- Any security constraints from your organisation. The Security page covers related questions.
To see how integration fits with branding and merchant operations, read Platform.
Next step
Discuss your integration scope and share your approach, systems and providers. We usually reply with questions that clarify technical and commercial fit.