Skip to content

Latest commit

 

History

History
38 lines (28 loc) · 3.22 KB

README.md

File metadata and controls

38 lines (28 loc) · 3.22 KB

SezzleSharp

A Sezzle C# SDK

Build status NuGet Version

This library is still in development. This SDK will wire up the following endpoints and features from the Sezzle Pay API:

*Pending Sezzle developer support giving information regarding why the shipping address isn't being populated on the Orders (Details) call. Need to ensure it's being saved on checkout create appropriately.

Sandbox

If you’re using Sezzle's sandbox, you’ll need to enter 123123 when doing a checkout (it doesn’t support customer specific phone numbers for text verification…probably for the better). Per their support:

For more information about the Sezzle sandbox, please see documentation located here: https://docs.sezzle.com/#sandbox

Customer Shipping Address Notes

Setting requires_shipping_info to true in the Checkouts endpoint will show a shipping address UI in the Sezzle checkout process. The shipping_address is populated from the Orders (detail) endpoint when include_shipping_info is set to true for orders that Sezzle collects the shipping address (when requires_shipping_info is true).

However, in the event that the shipping address is collected outside of the Sezzle site and is passed over as a parameter in the shipping_address field in the Checkouts endpoint with requires_shipping_info to true, when calling the Orders (detail) endpoint with include_shipping_info set to false, the shipping_address field has all empty values and not the values that were sent in the Checkouts endpoint. This is apparently by design per Sezzle developer support.

#Changes for v2.0

-major (breaking) functional changes: - exception thrown from library upon a.) unsuccessful requests b.) timeouts, etc. - added interpretation of "order status". Your code will not have to parse through the response to determine the state of your order. I determined that based on merchantCompletes flag (createCheckout call) of true or false, certain values would be populated or null when a request to order details is made. This SezzleSharp library then interprets these 3 dates in OrderDetails to give you the order status. -consolidated test projects. -Added end to end unit tests. For these to work, you will have to add your Phone number and pin to the app.config in the tests project. -shipping address features untested as we do not use this feature and don't have a way of testing them with our implementation.