github.com/Ingenico-ePayments/connect-sdk-go@v0.0.0-20240318153750-1f8cd329b9c9/examples/merchant/payments/GetRefundsExample.go (about)

     1  // This file was auto-generated from the API references found at
     2  // https://epayments-api.developer-ingenico.com/
     3  
     4  package examples
     5  
     6  import "fmt"
     7  
     8  func getRefundsExample() {
     9  	client, clientErr := getClient()
    10  	if clientErr != nil {
    11  		panic(clientErr)
    12  	}
    13  	defer client.Close()
    14  
    15  	response, err := client.Merchant("merchantId").Payments().Refunds("paymentId", nil)
    16  
    17  	fmt.Println(response, err)
    18  }