github.com/Ingenico-ePayments/connect-sdk-go@v0.0.0-20240318153750-1f8cd329b9c9/examples/merchant/hostedcheckouts/DeleteHostedCheckoutExample.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 deleteHostedCheckoutExample() { 9 client, clientErr := getClient() 10 if clientErr != nil { 11 panic(clientErr) 12 } 13 defer client.Close() 14 15 err := client.Merchant("merchantId").Hostedcheckouts().Delete("hostedCheckoutId", nil) 16 17 fmt.Println(err) 18 }