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

Adds support for 'partner_id' to 'setAppInfo' #488

Merged
merged 1 commit into from
Jun 28, 2018

Conversation

zachwick
Copy link

This adds support for an optional partner_id attribute in the setAppInfo hash.

lib/Stripe.php Outdated
@@ -199,12 +199,13 @@ public static function getAppInfo()
* @param string $appVersion The application's version
* @param string $appUrl The application's URL
*/
public static function setAppInfo($appName, $appVersion = null, $appUrl = null)
public static function setAppInfo($appName, $appPartnerId = null, $appUrl = null, $appVersion = null)
Copy link
Contributor

Choose a reason for hiding this comment

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

Unfortunately PHP doesn't support keyword arguments, so this is a breaking change. Mind setting $appPartnerId as the last argument?

Signed-off-by: zach wick <zwick@stripe.com>
@zwick-stripe zwick-stripe force-pushed the zwick_partner_id_set_app_info branch from 5fbfc89 to 516c322 Compare June 28, 2018 15:08
@zachwick
Copy link
Author

Reordered the positional arguments.

ptal @ob-stripe

@ob-stripe ob-stripe merged commit 8d3aa1a into master Jun 28, 2018
@ob-stripe ob-stripe deleted the zwick_partner_id_set_app_info branch June 28, 2018 15:24
@ob-stripe
Copy link
Contributor

Released in 6.10.0.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants