midtrans_get_charge_example
Generate complete Midtrans charge request JSON examples with curl commands for specific payment methods. Creates ready-to-use request bodies with optional customer and item details.
Instructions
Generate a complete charge request JSON example for a specific payment method.
Creates a ready-to-use charge request body with all required fields and optionally includes customer_details and item_details.
Args: params: Contains payment method, and flags for optional sections.
Returns: str: Complete charge request JSON example with curl command and response format.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| params | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |