Skip to content

Commit

Permalink
fix: move checkout config in controllers dir
Browse files Browse the repository at this point in the history
  • Loading branch information
amihajlovski committed Oct 24, 2023
1 parent d2d253d commit b72c423
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 3 deletions.
File renamed without changes.
2 changes: 1 addition & 1 deletion adyen/controllers/payment-methods.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import {getCurrencyValueForApi} from '../utils/parsers.mjs'
import {BLOCKED_PAYMENT_METHODS} from '../utils/constants.mjs'
import {ShopperCustomers} from 'commerce-sdk-isomorphic'
import {getConfig} from '@salesforce/pwa-kit-runtime/utils/ssr-config'
import AdyenCheckoutConfig from '../services/checkout-config'
import AdyenCheckoutConfig from './checkout-config'

async function getPaymentMethods(req, res) {
const checkout = AdyenCheckoutConfig.getInstance()
Expand Down
2 changes: 1 addition & 1 deletion adyen/controllers/payments-details.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import {createCheckoutResponse} from '../utils/createCheckoutResponse.mjs'
import AdyenCheckoutConfig from '../services/checkout-config'
import AdyenCheckoutConfig from './checkout-config'

async function sendPaymentDetails(req, res) {
const checkout = AdyenCheckoutConfig.getInstance()
Expand Down
2 changes: 1 addition & 1 deletion adyen/controllers/payments.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import {createCheckoutResponse} from '../utils/createCheckoutResponse.mjs'
import {Checkout} from 'commerce-sdk'
import {ShopperOrders, ShopperBaskets} from 'commerce-sdk-isomorphic'
import {getConfig} from '@salesforce/pwa-kit-runtime/utils/ssr-config'
import AdyenCheckoutConfig from '../services/checkout-config';
import AdyenCheckoutConfig from './checkout-config';

const errorMessages = {
AMOUNT_NOT_CORRECT: 'amount not correct',
Expand Down

0 comments on commit b72c423

Please sign in to comment.