Open ~/.zshrc
in your favorite editor and add the following content to the bottom.
# Git branch in prompt.
function parse_git_branch() {
git branch 2> /dev/null | sed -n -e 's/^\* \(.*\)/[\1]/p'
}
MERCHANT_ID=place your merchant id here | |
PUBLIC_KEY=place your public key here | |
PRIVATE_KEY=place your private key here | |
PORT=3000 | |
NODE_ENV=development |
const dotenv = require("dotenv"); | |
const braintree = require("braintree"); | |
const express = require("express"); | |
dotenv.config(); | |
const app = express(); | |
var gateway = braintree.connect({ | |
environment: braintree.Environment.Sandbox, |
import React from 'react'; | |
import { | |
SafeAreaView, | |
StyleSheet, | |
ScrollView, | |
StatusBar, | |
Button, | |
} from 'react-native'; | |
import {requestOneTimePayment} from 'react-native-paypal'; | |
import {Colors} from 'react-native/Libraries/NewAppScreen'; |