@nibgate/sdk 0.1.6 → 0.1.7
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 +1 -1
- package/src/server/access.js +1 -1
package/package.json
CHANGED
package/src/server/access.js
CHANGED
|
@@ -104,7 +104,7 @@ export function createNibgateServer(options = {}) {
|
|
|
104
104
|
}
|
|
105
105
|
|
|
106
106
|
const rail = normalizePaymentRail(resource.paymentRail || routeOptions.paymentRail || options.paymentRail || routeOptions.paymentMode || options.paymentMode);
|
|
107
|
-
if (rail === 'gateway' && (routeOptions.paymentMode || options.paymentMode || serverEnv('NIBGATE_PAYMENT_MODE')) === 'circle-gateway') {
|
|
107
|
+
if (rail === 'gateway' && (routeOptions.paymentMode || options.paymentMode || serverEnv('NIBGATE_PAYMENT_MODE') || 'circle-gateway') === 'circle-gateway') {
|
|
108
108
|
const gateway = await runCircleGatewayRequirement(request, resource, { ...options, ...routeOptions });
|
|
109
109
|
if (gateway.handled) return gateway.response;
|
|
110
110
|
const result = await unlock(resource, gateway.payment);
|