Follow this link :
https://developer.paypal.com/docs/classic/express-checkout/integration-guide/ECReferenceTxns/
First i call the express checkout option that gives me a token id, after that i call the CreateBillingAgreement($tokenid) that gives an error like that :
[TIMESTAMP] => 2017-02-23T11:24:03Z
[CORRELATIONID] => 5cf858da7986
[ACK] => Failure
[VERSION] => 64
[BUILD] => 30029726
[L_ERRORCODE0] => 11455
[L_SHORTMESSAGE0] => Buyer did not accept billing agreement
[L_LONGMESSAGE0] => Buyer did not accept billing agreement
[L_SEVERITYCODE0] => Error