1 | <?php |
||
15 | class Paypal extends AbstractService |
||
16 | { |
||
17 | /** |
||
18 | * Defined scopes |
||
19 | * @link https://developer.paypal.com/webapps/developer/docs/integration/direct/log-in-with-paypal/detailed/ |
||
20 | * @see #attributes |
||
21 | */ |
||
22 | const SCOPE_OPENID = 'openid'; |
||
23 | const SCOPE_PROFILE = 'profile'; |
||
24 | const SCOPE_PAYPALATTRIBUTES = 'https://uri.paypal.com/services/paypalattributes'; |
||
25 | const SCOPE_EMAIL = 'email'; |
||
26 | const SCOPE_ADDRESS = 'address'; |
||
27 | const SCOPE_PHONE = 'phone'; |
||
28 | const SCOPE_EXPRESSCHECKOUT = 'https://uri.paypal.com/services/expresscheckout'; |
||
29 | |||
30 | /** |
||
31 | * {@inheritdoc} |
||
32 | */ |
||
33 | protected function init() |
||
39 | |||
40 | /** |
||
41 | * {@inheritdoc} |
||
42 | */ |
||
43 | public function getAuthorizationEndpoint() |
||
47 | |||
48 | /** |
||
49 | * {@inheritdoc} |
||
50 | */ |
||
51 | public function getAccessTokenEndpoint() |
||
55 | |||
56 | /** |
||
57 | * {@inheritdoc} |
||
58 | */ |
||
59 | protected function getAuthorizationMethod() |
||
63 | |||
64 | /** |
||
65 | * {@inheritdoc} |
||
66 | */ |
||
67 | protected function parseAccessTokenResponse($responseBody) |
||
95 | } |
||
96 |