@@ 469-489 (lines=21) @@ | ||
466 | * @param none |
|
467 | * @return string server domain name |
|
468 | */ |
|
469 | public function serverName() |
|
470 | { |
|
471 | switch($this->_environment) { |
|
472 | case 'production': |
|
473 | $serverName = 'api.braintreegateway.com'; |
|
474 | break; |
|
475 | case 'qa': |
|
476 | $serverName = 'gateway.qa.braintreepayments.com'; |
|
477 | break; |
|
478 | case 'sandbox': |
|
479 | $serverName = 'api.sandbox.braintreegateway.com'; |
|
480 | break; |
|
481 | case 'development': |
|
482 | case 'integration': |
|
483 | default: |
|
484 | $serverName = 'localhost'; |
|
485 | break; |
|
486 | } |
|
487 | ||
488 | return $serverName; |
|
489 | } |
|
490 | ||
491 | public function authUrl() |
|
492 | { |
|
@@ 491-511 (lines=21) @@ | ||
488 | return $serverName; |
|
489 | } |
|
490 | ||
491 | public function authUrl() |
|
492 | { |
|
493 | switch($this->_environment) { |
|
494 | case 'production': |
|
495 | $serverName = 'https://auth.venmo.com'; |
|
496 | break; |
|
497 | case 'qa': |
|
498 | $serverName = 'https://auth.qa.venmo.com'; |
|
499 | break; |
|
500 | case 'sandbox': |
|
501 | $serverName = 'https://auth.sandbox.venmo.com'; |
|
502 | break; |
|
503 | case 'development': |
|
504 | case 'integration': |
|
505 | default: |
|
506 | $serverName = 'http://auth.venmo.dev:9292'; |
|
507 | break; |
|
508 | } |
|
509 | ||
510 | return $serverName; |
|
511 | } |
|
512 | ||
513 | /** |
|
514 | * returns boolean indicating SSL is on or off for this session, |