meter/createSession uses the regular signed AMS transport. Call
meter/uploadEvent with ExecuteWithHeaders and the returned X-Session-Id.
The SDK uses the gateway URL configured on the client without sandbox path
rewriting, request signing, response signature verification, or automatic
retries. This API requires HTTP/2 and supports the Go version declared in
go.mod. For production use, build applications with a currently supported
Go release containing the latest security fixes.
See com/alipay/example/meter_upload_event_demo.go for a complete request.
1 Please use the latest version
https://mvnrepository.com/artifact/com.alipay.global.sdk/global-open-sdk-go
Meter event upload
meter/createSessionuses the regular signed AMS transport. Callmeter/uploadEventwithExecuteWithHeadersand the returnedX-Session-Id. The SDK uses the gateway URL configured on the client without sandbox path rewriting, request signing, response signature verification, or automatic retries. This API requires HTTP/2 and supports the Go version declared ingo.mod. For production use, build applications with a currently supported Go release containing the latest security fixes.See
com/alipay/example/meter_upload_event_demo.gofor a complete request.2 The demo code for create payment
The execute method contains the HTTP request to the gateway.