ccashcow-server
Advanced tools
Comparing version 2.0.0-beta.1 to 2.0.0
@@ -22,3 +22,6 @@ "use strict"; | ||
name: process.enve.NAME, | ||
local_price: { amount: payment.amount / 100, currency: 'USD' }, | ||
local_price: { | ||
currency: process.enve.CURRENCY, | ||
amount: payment.amount * process.enve.CURRENCY_MODIFIER | ||
}, | ||
redirect_url: `${process.enve.CCASHCOW_WEB_URL}?jwt=${jwt}`, | ||
@@ -25,0 +28,0 @@ pricing_type: 'fixed_price' |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
const storage = require("node-persist"); | ||
const sign_1 = require("lib/jwt/sign"); | ||
const axios_1 = require("axios"); | ||
const sign_1 = require("lib/jwt/sign"); | ||
async function startSquarePayment(paymentId) { | ||
@@ -27,3 +27,3 @@ // Get payment | ||
base_price_money: { | ||
currency: 'USD', | ||
currency: process.enve.CURRENCY, | ||
amount: payment.amount | ||
@@ -30,0 +30,0 @@ } |
@@ -28,3 +28,6 @@ import * as storage from 'node-persist'; | ||
name: process.enve.NAME, | ||
local_price: { amount: payment.amount / 100, currency: 'USD' }, | ||
local_price: { | ||
currency: process.enve.CURRENCY, | ||
amount: payment.amount * process.enve.CURRENCY_MODIFIER | ||
}, | ||
redirect_url: `${process.enve.CCASHCOW_WEB_URL}?jwt=${jwt}`, | ||
@@ -31,0 +34,0 @@ pricing_type: 'fixed_price' |
import * as storage from 'node-persist'; | ||
import { CCashCow } from 'types/ccashcow'; | ||
import { signJWT } from 'lib/jwt/sign'; | ||
import axios from 'axios'; | ||
import { signJWT } from 'lib/jwt/sign'; | ||
@@ -34,3 +34,3 @@ export async function startSquarePayment( | ||
base_price_money: { | ||
currency: 'USD', | ||
currency: process.enve.CURRENCY, | ||
amount: payment.amount | ||
@@ -37,0 +37,0 @@ } |
{ | ||
"name": "ccashcow-server", | ||
"version": "2.0.0-beta.1", | ||
"version": "2.0.0", | ||
"description": "Accept credit cards and cryptocurrencies. Dead simple user payment system so easy a cow could do it.", | ||
@@ -5,0 +5,0 @@ "main": "dist/app.js", |
The server portion of [ccashcow](https://github.com/Xyfir/ccashcow). | ||
Built and mantained by **[Ptorx](https://ptorx.com)** and other **[Xyfir](https://www.xyfir.com)** projects. |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
60485
940
1
4