package request type CheckOutOrderRequest struct { Intent string `json:"intent"` PurchaseUnits []PurchaseUnit `json:"purchase_units"` ApplicationContext ApplicationContext `json:"application_context"` } type PurchaseUnit struct { Amount Amount `json:"amount"` Description string `json:"description"` CustomId int `json:"custom_id"` } type Amount struct { CurrencyCode string `json:"currency_code"` Value string `json:"value"` } type ApplicationContext struct { CancelUrl string `json:"cancel_url"` ReturnUrl string `json:"return_url"` }