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
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8" /> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0" /> | |
<title>Simple Timeline with Html and css</title> | |
<style> | |
.indicator-icon { | |
border-radius: 50%; | |
width: 1rem; |
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
public function userPayFeeViaPaystack() | |
{ | |
//instantiate Laravel Http Client and pass paystack secret key as a bearer token | |
$paystack = Http::withToken(config('paystack.secretKey')) | |
->post('https://api.paystack.co/transaction/initialize', [ | |
//email for the user making the payments | |
'email' => '[email protected], | |
//amount must be in kobo hence: the multiplication by 100 | |
'amount' => 1500 * 100, | |
'quantity' => 1, |
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
/** | |
* Obtain Paystack payment information | |
* @return void | |
*/ | |
public function handleUserFeeViaPaystackCallback(Request $request) | |
{ | |
//Instantiate Laravel Http get request to Paystack Veryify API route | |
//passing paystack secret key as Bearer token. | |
$paystack_client = Http::withToken(config('paystack.secretKey')) | |
//----------------------------------------------> attach the transaction ref from the request URl |
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
/* this css function used to import a font */ | |
@font-face { | |
/* This is the link to the font: can be relative, abosolute, or remote url*/ | |
src: url("../fonts/choice.ttf"); | |
/* set the name of the font family */ | |
font-family: choice; | |
} | |
.new_font_paragragh{ | |
/* set the font name as the font family */ |
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 | |
class Order | |
{ | |
/** @var int */ | |
private $id; | |
/** @var OrderItem[] */ | |
private $orderedItems = []; |
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
version: '3.8' | |
services: | |
db: | |
image: postgres:14.1-alpine | |
restart: always | |
environment: | |
- POSTGRES_USER=postgres | |
- POSTGRES_PASSWORD=postgres | |
ports: | |
- '5432:5432' |