This file contains 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' |
This file contains 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 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 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 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 customer_email=dd@gmail.com | |
-d customer_phone=09098090908 |
This file contains 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 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\PayWithCaptureClient; | |
$clientId = ""; //Your client id is in your devcenter account page | |
$clientSecret = ""; //Your client secret is in your devcenter account page | |
$env = "staging"; //this can either be staging or production | |
$client = new PayWithCaptureClient($clientId, $clientSecret, $env); | |
$posClient = $client->getPOSPrintingClient(); |
This file contains 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 = "eyet636484u4h", //Your clientId is in your PayWithCapture DevCenter account page | |
clientSecret = "736484yekhgutit857485", //Your clientSecret is in your PayWithCapture DevCenter account page | |
env = "staging"; // env can either be staging or production | |
var pwcClient = new PayWithCapture(clientId, clientSecret, env); | |
var posClient = pwcClient.getPosPrinting(); | |
var merchantCode = "474649"; //You merchant code is in your account page on PayWithCapture DevCenter | |
//this method will return transactions done by a merchant |
This file contains 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
GET curl https://pwcstaging.herokuapp.com/otp/sms/[phonenumber_here] | |
-H "Authorization: Bearer [access_token_here]" | |
or | |
GET curl https://pwcstaging.herokuapp.com/otp/voice/[phonenumber_here] | |
-H "Authorization: Bearer [access_token_here]" |
This file contains 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\PayWithCaptureClient; | |
//You can find your clientId, $clientSecret in your PayWithCapture DevCenter settings page | |
$clientId = "745474656hdhdgftfyfjfkg"; | |
$clientSecret = "jyrtr64546470od"; | |
$env = "staging"; // $env should be "staging" when in dev mode and in production change to "production" | |
$client = new PayWithCaptureClient($clientId, $clientSecret, $env); | |
$otpClient = $client->getOtpClient(); |
OlderNewer