Go
package main import ( "fmt" "strings" "net/http" "io" ) func main() { url := "https://api.mattildapayments.com/checkout/sessions/{checkout_session_id}/fields" payload := strings.NewReader("{\n \"payment_method\": {\n \"method\": \"card\",\n \"number\": \"4111111111111111\",\n \"expiration_date\": \"11/25\",\n \"security_code\": \"123\"\n }\n}") req, _ := http.NewRequest("PUT", url, payload) req.Header.Add("Content-Type", "application/json") res, _ := http.DefaultClient.Do(req) defer res.Body.Close() body, _ := io.ReadAll(res.Body) fmt.Println(res) fmt.Println(string(body)) }
This response does not have an example.
checkout-sessions.write
The unique ID for a Checkout Session.
"8724fd24-5489-4a5d-90fd-0604df7d3b83"
A request to update the secure fields of a checkout session.
Returns when the Checkout Session was updated.
Was this page helpful?