Convert Woo PayPal code to Angelleye class