stripe url

This commit is contained in:
ntr 2019-07-09 17:40:11 +10:00
parent cfd5e7d3f7
commit f72a9b85a5
2 changed files with 9 additions and 4 deletions

View File

@ -19,8 +19,8 @@ function BitsBtn(args) {
function subscribeClick(e) {
stripe.redirectToCheckout({
items: [{plan: 'plan_FGmRwawcOJJ7Nv', quantity: 1}],
successUrl: 'http://localhost:40080/payments/success',
cancelUrl: 'http://localhost:40080/payments/cancel',
successUrl: 'http://localhost/payments/success',
cancelUrl: 'http://localhost/payments/cancel',
clientReferenceId: account.id
});
}
@ -28,8 +28,8 @@ function BitsBtn(args) {
function bitsClick(e) {
stripe.redirectToCheckout({
items: [{sku: 'sku_FHUfNEhWQaVDaT', quantity: 1}],
successUrl: 'http://localhost:40080/payments/success',
cancelUrl: 'http://localhost:40080/payments/cancel',
successUrl: 'http://localhost/payments/success',
cancelUrl: 'http://localhost/payments/cancel',
clientReferenceId: account.id
});
}

View File

@ -17,6 +17,11 @@ server {
try_files $uri $uri/ =404;
}
location /imgs/ {
root /var/lib/mnml/public/;
try_files $uri $uri/ =404;
}
location /api/ws {
proxy_pass http://mnml;
proxy_http_version 1.1;