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

Unable use GetOrder if swish payment type is used #111

Closed
Flybring opened this issue Nov 30, 2022 · 8 comments
Closed

Unable use GetOrder if swish payment type is used #111

Flybring opened this issue Nov 30, 2022 · 8 comments

Comments

@Flybring
Copy link

If SWISH PaymentType is used during checkout I'm unable to fetch the order after the payment has been completed.

The JSON value could not be converted to Svea.WebPay.SDK.CheckoutApi.Data. Path: $.PaymentType | LineNumber: 0 | BytePositionInLine: 3349.

   at System.Text.Json.ThrowHelper.ThrowJsonException(String message)
   at System.Text.Json.Serialization.Converters.EnumConverter`1.ReadWithQuotes(Utf8JsonReader& reader)
   at System.Text.Json.Serialization.Converters.EnumConverter`1.Read(Utf8JsonReader& reader, Type typeToConvert, JsonSerializerOptions options)
   at System.Text.Json.Serialization.Converters.NullableConverter`1.Read(Utf8JsonReader& reader, Type typeToConvert, JsonSerializerOptions options)
   at System.Text.Json.Serialization.JsonConverter`1.TryRead(Utf8JsonReader& reader, Type typeToConvert, JsonSerializerOptions options, ReadStack& state, T& value)
   at System.Text.Json.Serialization.JsonConverter`1.TryReadAsObject(Utf8JsonReader& reader, JsonSerializerOptions options, ReadStack& state, Object& value)
   at System.Text.Json.Serialization.Converters.LargeObjectWithParameterizedConstructorConverter`1.ReadAndCacheConstructorArgument(ReadStack& state, Utf8JsonReader& reader, JsonParameterInfo jsonParameterInfo)
   at System.Text.Json.Serialization.Converters.ObjectWithParameterizedConstructorConverter`1.OnTryRead(Utf8JsonReader& reader, Type typeToConvert, JsonSerializerOptions options, ReadStack& state, T& value)
   at System.Text.Json.Serialization.JsonConverter`1.TryRead(Utf8JsonReader& reader, Type typeToConvert, JsonSerializerOptions options, ReadStack& state, T& value)
   at System.Text.Json.Serialization.JsonConverter`1.ReadCore(Utf8JsonReader& reader, JsonSerializerOptions options, ReadStack& state)
   at System.Text.Json.JsonSerializer.ReadCore[TValue](JsonConverter jsonConverter, Utf8JsonReader& reader, JsonSerializerOptions options, ReadStack& state)
   at System.Text.Json.JsonSerializer.ReadCore[TValue](Utf8JsonReader& reader, Type returnType, JsonSerializerOptions options)
   at System.Text.Json.JsonSerializer.Deserialize[TValue](String json, Type returnType, JsonSerializerOptions options)
   at System.Text.Json.JsonSerializer.Deserialize[TValue](String json, JsonSerializerOptions options)
   at Svea.WebPay.SDK.SveaHttpClient.<SendHttpRequestAndProcessHttpResponse>d__10`1.MoveNext()
@lounge
Copy link
Collaborator

lounge commented Dec 9, 2022

@Flybring What version of sdk are you using? This works fine in latest release 3.1.0

@Flybring
Copy link
Author

@lounge I'm using version 3.1.0.

@lounge
Copy link
Collaborator

lounge commented Dec 14, 2022

@Flybring Please give steps to reproduce.

@Flybring
Copy link
Author

Here you go @lounge

  1. Create order with client.Checkout.CreateOrder
  2. Render Gui.Snippet
  3. Select Swish payment
  4. Pay trough Swish app
  5. Fetch order with client.Checkout.GetOrder after payment is done

I realized there is an GetOrder method trough PaymentAdmin as well. I do not get any error from that method.

@lounge
Copy link
Collaborator

lounge commented Dec 20, 2022

@Flybring This is because SWISH_PF is missing from SDK. There is only support for SWISH as of now. Will be fixed in next release

@Flybring
Copy link
Author

@lounge Any ETA on the next release?

@lounge
Copy link
Collaborator

lounge commented Feb 15, 2023

@Flybring We are planning on a new release this or next week with a fix.

@lounge
Copy link
Collaborator

lounge commented Feb 27, 2023

@Flybring This is fixed in release 4.0.0

@lounge lounge closed this as completed Feb 27, 2023
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

2 participants