Skip to content

Instantly share code, notes, and snippets.

@wehub
Last active August 7, 2021 18:29
Show Gist options
  • Select an option

  • Save wehub/d672055ec2adfe3b2c68cfb2df36a428 to your computer and use it in GitHub Desktop.

Select an option

Save wehub/d672055ec2adfe3b2c68cfb2df36a428 to your computer and use it in GitHub Desktop.
<?php
// WePay PHP SDK - http://git.io/mY7iQQ
require 'wepay.php';
// application settings
$client_id = 123456789;
$client_secret = "1a3b5c7d9";
$access_token = "STAGE_8a19aff55b85a436dad5cd1386db1999437facb5914b494f4da5f206a56a5d20";
// change to useProduction for live environments
Wepay::useStaging($client_id, $client_secret);
$wepay = new WePay($access_token);
// create an account for a user
$response = $wepay->request('account/create/', array(
'name' => 'Account Name',
'description' => 'A description for your account.'
));
// display the response
print_r($response);
?>
@floreschristian
Copy link
Copy Markdown

Christian avila Flores
thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment