This is the integration cartridge for Mollie
- Clone this repository.
- Install npm dependancies
npm install
. - Upload the
cartridges
folder to the WebDav location for cartridges for your Sandbox through CyberDuck or any other WebDAV client. - Add the mollie_sfra_changes, int_mollie_sfra and int_mollie cartridges to your cartridge path.
Contains all the business logic pertaining order and payment management through the Mollie API.
Contains Payment and Checkout controllers.
Contains SFRA overwritten templates / controllers.
Add the following cartridges to the storefront site you want to use the payment on:
- mollie_sfra_changes
- int_mollie_sfra
- int_mollie
Add the following cartridges to the business manager site:
- bm_mollie
- int_mollie
- app_storefront_base
mollieEnabledMode
: enum of stringsmollieBearerTestToken
: stringmollieBearerToken
: stringmollieProfileId
: stringmollieDefaultOrderExpiryDays
: enum-of-stringsmollieDefaultEnabledTransactionAPI
: enum of stringsmollieEnableSingleClickPayments
: booleanmollieComponentsEnabled
: booleanmollieLogCategory
: string
molliePaymentMethodId
: string - external mollie payment method idmollieOrderExpiryDays
: enum of int - expiry days of ordermollieEnabledTransactionAPI
: enum of strings - the enabled transaction API
molliePaymentId
: string - the id of the Mollie paymentmolliePaymentStatus
: string - the payment status recieved from MolliemolliePaymentDescription
: text - Generated payment descriptionmollieIssuerData
: text - selected issuer data
mollieOrderId
: string - the id of the Mollie ordermollieOrderStatus
: string - the payment status recieved from MolliemollieUsedTransactionAPI
: string - api used for creating payment (payment / order)mollieRefundStatus
: enum of strings - the status of the refundmollieOrderIsAuthorized
: boolean - the order is authorized
mollieCustomerId
: string - the id of the Mollie customer (used for single click payments)
mollieProductCategory
: enum of strings - category used for voucher method
Use the provided NPM scripts to compile and upload changes to your Sandbox.
#Testing
You can run npm test
to execute all unit tests in the project. Run npm run test:coverage
to get coverage information. Coverage will be available in coverage folder under root directory.