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

fix: Fix type of recurring_prices in GeneratePaylinkBody #92

Merged
merged 1 commit into from
Jun 22, 2023
Merged

fix: Fix type of recurring_prices in GeneratePaylinkBody #92

merged 1 commit into from
Jun 22, 2023

Conversation

Merott
Copy link
Contributor

@Merott Merott commented Jun 21, 2023

Sending recurring_prices as a string will lead to this error from the Paddle API:

{
  "success": false,
  "error": {
    "code": 142,
    "message": "The given recurring prices format is not valid. The recurring prices must have the format of ['currency:amount', 'currency:amount', …]."
  }
}

It's supposed to be a string array, just like prices.

Sending `recurring_prices` as a string will lead to this error from the Paddle API:

```json
{
  "success": false,
  "error": {
    "code": 142,
    "message": "The given recurring prices format is not valid. The recurring prices must have the format of ['currency:amount', 'currency:amount', …]."
  }
}
```

It's supposed to be a string array, just like `prices`.
@Merott Merott changed the title fix: recurring_prices is a string array fix: recurring_prices in GeneratePaylinkBody is a string array Jun 21, 2023
@avaly avaly changed the title fix: recurring_prices in GeneratePaylinkBody is a string array fix: Fix type of recurring_prices in GeneratePaylinkBody Jun 22, 2023
@avaly avaly merged commit 45b3a1a into avaly:main Jun 22, 2023
3 checks passed
@Merott Merott deleted the recurring-prices branch June 22, 2023 08:28
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.

None yet

2 participants