RickardPettersson / swish-api-csharp

Swish For Merchant API Client .Net Standard Library
MIT License
29 stars 14 forks source link

MakePayoutRequest amount is int, when it should be float(?) #19

Closed ludvigbartholdsson closed 2 years ago

ludvigbartholdsson commented 2 years ago

https://github.com/RickardPettersson/swish-api-csharp/blob/c2cb540829083cff325e292bea1105c467773e73/SwishApi/PayoutClient.cs#L76

According to Swish API Docs:

"Amount to be paid. Only period/dot (”.”) are accepted as decimal character with maximum 2 digits after. Digits after separator are optional." https://developer.swish.nu/api/payouts/v1#create-payout

RickardPettersson commented 2 years ago

Seems like i have done a bad decision there i fixing it.

ludvigbartholdsson commented 2 years ago

Thanks! Can you push to nuget after this and the other issue?

RickardPettersson commented 2 years ago

Latest code now have fix for this. Nuget comming