Enabling dependent credit support
You must perform the following procedure to enable support for dependent credit transactions.
Before you begin
Procedure
- Check whether this new policy has been registered in the
database.
- Configure whether the specified payment method requires
dependent credit.For each configuration of the payment method requiring dependent credit in the PaymentMethodConfigurations.xml file, add a new attribute dependentCreditRequired="true". For example, the following sample illustrates the CreditCardOffline payment method configuration file with the new attribute highlighted in bold.
<?xml version="1.0" encoding="UTF-8"?> <PaymentMethodConfigurations xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="com/ibm/commerce/edp/parsers/PaymentMethodConfigurations.xsd"> <PaymentMethodConfiguration name="CreditCardOffline" paymentSystemName="OfflineCreditCardSystem" systemEditable="true" humanEditable="true" refundAllowed="true" minimumAmount="0" maximumAmount="Unbounded" priority="MEDIUM" partiallyConsumable="true" dependentCreditRequired="true" /> </PaymentMethodConfigurations>
- Configure a new keyword of protocol data that needs to
be persisted for the originalPaymentInstructionId payment method indicating
original payment instruction ID.In the PaymentSystemPluginMapping.xml, add a new originalPaymentInstructionId retain Keywords. For example, the following sample illustrates the updated section of the mapping file with the new keyword highlighted in bold.
<RetainKeywords> <Keyword name="billing_address_id"/> <Keyword name="payment_method"/> <Keyword name="paymentTCId"/> <Keyword name="purchaseorder_id"/> <Keyword name="originalPaymentInstructionId"/> </RetainKeywords>