OnramperAPI
OnramperAPI
Method
HTTP request
Description
onRamperCheckout
open class func onRamperCheckout(authorization: String, accountName: String, transactionInput: TransactionInput, completion: @escaping (_ data: AnyCodable?, _ error: Error?) -> Void)Example
// The following code samples are still beta. For any issue, please report via http://github.com/OpenAPITools/openapi-generator/issues/new
import OpenAPIClient
let authorization = "authorization_example" // String |
let accountName = "accountName_example" // String |
let transactionInput = TransactionInput(supportedParams: TransactionInput_supportedParams(partnerData: TransactionInput_supportedParams_partnerData(redirectUrl: TransactionInput_supportedParams_partnerData_redirectUrl(success: "success_example")), theme: TransactionInput_supportedParams_theme(borderRadius: 123, cardColor: "cardColor_example", secondaryTextColor: "secondaryTextColor_example", primaryTextColor: "primaryTextColor_example", secondaryColor: "secondaryColor_example", primaryColor: "primaryColor_example", themeName: "themeName_example", isDark: false)), wallet: TransactionInput_wallet(address: "address_example"), metaData: TransactionInput_metaData(quoteId: "quoteId_example"), originatingHost: "originatingHost_example", partnerContext: "partnerContext_example", uuid: "uuid_example", network: "network_example", paymentMethod: "paymentMethod_example", type: "type_example", amount: 123, destination: "destination_example", source: "source_example", onramp: "onramp_example") // TransactionInput |
OnramperAPI.onRamperCheckout(authorization: authorization, accountName: accountName, transactionInput: transactionInput) { (response, error) in
guard error == nil else {
print(error)
return
}
if (response) {
dump(response)
}
}Parameters
Name
Type
Description
Notes
Return type
Authorization
HTTP request headers
onRamperGetQuotesBuy
Example
Parameters
Name
Type
Description
Notes
Return type
Authorization
HTTP request headers
onRamperGetQuotesSell
Example
Parameters
Name
Type
Description
Notes
Return type
Authorization
HTTP request headers
onRamperGetSupportedAssets
Example
Parameters
Name
Type
Description
Notes
Return type
Authorization
HTTP request headers
onRamperGetSupportedCurrencies
Example
Parameters
Name
Type
Description
Notes
Return type
Authorization
HTTP request headers
onRamperGetSupportedDefaultsAll
Example
Parameters
Name
Type
Description
Notes
Return type
Authorization
HTTP request headers
onRamperGetSupportedOnRampsAll
Example
Parameters
Name
Type
Description
Notes
Return type
Authorization
HTTP request headers
onRamperGetSupportedPaymentTypes
Example
Parameters
Name
Type
Description
Notes
Return type
Authorization
HTTP request headers
onRamperGetSupportedPaymentTypesFiat
Example
Parameters
Name
Type
Description
Notes