razorpay / razorpay-go

Razorpay Go SDK
MIT License
37 stars 24 forks source link

Error in Sample Code in ReadMe #19

Closed go-arun closed 3 years ago

go-arun commented 3 years ago
data := map[string]interface{}{
    "amount":          1234,
    "currency":        "INR",
    "receipt_id":      "some_receipt_id",
}
body, err := client.Order.Create(data)

Error getting is given below ( function client.Order.Create() required two arguments , Right ?)


./main.go:19:45: not enough arguments in call to client.Order.Create
        have (map[string]interface {})
        want (map[string]interface {}, map[string]string)