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

The metadata field is not being sent or accepted by the createInvoice() method. #227

Open
ahmaruff opened this issue Oct 17, 2024 · 0 comments

Comments

@ahmaruff
Copy link

I want to create an invoice with some metadata so that I can identify the invoice type in my app. However, it seems that the CreateInvoiceRequest() method ignores the "metadata" field. When I bypass it (by directly passing the data into the createInvoice() method), it still behaves the same.

Here's my code:

 try {
            $resp = array();
            $invoiceRequest = new CreateInvoiceRequest($validated);
            $invoiceCreated1 = $apiInstance->createInvoice($invoiceRequest);
            $invoiceCreated2 = $apiInstance->createInvoice($validated);

            dd($invoiceCreated1,$invoiceCreated2); // both return the same
}

For the record, the documentation for this package also seems to ignore the metadata field. But why? According to the API documentation here, it clearly states that we can use metadata.

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

1 participant