@opengis/pay 1.2.0 → 1.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@opengis/pay",
3
- "version": "1.2.0",
3
+ "version": "1.2.1",
4
4
  "type": "module",
5
5
  "description": "pay plugins for billing",
6
6
  "main": "plugin.js",
@@ -71,7 +71,7 @@ export default async function liqpayRedirect(req, reply) {
71
71
  });
72
72
 
73
73
  const protocol = headers?.referer?.split?.('://')?.shift?.() || req.protocol || 'https';
74
- const rootPageUrl = `${protocol || 'https'}://${domain}${config.port ? `:${config.port}` : ''}`;
74
+ const rootPageUrl = `${protocol || 'https'}://${domain}`;
75
75
 
76
76
  const resultUrl = paymentRedirect
77
77
  ? `${rootPageUrl}${handlebarsSync.compile(paymentRedirect)({ id: paymentId })}`