Skip to content

mollie/SalesforceCommerceCloud

Repository files navigation

README

link_mollie

This is the integration cartridge for Mollie

Getting Started

  1. Clone this repository.
  2. Install npm dependancies npm install.
  3. Upload the cartridges folder to the WebDav location for cartridges for your Sandbox through CyberDuck or any other WebDAV client.
  4. Add the mollie_sfra_changes, int_mollie_sfra and int_mollie cartridges to your cartridge path.

Cartridges

int_mollie

Contains all the business logic pertaining order and payment management through the Mollie API.

int_mollie_sfra

Contains Payment and Checkout controllers.

mollie_sfra_changes

Contains SFRA overwritten templates / controllers.

Configuration

Site Management

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

Site Preferences

  • mollieEnabledMode: enum of strings
  • mollieBearerTestToken: string
  • mollieBearerToken: string
  • mollieProfileId: string
  • mollieDefaultOrderExpiryDays: enum-of-strings
  • mollieDefaultEnabledTransactionAPI: enum of strings
  • mollieEnableSingleClickPayments: boolean
  • mollieComponentsEnabled: boolean
  • mollieEnableQrCode: boolean
  • mollieLogCategory: string

Custom Properties

PaymentMethod

  • molliePaymentMethodId: string - external mollie payment method id
  • mollieOrderExpiryDays: enum of int - expiry days of order
  • mollieEnabledTransactionAPI: enum of strings - the enabled transaction API
  • mollieProductCategory: enum of strings - category used for voucher method

PaymentTransaction

  • molliePaymentId: string - the id of the Mollie payment
  • molliePaymentStatus: string - the payment status recieved from Mollie
  • molliePaymentDescription: text - Generated payment description
  • mollieIssuerData: text - selected issuer data
  • molliePaymentDetails: text - mollie payment details
  • molliePaymentLink: string - the link that is used to complete the payment

Order

  • mollieOrderId: string - the id of the Mollie order
  • mollieOrderStatus: string - the payment status recieved from Mollie
  • mollieUsedTransactionAPI: string - api used for creating payment (payment / order)
  • mollieRefundStatus: enum of strings - the status of the refund
  • mollieOrderIsAuthorized: boolean - the order is authorized

Profile

  • mollieCustomerId: string - the id of the Mollie customer (used for single click payments)

Product

  • mollieProductCategory: enum of strings - category used for voucher method

NPM scripts

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 cover to get coverage information. Coverage will be available in coverage folder under root directory.

Mollie Documentation