How do i check buying power? And gracefully avoid: Runtime Error

Order Error: id: 81: Insufficient buying power to complete order

Author