\OnramperAPI
Method
HTTP request
Description
OnRamperCheckout
Example
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/moon-up/moon-sdk-go"
)
func main() {
authorization := "authorization_example" // string |
accountName := "accountName_example" // string |
transactionInput := *openapiclient.NewTransactionInput(*openapiclient.NewTransactionInputSupportedParams(*openapiclient.NewTransactionInputSupportedParamsPartnerData(*openapiclient.NewTransactionInputSupportedParamsPartnerDataRedirectUrl("Success_example")), *openapiclient.NewTransactionInputSupportedParamsTheme(NullableFloat64(123), "CardColor_example", "SecondaryTextColor_example", "PrimaryTextColor_example", "SecondaryColor_example", "PrimaryColor_example", "ThemeName_example", false)), *openapiclient.NewTransactionInputWallet("Address_example"), *openapiclient.NewTransactionInputMetaData("QuoteId_example"), "OriginatingHost_example", "PartnerContext_example", "Uuid_example", "Network_example", "PaymentMethod_example", "Type_example", float64(123), "Destination_example", "Source_example", "Onramp_example") // TransactionInput |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.OnramperAPI.OnRamperCheckout(context.Background(), accountName).Authorization(authorization).TransactionInput(transactionInput).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `OnramperAPI.OnRamperCheckout``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `OnRamperCheckout`: interface{}
fmt.Fprintf(os.Stdout, "Response from `OnramperAPI.OnRamperCheckout`: %v\n", resp)
}Path Parameters
Name
Type
Description
Notes
Other Parameters
Name
Type
Description
Notes
Return type
Authorization
HTTP request headers
OnRamperGetQuotesBuy
Example
Path Parameters
Other Parameters
Name
Type
Description
Notes
Return type
Authorization
HTTP request headers
OnRamperGetQuotesSell
Example
Path Parameters
Other Parameters
Name
Type
Description
Notes
Return type
Authorization
HTTP request headers
OnRamperGetSupportedAssets
Example
Path Parameters
Other Parameters
Name
Type
Description
Notes
Return type
Authorization
HTTP request headers
OnRamperGetSupportedCurrencies
Example
Path Parameters
Other Parameters
Name
Type
Description
Notes
Return type
Authorization
HTTP request headers
OnRamperGetSupportedDefaultsAll
Example
Path Parameters
Other Parameters
Name
Type
Description
Notes
Return type
Authorization
HTTP request headers
OnRamperGetSupportedOnRampsAll
Example
Path Parameters
Other Parameters
Name
Type
Description
Notes
Return type
Authorization
HTTP request headers
OnRamperGetSupportedPaymentTypes
Example
Path Parameters
Other Parameters
Name
Type
Description
Notes
Return type
Authorization
HTTP request headers
OnRamperGetSupportedPaymentTypesFiat
Example
Path Parameters
Other Parameters
Name
Type
Description
Notes