Skip to content

Instantly share code, notes, and snippets.

View takumade's full-sized avatar
🎯
Working

Takunda Madechangu takumade

🎯
Working
View GitHub Profile
@takumade
takumade / stripe.dart
Created December 14, 2021 09:40
Flutter Stripe checkout
import 'package:flutter_stripe/flutter_stripe.dart';
// Initialize Stripe: Either in main or another file
Stripe.publishableKey = "YOUR KEY HERE";
Stripe.merchantIdentifier = "MERCHANT ID HERE";
// Stripe file, for payments
class StripePayments {
String itemDesc = "";
@takumade
takumade / carousel.js
Created November 29, 2021 10:38
React Tailwind Carousel
@takumade
takumade / template.html
Created October 9, 2021 11:47
Simple 404, 500 template
<!DOCTYPE html>
<html lang="en" >
<head>
<meta charset="UTF-8">
<title>CodePen - Simple 404 Page</title>
<meta name="viewport" content="width=device-width, initial-scale=1"><link rel='stylesheet' href='https://fonts.googleapis.com/css?family=Lato:100,300'><link rel="stylesheet" href="./style.css">
<style>
*{
transition: all 0.6s;
@takumade
takumade / checkout.php
Created June 27, 2021 12:23
PHP Paynow Integration
<?php
// THere must be a folder called libraries which contains the folder paynow
// The paynow folder contains paynow sdk
require_once '../libraries/paynow/autoloader.php';
function detectWalletName($phone_number){
// Detect wallet name
@takumade
takumade / PaynowController.php
Last active July 5, 2021 19:43
How to implement Paynow in Laravel
<?php
namespace App\Http\Controllers;
use Illuminate\Http\Request;
use Illuminate\Support\Facades\Auth;
use \Paynow\Payments\Paynow;
use Illuminate\Support\Facades\Validator;
use Illuminate\Support\Facades\Log;