Skip to content

Instantly share code, notes, and snippets.

@kyleconroy
Created January 6, 2015 20:29
Show Gist options
  • Save kyleconroy/5ce1408c82fced096fd9 to your computer and use it in GitHub Desktop.
Save kyleconroy/5ce1408c82fced096fd9 to your computer and use it in GitHub Desktop.
Stripe Connect deauthorize account
<?php
$url = "https://connect.stripe.com/oauth/deauthorize";
$data = array(
'client_secret' => "Replace me with your secret API key",
'client_id' => "Replace me with your client_id",
'stripe_user_id' => "Replace me with your stripe_user_id",
);
$body = http_build_query($data);
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_POSTFIELDS, $body);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$output = curl_exec($ch);
print_r($output . "\n");
curl_close($ch);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment