ordercloud-api / ordercloud-dotnet-sdk

The official .NET SDK for the OrderCloud eCommerce platform
MIT License
15 stars 14 forks source link

CreatePaymentTransactionAsync incorrectly returns a PaymentTransaction #125

Closed moo2u2 closed 2 months ago

moo2u2 commented 2 months ago

As confirmed by @djsteinmetz in this Sitecore Slack thread:

I did confirm that the documentation is off, and that v1/cart/payments/cart-payment/transactions does return the full Payment model...

Because of this, the OrderCloudClient method Cart.CreatePaymentTransactionAsync() incorrectly (but somehow without error) populates and returns a PaymentTransaction model when it should populate and return a Payment model.