getMissingVerificationForCoinbaseOnrampOrder
Checks what user verification is missing before creating a Coinbase onramp order. Coinbase requires verified email and phone number for Apple Pay purchases, and phone verification must be within the last 60 days. Call this function before createCoinbaseOnrampOrder to ensure the user has completed all required verification steps.Usage
Parameters
| Parameter | Type | Description |
|---|---|---|
paymentMethod | "GUEST_CHECKOUT_APPLE_PAY" | The payment method for the order. Currently only Apple Pay is supported. |
client | DynamicClient (optional) | The Dynamic client instance. Only required when using multiple clients. |
Returns
FieldMissingVerificationForCoinbaseOnramp[] - An array of fields that need attention. Empty array means the user is ready.
Return type
Error Codes
| Code | Description | Action Required |
|---|---|---|
MISSING_INFORMATION | User hasn’t provided email or phone number. | Collect the information using updateUser. |
MISSING_VERIFICATION | User provided but hasn’t verified email or phone. | Send OTP and verify using verifyOTP. |
VERIFICATION_EXPIRED | Phone verification is older than 60 days. | Re-verify the phone number. |
Complete Example
UI Component Example
Related functions
- createCoinbaseOnrampOrder - Create an onramp order (requires verification)
- updateUser - Update user email or phone number
- sendEmailOTP - Send email verification code
- sendSmsOTP - Send SMS verification code