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://pwcstaging.herokuapp.com/orders/transactions?merchant_code=64545636353 \ | |
-H "Authorization: Bearer [access_token_here]" | |
or | |
curl https://pwcstaging.herokuapp.com/orders/transactions?reference_no=64545636353 | |
-H "Authorization: Bearer [access_token_here]" |
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://pwcstaging.herokuapp.com/oauth/token \ | |
-d merchant_id=audyyhf47646 \ | |
-d amount=4000 \ | |
-d description=payment for laptop \ | |
-d redirect_url=http://forloop.com.ng | |
-d transaction_id=773649uryy | |
-d [email protected] | |
-d customer_phone=09098090908 |
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://pwcstaging.herokuapp.com/oauth/token \ | |
-d client_id=audyyhf47646 \ | |
-d client_secret=46464urhfgfyr66474 \ | |
-d grant_type=client_credentials |
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
var PayWithCapture = require('PayWithCapture'); | |
var clientId = "636yertryrury", //your client id is in PwC devcenter | |
clientSecret = "76474hrhryre7437433yg3y3uy3yugregregr37464t4g45"; //your client secret in in Pwc devcenter account | |
var client = new PayWithCapture(clientId, clientSecret, "staging"); | |
var Authentication = client.getAuthenticationClient(); | |
new Authentication().authenticate() | |
.then(function(authResp) { |
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 | |
use PayWithCapture\Services; | |
$clientId = "84747hfyfyf"; //Your client id is in PwC devcenter account page | |
$clientSecret = "7446ydt77464"; //Your client secret is in PwC devcenter account page | |
$env = "staging"; | |
$auth = new Authentication($clientId, $clientSecret, $env); | |
$auth->loadAccessToken(); | |
//once loaded, you can get your access token with |
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
#! /usr/bin/env python | |
import re | |
from os import path, listdir | |
from os.path import isfile, join | |
config_path = path.abspath(path.expanduser('~') + '/.ssh/config') | |
template = 'Host {}\n\tStrictHostKeyChecking no\n\tHostName {}\n\tUser {}\n\n' | |
begin = '#WRW HOST VARS - START' | |
end = '#WRW HOST VARS - END' |
NewerOlder