Added hooks to PayPal REST API