Advertisement
Guest User

Untitled

a guest
Jul 19th, 2018
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.15 KB | None | 0 0
  1. require '.././libs/Slim/Slim.php';
  2. require '.././libs/stripe-php/init.php';
  3.  
  4. \Stripe\Stripe::setApiKey('sk_test_hRhnPIuoNw8d5pXpk5lr8G9o'); //only for stripe paymentGateway
  5.  
  6. \Slim\Slim::registerAutoloader();
  7.  
  8. $acc_details = \Stripe\Account::retrieve($data['custom_ac_id']);
  9. $acc_details->legal_entity['first_name'] = 'Ujjual';
  10. $acc_details->legal_entity['last_name'] = 'US';
  11. $acc_details->legal_entity['dob']['day'] = '04';
  12. $acc_details->legal_entity['dob']['month'] = '05';
  13. $acc_details->legal_entity['dob']['year'] = '1980';
  14. $acc_details->legal_entity['type'] = 'individual';//Either “individual” or “company”
  15. $acc_details->legal_entity['address']['city'] = 'Abbotsford';
  16. $acc_details->legal_entity['address']['country'] = 'US';
  17. $acc_details->legal_entity['address']['line1'] = '33415 Maclure Rd';
  18. $acc_details->legal_entity['address']['line2'] = '33415 Maclure Rd';
  19. $acc_details->legal_entity['address']['postal_code'] = '10001';
  20. $acc_details->legal_entity['address']['state'] = 'BC';
  21. $acc_details->legal_entity['personal_id_number'] = '056464654';
  22. $acc_details = \Stripe\Account::retrieve($data['custom_ac_id']);
  23.  
  24. $response['status']=$acc_details;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement