Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add onBehalfOf type to PaymentRequest #592

Merged
merged 2 commits into from
Apr 5, 2024
Merged

Conversation

awalker-stripe
Copy link
Contributor

Summary & motivation

Adds onBehalfOf as a valid parameter for PaymentRequests

Testing & documentation

Unit test

@@ -3184,6 +3184,13 @@ const paymentRequest: PaymentRequest = stripe.paymentRequest({
},
});

const paymentRequestOBO: PaymentRequest = stripe.paymentRequest({
country: 'US',
currency: 'usd',
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we also add a test in invalid.ts that checks that you cannot update onBehalfOf?

@awalker-stripe awalker-stripe merged commit 1259510 into master Apr 5, 2024
2 checks passed
@awalker-stripe awalker-stripe deleted the awalker/pr-obo branch April 5, 2024 23:16
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.

2 participants