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
| curl https://stage.wepayapi.com/v2/account/create \ | |
| -H "Authorization: Bearer STAGE_8a19aff55b85a436dad5cd1386db1999437facb5914b494f4da5f206a56a5d20" \ | |
| -d "name=Account name" \ | |
| -d "description=A description for your account." |
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
| # WePay Ruby SDK - http://git.io/a_c2uQ | |
| require 'wepay' | |
| # application settings | |
| client_id = 123456789 | |
| client_secret = '1a3b5c7d9' | |
| access_token = 'STAGE_8a19aff55b85a436dad5cd1386db1999437facb5914b494f4da5f206a56a5d20' | |
| # set _use_stage to false for live environments | |
| wepay = WePay::Client.new(client_id, client_secret, _use_stage = true) |
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
| # WePay Python SDK - http://git.io/v7Y1jA | |
| from wepay import WePay | |
| # application settings | |
| access_token = 'STAGE_8a19aff55b85a436dad5cd1386db1999437facb5914b494f4da5f206a56a5d20' | |
| production = False | |
| # set production to True for live environments | |
| wepay = WePay(production, access_token) |
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 |
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
| $ curl https://stage.wepayapi.com/v2/checkout/create \ | |
| -H "Authorization: Bearer STAGE_8a19aff55b85a436dad5cd1386db1999437facb5914b494f4da5f206a56a5d20" \ | |
| -d "account_id=233" \ | |
| -d "amount=50.00" \ | |
| -d "short_description=A brand new soccer ball" \ | |
| -d "type=goods" \ | |
| -d "currency=USD" \ | |
| -d "fee[app_fee]=2.50" \ | |
| -d "fee[fee_payer]=payee" \ | |
| -d "hosted_checkout[require_shipping]=true" \ |
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
| # WePay Ruby SDK - http://git.io/a_c2uQ | |
| require 'wepay' | |
| # 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 | |
| # set _use_stage to false for live environments |
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
| # WePay Python SDK - http://git.io/v7Y1jA | |
| from wepay import WePay | |
| # application settings | |
| account_id = 123456789 # your app's account_id | |
| access_token = 'STAGE_8a19aff55b85a436dad5cd1386db1999437facb5914b494f4da5f206a56a5d20' # your app's access_token | |
| production = False | |
| # set production to True for live environments | |
| wepay = WePay(production, access_token) |
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; |
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
| $ curl https://stage.wepayapi.com/v2/checkout \ | |
| -H "Authorization: Bearer STAGE_8a19aff55b85a436dad5cd1386db1999437facb5914b494f4da5f206a56a5d20" \ | |
| -d "checkout_id=7734724523235" |
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
| # WePay Ruby SDK - http://git.io/a_c2uQ | |
| require 'wepay' | |
| # 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 | |
| checout_id = 7734724523235 |