Created
April 21, 2017 19:53
-
-
Save wehub/facc4372249919e8beb8605b4ede56c8 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| // WePay PHP SDK - http://git.io/mY7iQQ | |
| require 'wepay.php'; | |
| // application settings | |
| $account_id = 123456789; // your app's account_id | |
| $client_id = 123456789; | |
| $client_secret = "1a3b5c7d9"; | |
| $access_token = "STAGE_8a19aff55b85a436dad5cd1386db1999437facb5914b494f4da5f206a56a5d20"; // your app's access_token | |
| $checkout_id = 7734724523235; | |
| // change to useProduction for live environments | |
| Wepay::useStaging($client_id, $client_secret); | |
| $wepay = new WePay($access_token); | |
| // create the checkout | |
| $response = $wepay->request('checkout', array( | |
| 'checkout_id' => $checkout_id | |
| )); | |
| // display the response | |
| print_r($response); | |
| ?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment