Skip to content

Instantly share code, notes, and snippets.

View horlah's full-sized avatar
👨‍💻

Emmanuel Aina horlah

👨‍💻
View GitHub Profile
@horlah
horlah / package.json file for web app with capacitor installed
Last active February 11, 2019 06:50
package.json file for sample Js web app
{
"name": "todolistappjs",
"version": "1.0.0",
"description": "",
"main": "index.js",
"dependencies": {
"@capacitor/android": "^1.0.0-beta.17",
"@capacitor/cli": "^1.0.0-beta.17",
"@capacitor/core": "^1.0.0-beta.17"
},
{
"appId": "com.example.app",
"appName": "App",
"bundledWebRuntime": false,
"webDir": "www"
}
# Emmanuel Aina
Frontend/Mobile Developer
Amity, Off Alara Street, Sabo, Yaba, Lagos, Nigeria.
(+234) 7015755537
[[email protected]](mailto:[email protected])
@horlah
horlah / paymentMethods.paymentDetails.js
Last active August 13, 2020 08:37
Setting supported payment method using Payment Request API
const paymentDetails = {
displayItems: [
{
label: 'Anvil L/S Crew Neck - Grey M x1',
amount: { currency: 'USD', value: '22.15' }
},{
label: 'Anvil L/S Crew Neck - Blue L x1',
amount: { currency: 'USD', value: '22.15' }
}
],
@horlah
horlah / paymentMethods.paymentDetails.js
Created August 13, 2020 08:41
Setting payment details in Payment Request API
const paymentDetails = {
displayItems: [{
label: 'Anvil L/S Crew Neck - Grey M x1',
amount: { currency: 'USD', value: '22.15' }
},{
label: 'Anvil L/S Crew Neck - Blue L x1',
amount: { currency: 'USD', value: '22.15' }
}],
total: {
label: 'Total due',
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>hallelujah</title>
<style>
body,