Unable to capture details

hi

I am using the below github repo.

I wanted to convert data returned in the test code into separate variables in order to use them but i am unable to get the respective values.

the test is also available in main.go in the repo.

created, err := c.Payments.CreatePayment(req)

log.Printf("\n\n")
log.Printf("Created: %v\n", created)
log.Printf("Err: %v\n", err)

I am unable to unmarshal the data from the returned values stored in created.

any assistance will be really good, as I am stuck for long time on resolving this.

I don’t understand what you mean here:

The response should already be unmarshalled into a *CreatePaymentCreated. Can you show the code you’re using to access the data?

Thanks Sean, i managed to get the data accessed.

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.