Skip to content

Instantly share code, notes, and snippets.

import web3 from "web3";
export const login = (connectorID, chainId, walletName) => {
return async dispatch => {
try {
let account;
const connector = connectorsByName(connectorID, chainId);
const dt = { chainId, connectorID, walletName };
import React, { Component } from "react";
import CustomModal from "../Reusables/modals/CustomModal";
import { getFormDetails, handleModal } from "../../Redux/actions";
import { connect } from "react-redux";
import {
CustomFormContainer,
InputValue,
MainLabel,
TextArea,
Select,
@ada-h
ada-h / gist:f0b0ce68c1ff5d2f6e2fe22e42c84800
Last active May 28, 2020 15:03
Report API expectations
{
"customer detail": {
"path": "/customerDetail",
"description": "Shows the history of one customer",
"params": {
customerId: 1
},
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
</head>
<body>
<form >
<button type="button" onclick="payWithPaystack()"> Pay </button>
@ada-h
ada-h / login.css
Last active February 10, 2020 12:49
These are all the resources for the openwrt
@-ms-viewport {
width: device-width;
}
html {
box-sizing: border-box;
-ms-overflow-style: scrollbar;
}
@ada-h
ada-h / Endpoints
Created January 6, 2020 16:40
Payment Service endpoint structure
List of Payment Methods
Paystack-ref generation/ transaction verification
Monify-ref generation/ transaction verification
Xend login authorization
Charge Xend acct
Get Logged in user saved cards
Charge Xend user saved card
@ada-h
ada-h / phonumber.js
Created February 15, 2019 08:53
phone number validation
let phoneNumber =/^(\+?234|0)(703|706|806|810|813|814|816|903|803|906|705|805|807|811|815|905|701|708|802|808|812|902|907|907|809|817|818|908|909)[0-9]{7}$/