razorpay / razorpay-go

Razorpay Go SDK
MIT License
37 stars 24 forks source link

Nested interfaces #16

Closed anoop-b closed 4 years ago

anoop-b commented 4 years ago

How to pack nested interfaces for data payload? for instance:

data := map[string]interface{}{
        "name":          "Gaurav Kumar",
        "email":         "gaurav.kumar@example.com",
        "contact":       "9123456780",
        "fail_existing": "1",
        "notes": {
            "note_key_1": "Tea. Earl grey. Hot.",
            "note_key_2": "Tea. Earl grey. Decaf.",
        },
    }

This trows the following error: invalid composite literal type interface{}