Bug fix for the payment repo