You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* For the best user experience, specify the user's `country` code in your request. This will return an error if the user's country is not supported by the provider.
* @param [options.currency] - The currency for the onramp (e.g., "USD", "GBP"). Defaults to user's preferred or "USD".
122
139
* @param [options.maxSteps] - Maximum number of post-onramp steps.
123
140
* @param [options.excludeChainIds] - Chain IDs to exclude from the route (string or array of strings).
141
+
* @param [options.country] - The user's country code (e.g. "US", "JP"). Defaults to "US". We highly recommend this be set (based on the user's IP address).
124
142
*
125
143
* @returns A promise that resolves to the prepared onramp details, including the link and quote.
126
144
* @throws Will throw an error if there is an issue preparing the onramp.
@@ -145,6 +163,7 @@ export async function prepare(
145
163
maxSteps,
146
164
excludeChainIds,
147
165
paymentLinkId,
166
+
country,
148
167
}=options;
149
168
150
169
constclientFetch=getClientFetch(client);
@@ -186,6 +205,9 @@ export async function prepare(
0 commit comments