-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(paypal-connector): rename instances of mock to paypal
- Loading branch information
1 parent
0b71195
commit a6f1b87
Showing
11 changed files
with
26 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
import { MockPaymentEnabler } from './payment-enabler/payment-enabler-mock'; | ||
import { PaypalPaymentEnabler } from './payment-enabler/payment-enabler-paypal'; | ||
|
||
export { MockPaymentEnabler as Enabler }; | ||
export { PaypalPaymentEnabler as Enabler }; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8 changes: 4 additions & 4 deletions
8
...src/server/plugins/mock-payment.plugin.ts → ...c/server/plugins/paypal-payment.plugin.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,16 @@ | ||
import { FastifyInstance } from 'fastify'; | ||
import { paymentSDK } from '../../payment-sdk'; | ||
import { paymentRoutes } from '../../routes/mock-payment.route'; | ||
import { MockPaymentService } from '../../services/mock-payment.service'; | ||
import { paymentRoutes } from '../../routes/paypal-payment.route'; | ||
import { PaypalPaymentService } from '../../services/paypal-payment.service'; | ||
|
||
export default async function (server: FastifyInstance) { | ||
const mockPaymentService = new MockPaymentService({ | ||
const paypalPaymentService = new PaypalPaymentService({ | ||
ctCartService: paymentSDK.ctCartService, | ||
ctPaymentService: paymentSDK.ctPaymentService, | ||
}); | ||
|
||
await server.register(paymentRoutes, { | ||
paymentService: mockPaymentService, | ||
paymentService: paypalPaymentService, | ||
sessionAuthHook: paymentSDK.sessionAuthHookFn, | ||
}); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters