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(gocarless): Refund metadata can contains 3 keys at max #2703

Merged
merged 1 commit into from
Oct 17, 2024

Conversation

vincent-pochet
Copy link
Collaborator

Context

This PR is a fix for CreditNotes::Refunds::GocardlessCreateJob failing with GoCardlessPro::InvalidApiUsageError, One of your parameters was incorrectly typed

In the Gocardless API reference the metadata field is defined like this:

Key-value store of custom data. Up to 3 keys are permitted, with key names up to 50 characters and values up to 500 characters.

Today, we are sending lago_customer_id, lago_credit_note_id, lago_invoice_id and reason wich is more than 3...

Description

Since the lago_customer_id is not used when receiving related webhooks this PR removes it from the metadatas so that we only send 3 keys.

@vincent-pochet vincent-pochet merged commit 8c4ec34 into main Oct 17, 2024
6 checks passed
@vincent-pochet vincent-pochet deleted the fix-go-carless-refund branch October 17, 2024 12:23
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.

3 participants