Skip to content

v0.3.1

Compare
Choose a tag to compare
@calebkleveter calebkleveter released this 23 Jan 20:01
· 5 commits to master since this release
0680ad5

Decoding Int and String for quantity Properties

The Order.Item.quantity and Payment.Item.quantity properties are documented as strings in the PayPal API documentation, but you actually get ints back when you create a payment or order. Because of this, we attempt to decode an int, and fall back to a string if we get a type mismatch decoding error.