Giter VIP home page Giter VIP logo

Comments (4)

Viincenttt avatar Viincenttt commented on May 24, 2024

Hi lucwuyts,

Thank you for reporting this issue. Unfortunatly I am not able to reproduce this issue on my end. Could you show me some code to reproduce this issue? I have tried the following code, which works fine.

// If: We create a payment with meta data
string json = "{\"employees\":[\r\n    {\"firstName\":\"John\", \"lastName\":\"Doe\"},\r\n    {\"firstName\":\"Anna\", \"lastName\":\"Smith\"},\r\n    {\"firstName\":\"Peter\", \"lastName\":\"Jones\"}\r\n]}";

PaymentRequest paymentRequest = new PaymentRequest() {
    Amount = 100,
    Description = "Description",
    RedirectUrl = this.DefaultRedirectUrl,
    Metadata = json
};

// When: We send the payment request to Mollie
PaymentResponse result = this._mollieClient.CreatePaymentAsync(paymentRequest).Result;

// Then: Make sure we get the same json result as metadata
Assert.AreEqual(json, result.Metadata);

It would also really help if you could include some more details about the exception you are getting.

Kind regards,
Vincent

from mollieapi.

lucwuyts avatar lucwuyts commented on May 24, 2024

i'm only retrieving the paymentlist
ListResponse paymentList = await mollie.GetPaymentListAsync();

This is response.Content returnd in the ProcessHttpResponseMessage method

{"totalCount":20,"offset":0,"count":1,"data":[{"id":"tr_CQvM59jqpH","mode":"live","createdDatetime":"2016-08-04T15:01:04.0Z","status":"paidout","paidDatetime":"2016-08-04T15:03:34.0Z","amount":"24.00","amountRefunded":"0.00","amountRemaining":"49.00","description":"KATR!NARUN 0 - 4.40","method":"mistercash","metadata":{"order_id":"4.40"},"details":{"cardFingerprint":"rPJya8drqpn4CtTrfSaDbVwj","cardNumber":"8009"},"profileId":"pfl_WW6sEcrgGs","links":{"webhookUrl":"http://www.katrinahof.be/oc/cli/notify.php?transaction_id=1470322863","redirectUrl":"http://www.katrinahof.be/oc/cli/notify.php?transaction_id=1470322863&output=customer"}}],"links":{"first":"https://api.mollie.nl/v1/payments?count=1&offset=0","previous":null,"next":"https://api.mollie.nl/v1/payments?count=1&offset=1","last":"https://api.mollie.nl/v1/payments?count=1&offset=19"}}

from mollieapi.

Viincenttt avatar Viincenttt commented on May 24, 2024

Hi lucwuyts,

I managed to reproduce your bug report and have committed a fix. I will release a new version and update the NuGet package as soon as possible.

Here's a link to my commit:
5b73d50

Kind regards,
Vincent

from mollieapi.

lucwuyts avatar lucwuyts commented on May 24, 2024

Ok, thanks!

from mollieapi.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.