solidusio-contrib / solidus_afterpay

Apache License 2.0
1 stars 1 forks source link

Fix express checkout button bug #37

Closed garciajordy closed 3 years ago

garciajordy commented 3 years ago

When the amount was out of range of the Afterpay maximum or minimum allowance, the button was still showing, this was because we only checked if the item was excluded or not.

By using the #available_for_order? method from the payment_method we can check for every clause.

I removed the products array from the documentation about the express checkout button as this is no longer needed.