Skip to content

Added-submitCustomerInfo-function#124

Open
nanaabdul1172 wants to merge 4 commits intoMissBlue00:mainfrom
nanaabdul1172:customer-info
Open

Added-submitCustomerInfo-function#124
nanaabdul1172 wants to merge 4 commits intoMissBlue00:mainfrom
nanaabdul1172:customer-info

Conversation

@nanaabdul1172
Copy link
Copy Markdown

Closes #90
The submitCustomerInfo function enables seamless SEP-12 customer information collection by submitting KYC data to an anchor service, supporting both partial and full customer updates based on the presence of a customer ID. It handles file uploads for identity documents by automatically processing attached CustomerDocumentFile objects (containing file data as strings, Uint8Arrays, or ArrayBuffers) via FormData to the anchor's document endpoint, while serializing other customer fields like email, phone, and custom attributes into the request payload. Before use, configure the service with configureAnchorService providing the base URL and optional auth token; the function returns a CustomerPutResponse with the updated customer details or throws errors for invalid data or API failures.

@drips-wave
Copy link
Copy Markdown

drips-wave bot commented Mar 25, 2026

@nanaabdul1172 Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits.

You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀

Learn more about application limits

@vercel
Copy link
Copy Markdown

vercel bot commented Mar 25, 2026

@nanaabdul1172 is attempting to deploy a commit to the missblue00's projects Team on Vercel.

A member of the Team first needs to authorize it.

@MissBlue00
Copy link
Copy Markdown
Owner

@nanaabdul1172 ci/cd checks, please resolve

@nanaabdul1172
Copy link
Copy Markdown
Author

@nanaabdul1172 ci/cd checks, please resolve

Kindly authorize vercel git integration for PR checks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add submitCustomerInfo function

2 participants