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

Unmarshalling error on schedule create from subscription #1428

Closed
Arsaev opened this issue Mar 9, 2022 · 2 comments
Closed

Unmarshalling error on schedule create from subscription #1428

Arsaev opened this issue Mar 9, 2022 · 2 comments

Comments

@Arsaev
Copy link
Contributor

Arsaev commented Mar 9, 2022

How to reproduce:

  1. Create subscription for connected account with application fee.
  2. Call Subscription Schedule Create from subscription

Result:
Schedule is successfully created but go binding lib fails to unmarshal json with error
(response status: 200, body sample: '{\\n \"id\": \"sub_sched_\",\\n \"object\": \"subscription_schedule\",\\n \"canceled_at\": null,\\n \"completed_at\": null,\\n \"created\": 1646824588,\\n \"current_phase\": {\\n \"end_date\": 1649502612,\\n \"start_date\": 1646824212\\n },\\n \"customer\": \"cus_\",\\n \"default_settings\": {\\n \"application_fee_percent\": 1.0,\\n \"automatic_tax\": {\\n \"enabled\": false\\n },\\n \"billing_cycle_anchor\": \"automatic\",\\n \"billing_thresholds\": null,\\n \"collection_method\": \"charge_autom ...'): json: invalid use of ,string struct tag, trying to unmarshal unquoted value into float64"

@Arsaev
Copy link
Contributor Author

Arsaev commented Mar 9, 2022

Created a PR for this issue
#1429

@dcr-stripe
Copy link
Contributor

Merged and released in https://github.com/stripe/stripe-go/releases/tag/v72.92.0 - thank you @Arsaev !

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

No branches or pull requests

2 participants