Documentation
¶
Overview ¶
Package instamojo mocks Instamojo's (India) payment-request API. Real-world shape: a `{ success: bool, payment_request: {...} }` envelope on success and `{ success: false, message: "...", errors: {...} }` on validation failures. Amounts are string-encoded throughout.
DTO shapes for Instamojo's (India) payment-request API. Derived from the production reference library (test-dto-/payments.go, structs: InstamojoInitRespPayload, InstamojoPaymentDetailsPayload, InstamojoErrorPayload, InstamojoRefundResponse, ...).
Instamojo's API returns a top-level `{ success: bool, payment_request: {...} }` envelope. Failure responses flip `success` to false and ship a `message` — plus an optional `errors` map keyed on field name.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Adapter ¶
type Adapter struct{}