Posted By

bnelson101 on 10/04/18


Tagged

php


Versions (?)

BT Oauth Sample


 / Published in: PHP
 

URL: btoauth

Braintree sample Oauth connect code

  1. <?php
  2.  
  3.  
  4. $gateway = new Braintree_Gateway([
  5. 'clientId' => 'client_id$sandbox$XXXXX',
  6. 'clientSecret' => 'client_secret$sandbox$XXXXX'
  7. ]);
  8.  
  9. $url = $gateway->oauth()->connectUrl([
  10. 'redirectUri' => 'http://poptup.com/auth',
  11. 'scope' => 'shared_vault_transactions,transaction:find',
  12. 'loginOnly' => 'true',
  13. 'state' => 'foo_state'
  14. ]);
  15.  
  16. ?>

Report this snippet  

You need to login to post a comment.