Contourner le sous-système Paiements dans HCL Commerce

Si vous souhaitez contourner ou désactiver le sous-système Paiement pour HCL Commerce, remplacez les instructions de tâche Règles de paiement par des implémentations nulles.

Pourquoi et quand exécuter cette tâche

Lorsque vous remplacez les instructions de tâche Règles de paiement suivantes par des implémentations nulles, le sous-système Paiement est contourné pour un magasin et le traitement Paiement ne se produit pas :
Instruction de tâche Règle de paiement Implémentation nulle
com.ibm.commerce.edp.commands.PrimePaymentCmd com.ibm.commerce.edp.commands.PrimePaymentVoidCmdImpl
com.ibm.commerce.edp.commands.ReservePaymentCmd com.ibm.commerce.edp.commands.ReservePaymentVoidCmdImpl
com.ibm.commerce.edp.commands.FinalizePaymentCmd com.ibm.commerce.edp.commands.FinalizePaymentVoidCmdImpl
com.ibm.commerce.edp.commands.TriggerPaymentActionsCmd com.ibm.commerce.edp.commands.TriggerPaymentActionsVoidCmdImpl
com.ibm.commerce.edp.commands.CancelOrderCmd com.ibm.commerce.edp.commands.CancelOrderVoidCmdImpl
com.ibm.commerce.edp.commands.StoreAndValidatePaymentCmd com.ibm.commerce.edp.commands.StoreAndValidatePaymentVoidCmdImpl
com.ibm.commerce.edp.commands.PIAddCmd com.ibm.commerce.edp.commands.PIAddVoidCmdImpl
com.ibm.commerce.edp.commands.QueryPIsCmd com.ibm.commerce.edp.commands.QueryPIsVoidCmdImpl
com.ibm.commerce.edp.commands.EDPPaymentInstructionsBeanCmd com.ibm.commerce.edp.commands.EDPPaymentInstructionsVoidBeanCmdImpl

Pour désactiver les paiements pour l'ensemble du site, remplacez STOREENT_ID par STOREENT_ID=0 lorsque vous effectuez la procédure suivante.

Procédure

  1. Mettez à jour la table CMDREG pour désactiver l'implémentation par défaut. Insérez l'instruction SQL suivante pour remplacer les instructions de tâche par des implémentations nulles :
    
    INSERT INTO CMDREG(STOREENT_ID, INTERFACENAME, CLASSNAME, TARGET) VALUES
    (10001,'com.ibm.commerce.edp.commands.PrimePaymentCmd','com.ibm.commerce.edp.commands.PrimePaymentVoidCmdImpl','Local'); 
    INSERT INTO CMDREG(STOREENT_ID, INTERFACENAME, CLASSNAME, TARGET) VALUES
    (10001,'com.ibm.commerce.edp.commands.ReservePaymentCmd','com.ibm.commerce.edp.commands.ReservePaymentVoidCmdImpl','Local'); 
    INSERT INTO CMDREG(STOREENT_ID, INTERFACENAME, CLASSNAME, TARGET) VALUES
    (10001,'com.ibm.commerce.edp.commands.FinalizePaymentCmd','com.ibm.commerce.edp.commands.FinalizePaymentVoidCmdImpl','Local'); 
    INSERT INTO CMDREG(STOREENT_ID, INTERFACENAME, CLASSNAME, TARGET) VALUES
    (10001,'com.ibm.commerce.edp.commands.TriggerPaymentActionsCmd','com.ibm.commerce.edp.commands.TriggerPaymentActionsVoidCmdImpl','Local'); 
    INSERT INTO CMDREG(STOREENT_ID, INTERFACENAME, CLASSNAME, TARGET) VALUES
    (10001,'com.ibm.commerce.edp.commands.CancelOrderCmd','com.ibm.commerce.edp.commands.CancelOrderVoidCmdImpl','Local'); 
    INSERT INTO CMDREG(STOREENT_ID, INTERFACENAME, CLASSNAME, TARGET) VALUES
    (10001,'com.ibm.commerce.edp.commands.StoreAndValidatePaymentCmd','com.ibm.commerce.edp.commands.StoreAndValidatePaymentVoidCmdImpl','Local'); 
    INSERT INTO CMDREG(STOREENT_ID, INTERFACENAME, CLASSNAME, TARGET) VALUES
    (10001,'com.ibm.commerce.edp.commands.PIAddCmd','com.ibm.commerce.edp.commands.PIAddVoidCmdImpl','Local'); 
    INSERT INTO CMDREG(STOREENT_ID, INTERFACENAME, CLASSNAME, TARGET) VALUES
    (yourstoreid,'com.ibm.commerce.edp.commands.QueryPIsCmd','com.ibm.commerce.edp.commands.QueryPIsVoidCmdImpl','Local'); 
    INSERT INTO CMDREG(STOREENT_ID, INTERFACENAME, CLASSNAME, TARGET) VALUES
    (yourstoreid,'com.ibm.commerce.edp.commands.EDPPaymentInstructionsBeanCmd','com.ibm.commerce.edp.commands.EDPPaymentInstructionsVoidBeanCmdImpl','Local');
    
    Remarque : Si les interfaces d'une valeur STOREENT_ID spécifique sont définies, "METTEZ A JOUR" les tables avec les modifications des implémentations nulles associées.
  2. Pour que ces modifications soient reconnues, redémarrez le Serveur Commerce.