Skip to content

Add form-urlencoded body support to OARequestBuilder - #33

Merged
noha merged 1 commit into
masterfrom
stripe-form-body-support
Jul 30, 2026
Merged

Add form-urlencoded body support to OARequestBuilder#33
noha merged 1 commit into
masterfrom
stripe-form-body-support

Conversation

@noha

@noha noha commented Jul 30, 2026

Copy link
Copy Markdown
Member

Stripe's v1 API (the part ApptiveAccount currently uses) sends request bodies as application/x-www-form-urlencoded with bracket-notation for nested objects/arrays (metadata[key], items[0][price]), not JSON. addFormBody: mirrors addJSONBody: for that case, built on a generic flatten helper that walks nested Dictionaries/SequenceableCollections into bracket-notation form keys.

Stripe's v1 API (the part ApptiveAccount currently uses) sends request
bodies as application/x-www-form-urlencoded with bracket-notation for
nested objects/arrays (metadata[key], items[0][price]), not JSON.
addFormBody: mirrors addJSONBody: for that case, built on a generic
flatten helper that walks nested Dictionaries/SequenceableCollections
into bracket-notation form keys.
@noha
noha merged commit 113386d into master Jul 30, 2026
3 of 4 checks passed
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.

1 participant