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.
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.